2020-11-03 10:53:57 +11:00
|
|
|
( xcomp for a SMS with PS/2 keyboard on port A )
|
|
|
|
( 8K of onboard RAM )
|
|
|
|
0xdd00 CONSTANT RS_ADDR
|
|
|
|
( Memory register at the end of RAM. Must not overwrite )
|
|
|
|
0xddca CONSTANT PS_ADDR
|
|
|
|
RS_ADDR 0x80 - CONSTANT SYSVARS
|
|
|
|
0xc000 CONSTANT HERESTART
|
2020-11-14 04:15:20 +11:00
|
|
|
0xbf CONSTANT TMS_CTLPORT
|
|
|
|
0xbe CONSTANT TMS_DATAPORT
|
2020-11-10 09:15:41 +11:00
|
|
|
SYSVARS 0x70 + CONSTANT GRID_MEM
|
2020-11-15 14:35:08 +11:00
|
|
|
SYSVARS 0x73 + CONSTANT CPORT_MEM
|
2020-11-03 10:53:57 +11:00
|
|
|
0x3f CONSTANT CPORT_CTL
|
|
|
|
0xdc CONSTANT CPORT_D1
|
|
|
|
0xdd CONSTANT CPORT_D2
|
2020-11-15 14:35:08 +11:00
|
|
|
SYSVARS 0x74 + CONSTANT PS2_MEM
|
2020-11-03 10:53:57 +11:00
|
|
|
5 LOAD ( z80 assembler )
|
|
|
|
262 LOAD ( xcomp )
|
|
|
|
524 LOAD ( font compiler )
|
2020-11-26 13:42:07 +11:00
|
|
|
165 LOAD ( Sega ROM signer )
|
2020-11-03 10:53:57 +11:00
|
|
|
282 LOAD ( boot.z80.decl )
|
|
|
|
270 LOAD ( xcomp overrides )
|
|
|
|
|
2020-12-08 11:17:51 +11:00
|
|
|
DI, 0x100 JP, 0x62 ALLOT0 ( 0x66 )
|
|
|
|
RETN, 0x98 ALLOT0 ( 0x100 )
|
2020-11-03 10:53:57 +11:00
|
|
|
( All set, carry on! )
|
|
|
|
CURRENT @ XCURRENT !
|
|
|
|
0x100 BIN( !
|
|
|
|
283 335 LOADR ( boot.z80 )
|
|
|
|
353 LOAD ( xcomp core low )
|
|
|
|
CREATE ~FNT CPFNT7x7
|
2020-11-14 04:15:20 +11:00
|
|
|
470 472 LOADR ( TMS9918 )
|
|
|
|
602 604 LOADR ( VDP )
|
2020-11-10 09:15:41 +11:00
|
|
|
402 404 LOADR ( Grid )
|
2020-11-03 10:53:57 +11:00
|
|
|
625 626 LOADR ( SMS ports )
|
|
|
|
620 LOAD ( PAD ) : (ps2kc) (ps2kcA) ; 411 414 LOADR
|
|
|
|
390 LOAD ( xcomp core high )
|
|
|
|
(entry) _
|
|
|
|
( Update LATEST )
|
|
|
|
PC ORG @ 8 + !
|
2020-11-15 14:35:08 +11:00
|
|
|
," VDP$ GRID$ PS2$ (im1) " EOT,
|
2020-12-08 12:08:45 +11:00
|
|
|
ORG @ 0x100 - DUP |M 2 PC! 2 PC!
|
2020-11-26 13:42:07 +11:00
|
|
|
DUP 1 ( 16K ) segasig
|
2020-12-08 12:08:45 +11:00
|
|
|
0x4000 + |M 2 PC! 2 PC!
|