UK Vintage Radio Repair and Restoration Discussion Forum

UK Vintage Radio Repair and Restoration Discussion Forum (https://www.vintage-radio.net/forum/index.php)
-   Vintage Computers (https://www.vintage-radio.net/forum/forumdisplay.php?f=16)
-   -   Commodore 64 tape motor control (https://www.vintage-radio.net/forum/showthread.php?t=159775)

McMurdo 14th Sep 2019 1:01 pm

Commodore 64 tape motor control
 
Something I've always wondered, why do some cassette programs leave the tape motor on even though the program has loaded? It just happens with certain commercial games I have. It's always done it and always specific games. Even when the end of the tape is reached and the play key flicks up, the motor still runs.

Richard_FM 14th Sep 2019 2:26 pm

Re: Commodore 64 tape motor control
 
Quote:

Originally Posted by McMurdo (Post 1176252)
Something I've always wondered, why do some cassette programs leave the tape motor on even though the program has loaded? It just happens with certain commercial games I have. It's always done it and always specific games. Even when the end of the tape is reached and the play key flicks up, the motor still runs.

I remember my 128 used to do that when a games cartridge was plugged in.

I'm guessing some programs would trigger the tape run flag & not turn it off for some reason.

detrain 15th Sep 2019 6:45 pm

Re: Commodore 64 tape motor control
 
It happened because of misprogramming of the I/O port at address $0001. Bits 0-2 controlled the memory map and bits 3-5 the cassette - bit 5 turned the motor on.

Most games used this I/O port to switch out the BASIC or KERNAL ROMs to use the RAM at their addresses, or to map the character font ROM into the CPU address space to copy the built-in font and redefine some of the characters. If they didn't mask the bits correctly they could mistakenly turn the cassette motor on.


All times are GMT +1. The time now is 1:41 pm.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright ©2002 - 2023, Paul Stenning.