Mirror of CollapseOS
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

43 lines
1.1KB

  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. 0xbf CONSTANT VDP_CTLPORT
  8. 0xbe CONSTANT VDP_DATAPORT
  9. SYSVARS 0x70 + CONSTANT GRID_MEM
  10. 32 CONSTANT COLS
  11. 24 CONSTANT ROWS
  12. SYSVARS 0x72 + CONSTANT CPORT_MEM
  13. 0x3f CONSTANT CPORT_CTL
  14. 0xdc CONSTANT CPORT_D1
  15. 0xdd CONSTANT CPORT_D2
  16. SYSVARS 0x73 + CONSTANT PAD_MEM
  17. 5 LOAD ( z80 assembler )
  18. : ZFILL, ( u ) 0 DO 0 A, LOOP ;
  19. 262 LOAD ( xcomp )
  20. 524 LOAD ( font compiler )
  21. 282 LOAD ( boot.z80.decl )
  22. 270 LOAD ( xcomp overrides )
  23. DI, 0x100 JP, 0x62 ZFILL, ( 0x66 )
  24. RETN, 0x98 ZFILL, ( 0x100 )
  25. ( All set, carry on! )
  26. CURRENT @ XCURRENT !
  27. 0x100 BIN( !
  28. 283 335 LOADR ( boot.z80 )
  29. 353 LOAD ( xcomp core low )
  30. CREATE ~FNT CPFNT7x7
  31. 603 608 LOADR ( VDP )
  32. 402 404 LOADR ( Grid )
  33. 625 626 LOADR ( SMS ports )
  34. 612 617 LOADR ( PAD )
  35. 390 LOAD ( xcomp core high )
  36. (entry) _
  37. ( Update LATEST )
  38. PC ORG @ 8 + !
  39. ," VDP$ 0 0 AT-XY PAD$ (im1) " EOT,
  40. ORG @ 0x100 - 256 /MOD 2 PC! 2 PC!
  41. H@ 256 /MOD 2 PC! 2 PC!