mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-24 00:08:06 +11:00
af39b37dd1
This is more than cosmetic, it's also highly usable. The presence or absence of the "ok" message allows us to know whether the command aborted. Previously, the "> " prompt appeared when the system expected a prompt in the INTERPRET context, whether the previous command aborted or not. Also, this allows us to get rid of that ugly FLAGS global variable.
13 lines
296 B
Plaintext
13 lines
296 B
Plaintext
( This is only the "early parser" in earlier stages. No need
|
|
for an abort message )
|
|
: (parse) (parsed) NOT IF ABORT THEN ;
|
|
|
|
: C<? 0x06 RAM+ @ DUP 2 > IF EXECUTE THEN ( 06 == C<?* ) ;
|
|
: C< 0x0c RAM+ @ EXECUTE ( 0c == C<* ) ;
|
|
|
|
: , HERE @ ! HERE @ 2+ HERE ! ;
|
|
|
|
: C, HERE @ C! HERE @ 1+ HERE ! ;
|
|
|
|
|