2 ; Zero page variables and I/O definitions for the CBM 510
4 ; Taken from a kernal disassembly done by myself in 2000/2001.
6 ; 2001-09-13, Ullrich von Bassewitz
7 ; 2014-04-02, Greg King
10 ;-----------------------------------------------------------------------------
13 ExecReg := $00 ; Controls execution memory bank
14 IndReg := $01 ; Controls indirect indexed load-store bank
16 TXTPTR := $85 ; Far pointer into BASIC source code
17 FNAM := $90 ; Far pointer to LOAD/SAVE file-name
18 FNAM_LEN := $9D ; Holds length of file-name
20 ; ---------------------------------------------------------------------------
26 ;-----------------------------------------------------------------------------
28 ; Note: These numbers aren't addresses. They are offsets from the start of
29 ; each chip's register set. They are used in the indirect indexed addressing
79 VIC_IRR = $19 ; Interrupt request register
80 VIC_IMR = $1A ; Interrupt mask register
125 ; I/O $db00: CIA 6526, Inter Process Communication
126 ; I/O $dc00: CIA 6526
158 ; I/O $dd00: ACIA 6551
168 ; I/O $de00: Triport #1 6525
169 ; I/O $df00: Triport #2 6525
189 ;-----------------------------------------------------------------------------
190 ; Our video memory address
192 COLOR_RAM := $D400 ; System bank
195 ;-----------------------------------------------------------------------------
197 BASIC_BUF := $FB5E ; Bank 0 location of command-line
198 BASIC_BUF_LEN = 162 ; Maximum length of command-line