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.

46 lines
1.3KB

  1. ( xcomp using the Text Mode if the VDP. Only works on actual
  2. SMS. The Megadrive's VDP doesn't have TMS9918 modes in it. )
  3. ( 8K of onboard RAM )
  4. 0xdd00 CONSTANT RS_ADDR
  5. ( Memory register at the end of RAM. Must not overwrite )
  6. 0xddca CONSTANT PS_ADDR
  7. RS_ADDR 0xb0 - CONSTANT SYSVARS
  8. 0xc000 CONSTANT HERESTART
  9. 0xbf CONSTANT TMS_CTLPORT
  10. 0xbe CONSTANT TMS_DATAPORT
  11. SYSVARS 0xa0 + CONSTANT GRID_MEM
  12. SYSVARS 0xa3 + CONSTANT CPORT_MEM
  13. 0x3f CONSTANT CPORT_CTL
  14. 0xdc CONSTANT CPORT_D1
  15. 0xdd CONSTANT CPORT_D2
  16. SYSVARS 0xa4 + CONSTANT PS2_MEM
  17. 5 LOAD ( z80 assembler )
  18. 262 LOAD ( xcomp )
  19. 523 LOAD ( font compiler )
  20. 165 LOAD ( Sega ROM signer )
  21. 282 LOAD ( boot.z80.decl )
  22. 270 LOAD ( xcomp overrides )
  23. DI, 0x100 JP, 0x62 ALLOT0 ( 0x66 )
  24. RETN, 0x98 ALLOT0 ( 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 CPFNT5x7
  31. 470 472 LOADR ( TMS9918 )
  32. 402 404 LOADR ( Grid )
  33. 625 626 LOADR ( SMS ports )
  34. 620 LOAD ( PAD ) : (ps2kc) (ps2kcA) ; 411 414 LOADR
  35. 622 LOAD ( SPI )
  36. 1 CONSTANT SDC_DEVID 423 436 LOADR ( SDC )
  37. 390 LOAD ( xcomp core high )
  38. (entry) _
  39. ( Update LATEST )
  40. PC ORG @ 8 + !
  41. ," TMS$ GRID$ PS2$ BLK$ ' SDC@ ' BLK@* **! (im1) " EOT,
  42. ORG @ 0x100 - DUP |M 2 PC! 2 PC!
  43. DUP 1 ( 16K ) segasig
  44. 0x4000 + |M 2 PC! 2 PC!