2020-05-15 12:15:31 +10:00
|
|
|
( 8K of onboard RAM )
|
|
|
|
0xdd00 CONSTANT RS_ADDR
|
|
|
|
( Memory register at the end of RAM. Must not overwrite )
|
|
|
|
0xddca CONSTANT PS_ADDR
|
2020-06-29 09:45:28 +10:00
|
|
|
RS_ADDR 0x80 - CONSTANT SYSVARS
|
|
|
|
0xc000 CONSTANT HERESTART
|
2020-06-29 08:49:30 +10:00
|
|
|
SYSVARS 0x70 + CONSTANT VDP_MEM
|
2020-05-15 12:15:31 +10:00
|
|
|
0xbf CONSTANT VDP_CTLPORT
|
|
|
|
0xbe CONSTANT VDP_DATAPORT
|
|
|
|
32 CONSTANT VDP_COLS
|
|
|
|
24 CONSTANT VDP_ROWS
|
2020-06-29 08:49:30 +10:00
|
|
|
SYSVARS 0x72 + CONSTANT PAD_MEM
|
2020-05-16 05:41:06 +10:00
|
|
|
0x3f CONSTANT PAD_CTLPORT
|
|
|
|
0xdc CONSTANT PAD_D1PORT
|
2020-09-22 07:51:08 +10:00
|
|
|
5 LOAD ( z80 assembler )
|
2020-05-15 12:15:31 +10:00
|
|
|
: ZFILL, ( u ) 0 DO 0 A, LOOP ;
|
|
|
|
262 LOAD ( xcomp )
|
|
|
|
524 LOAD ( font compiler )
|
2020-06-27 11:41:17 +10:00
|
|
|
282 LOAD ( boot.z80.decl )
|
2020-05-15 12:15:31 +10:00
|
|
|
270 LOAD ( xcomp overrides )
|
|
|
|
|
2020-10-11 04:31:54 +11:00
|
|
|
DI, 0x100 JP, 0x62 ZFILL, ( 0x66 )
|
2020-05-15 12:15:31 +10:00
|
|
|
RETN, 0x98 ZFILL, ( 0x100 )
|
|
|
|
( All set, carry on! )
|
|
|
|
CURRENT @ XCURRENT !
|
|
|
|
0x100 BIN( !
|
2020-06-27 11:41:17 +10:00
|
|
|
283 335 LOADR ( boot.z80 )
|
2020-05-16 12:44:49 +10:00
|
|
|
353 LOAD ( xcomp core low )
|
2020-05-15 12:15:31 +10:00
|
|
|
CREATE ~FNT CPFNT7x7
|
2020-09-21 00:21:21 +10:00
|
|
|
603 608 LOADR ( VDP )
|
|
|
|
612 617 LOADR ( PAD )
|
2020-05-16 12:44:49 +10:00
|
|
|
380 LOAD ( xcomp core high )
|
2020-05-15 12:15:31 +10:00
|
|
|
(entry) _
|
|
|
|
( Update LATEST )
|
|
|
|
PC ORG @ 8 + !
|
2020-10-11 04:31:54 +11:00
|
|
|
," VDP$ PAD$ (im1) " EOT,
|
2020-05-15 12:15:31 +10:00
|
|
|
ORG @ 0x100 - 256 /MOD 2 PC! 2 PC!
|
|
|
|
H@ 256 /MOD 2 PC! 2 PC!
|