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.

27 lines
839B

  1. 0xff00 CONSTANT RS_ADDR
  2. 0xfffa CONSTANT PS_ADDR
  3. RS_ADDR 0xa0 - CONSTANT SYSVARS
  4. 30 LOAD ( 8086 asm )
  5. 262 LOAD ( xcomp ) 270 LOAD ( xcomp overrides )
  6. 445 461 LOADR ( 8086 boot code )
  7. 353 LOAD ( xcomp core low )
  8. CODE (emit) AX POPx, 1 INT, ;CODE
  9. CODE (key?) 2 INT, AH 0 MOVri, AX PUSHx, AX PUSHx, ;CODE
  10. : COLS 80 ; : LINES 25 ;
  11. CODE AT-XY ( x y ) BX POPx, AX POPx, 3 INT, ;CODE
  12. CODE _ BX POPx, AX POPx, 4 INT, ;CODE
  13. : EFS@ BLK( _ ;
  14. CODE _ BX POPx, AX POPx, 5 INT, ;CODE
  15. : EFS! BLK( _ ;
  16. ( 8086 port doesn't define PC@ and PC!, but test harness uses
  17. it. Our forth binary uses INT 6 for retcode. )
  18. CODE PC! AX POPx, ( discard ) AX POPx, 6 INT, ;CODE
  19. 390 LOAD ( xcomp core high )
  20. (entry) _ ( Update LATEST ) PC ORG @ 8 + !
  21. ," BLK$ "
  22. ," ' EFS@ ' BLK@* **! "
  23. ," ' EFS! ' BLK!* **! "
  24. EOT,
  25. ORG @ 256 /MOD 2 PC! 2 PC!
  26. H@ 256 /MOD 2 PC! 2 PC!