mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-27 04:28:06 +11:00
de7cb4a80f
This would be useful, for example, to allow the assembler to write straight to an AT28 EEPROM without going to RAM. This would be a life saver in machines with tight RAM such as the SMS.
17 lines
543 B
Plaintext
17 lines
543 B
Plaintext
( xcomp core high )
|
|
: (main) INTERPRET BYE ;
|
|
: BOOT
|
|
0x02 RAM+ CURRENT* !
|
|
CURRENT @ 0x2e RAM+ ! ( 2e == BOOT C< PTR )
|
|
0 0x08 RAM+ ! ( 08 == C<* override )
|
|
['] (emit) ['] EMIT **! ['] (key) ['] KEY **!
|
|
['] CRLF ['] NL **!
|
|
['] (boot<) ['] C<* **!
|
|
['] C@ ['] A@ **! ['] C! ['] A! **! ['] C, ['] A, **!
|
|
( boot< always has a char waiting. 06 == C<?* )
|
|
1 0x06 RAM+ ! INTERPRET
|
|
RDLN$ LIT" _sys" [entry]
|
|
LIT" Collapse OS" (print) NL (main) ;
|
|
XCURRENT @ _xapply ORG @ 0x04 ( stable ABI BOOT ) + !
|
|
1 4 LOADR+
|