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.

15 lines
401B

  1. : LOAD+ BLK> @ + LOAD ;
  2. ( b1 b2 -- )
  3. : LOADR 1+ SWAP DO I DUP . NL LOAD LOOP ;
  4. : LOADR+ BLK> @ + SWAP BLK> @ + SWAP LOADR ;
  5. ( Now, adev stuff )
  6. : A@* 0x3e RAM+ ; : A@ A@* @ EXECUTE ;
  7. : A!* 0x40 RAM+ ; : A! A!* @ EXECUTE ;
  8. ( src dst u -- )
  9. : AMOVE
  10. ( u ) 0 DO
  11. SWAP DUP I + A@ ( dst src x )
  12. ROT TUCK I + ( src dst x dst )
  13. A! ( src dst )
  14. LOOP 2DROP ;