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.

41 lines
1.0KB

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