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.

36 lines
707B

  1. 0xe800 CONSTANT RAMSTART
  2. 0xff00 CONSTANT RS_ADDR
  3. 0xfffa CONSTANT PS_ADDR
  4. 212 LOAD ( z80 assembler )
  5. 262 LOAD ( xcomp )
  6. 270 LOAD ( xcomp overrides )
  7. 282 LOAD ( boot.z80 )
  8. 353 LOAD ( xcomp core low )
  9. : (emit) 0 PC! ;
  10. : (key) 0 PC@ ;
  11. : EFS@
  12. 1 3 PC! ( read )
  13. 256 /MOD 3 PC! 3 PC! ( blkid )
  14. BLK( 256 /MOD 3 PC! 3 PC! ( dest )
  15. ;
  16. : EFS!
  17. 2 3 PC! ( write )
  18. 256 /MOD 3 PC! 3 PC! ( blkid )
  19. BLK( 256 /MOD 3 PC! 3 PC! ( dest )
  20. ;
  21. : COLS 80 ; : LINES 32 ;
  22. : AT-XY 6 PC! ( y ) 5 PC! ( x ) ;
  23. 380 LOAD ( xcomp core high )
  24. (entry) _
  25. ( Update LATEST )
  26. PC ORG @ 8 + !
  27. ," CURRENT @ HERE ! "
  28. ," BLK$ "
  29. ," ' EFS@ BLK@* ! "
  30. ," ' EFS! BLK!* ! "
  31. EOT,
  32. ORG @ 256 /MOD 2 PC! 2 PC!
  33. H@ 256 /MOD 2 PC! 2 PC!