mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-30 20:58:05 +11:00
f6ded7712e
This is the first commit I do entirely in VE. It's a habit I'm planning on taking as it helps a lot to find usability issues.
17 lines
495 B
Plaintext
17 lines
495 B
Plaintext
: RAM+ [ RAMSTART LITN ] + ; : BIN+ [ BIN( @ LITN ] + ;
|
|
: HERE 0x04 RAM+ ;
|
|
: CURRENT* 0x51 RAM+ ; : CURRENT CURRENT* @ ;
|
|
: H@ HERE @ ;
|
|
: FIND ( w -- a f ) CURRENT @ SWAP _find ;
|
|
: IN> 0x30 RAM+ ; ( current position in INBUF )
|
|
: IN( 0x32 RAM+ @ ; ( points to INBUF )
|
|
: IN) 0x40 ( buffer size ) IN( + ; ( INBUF's end )
|
|
: (infl) 0 IN( DUP IN> ! ! ; ( flush input buffer )
|
|
: QUIT
|
|
(resRS) 0 0x08 RAM+ ! ( C<* override ) (infl)
|
|
LIT< (main) FIND DROP EXECUTE
|
|
;
|
|
1 25 LOADR+ ( xcomp core low )
|
|
|
|
|