Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.1KB

  1. ( xcomp for a SMS with PS/2 keyboard on port A )
  2. ( 8K of onboard RAM )
  3. 0xdd00 CONSTANT RS_ADDR
  4. ( Memory register at the end of RAM. Must not overwrite )
  5. 0xddca CONSTANT PS_ADDR
  6. RS_ADDR 0x80 - CONSTANT SYSVARS
  7. 0xc000 CONSTANT HERESTART
  8. SYSVARS 0x70 + CONSTANT VDP_MEM
  9. 0xbf CONSTANT VDP_CTLPORT
  10. 0xbe CONSTANT VDP_DATAPORT
  11. 32 CONSTANT VDP_COLS
  12. 24 CONSTANT VDP_ROWS
  13. SYSVARS 0x72 + CONSTANT CPORT_MEM
  14. 0x3f CONSTANT CPORT_CTL
  15. 0xdc CONSTANT CPORT_D1
  16. 0xdd CONSTANT CPORT_D2
  17. SYSVARS 0x73 + CONSTANT PS2_MEM
  18. 5 LOAD ( z80 assembler )
  19. : ZFILL, ( u ) 0 DO 0 A, LOOP ;
  20. 262 LOAD ( xcomp )
  21. 524 LOAD ( font compiler )
  22. 282 LOAD ( boot.z80.decl )
  23. 270 LOAD ( xcomp overrides )
  24. DI, 0x100 JP, 0x62 ZFILL, ( 0x66 )
  25. RETN, 0x98 ZFILL, ( 0x100 )
  26. ( All set, carry on! )
  27. CURRENT @ XCURRENT !
  28. 0x100 BIN( !
  29. 283 335 LOADR ( boot.z80 )
  30. 353 LOAD ( xcomp core low )
  31. CREATE ~FNT CPFNT7x7
  32. 603 608 LOADR ( VDP )
  33. 625 626 LOADR ( SMS ports )
  34. 620 LOAD ( PAD ) : (ps2kc) (ps2kcA) ; 411 414 LOADR
  35. 390 LOAD ( xcomp core high )
  36. (entry) _
  37. ( Update LATEST )
  38. PC ORG @ 8 + !
  39. ," VDP$ PS2$ (im1) " EOT,
  40. ORG @ 0x100 - 256 /MOD 2 PC! 2 PC!
  41. H@ 256 /MOD 2 PC! 2 PC!