Pursuing Tom Ram

Game available in Itch.io.

Soruce code in Github.

Programming adventures in VIC-20.


Portability to Commodore 64

Luckily, many Commodore computers share processor, Kernal and BASIC Roms. You can use the code and all the contents of this book for Pet and C-64.

The main change you have to do to the code is the address of the RAM memory. If you want to run this adventure (or your own adventures) in an expanded VIC-20, you have to change this address too.

At the very beginning of the code, you will find “*=$1001”. VIC-20 unexpanded RAM starts at $1000 (3 Kb expansion for VIC-20 does not change this value).

C-64 RAM (in the default mode) starts at $0800, so you have to change the starting address and the BASIC loader. Here you have the one for the C-64.

  
   *=$0801
        BYTE    $0B, $08, $0A, $00, $9E, $32, $30, $36, $31, $00
        BYTE    $00, $00

	; Subroutines
	PRNSTR = $AB1E
	CHROUT = $FFD2 
	CHIN = $FFCF 
	CLEAR = $E544 


  

BASIC ROM is located at a different memory address, so you have to change that constants too (Kernal ROM remains the same).

And that’s all. You will see text only in the half of the screen because a VIC-20 has the half of columns, but you can improve it removing some RETURN constants.