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.

17 lines
543B

  1. ( xcomp core high )
  2. : (main) INTERPRET BYE ;
  3. : BOOT
  4. 0x02 RAM+ CURRENT* !
  5. CURRENT @ 0x2e RAM+ ! ( 2e == BOOT C< PTR )
  6. 0 0x08 RAM+ ! ( 08 == C<* override )
  7. ['] (emit) ['] EMIT **! ['] (key) ['] KEY **!
  8. ['] CRLF ['] NL **!
  9. ['] (boot<) ['] C<* **!
  10. ['] C@ ['] A@ **! ['] C! ['] A! **! ['] C, ['] A, **!
  11. ( boot< always has a char waiting. 06 == C<?* )
  12. 1 0x06 RAM+ ! INTERPRET
  13. RDLN$ LIT" _sys" [entry]
  14. LIT" Collapse OS" (print) NL (main) ;
  15. XCURRENT @ _xapply ORG @ 0x04 ( stable ABI BOOT ) + !
  16. 1 4 LOADR+