Pursuing Tom Ram

Game available in Itch.io.

Soruce code in Github.

Programming adventures in VIC-20.


Storing information

The vast amount of information is the data of the adventure, mainly text. This adventure uses a little number of “variables” (which are memory positions, of course).

  
verb            BYTE $0, $0 ; Input from keyboard
name            BYTE $0, $0 ; name for the keyboard
                            ; It must follow the verb's memory posotityions'
token           BYTE $0, $0 
loc             BYTE $0 ; Location of the player. 
verb_index      BYTE $0 ; 0 mena no found.
name_index      BYTE $0 

; Geeral purpouse flags
; Each flag is 1 bit, so the game have 16 flags
flags
        BYTE $0, $0

  

There is also a number of constant that I will describe in the parts of the code where they are used.