2020-07-06 04:13:01 +10:00
|
|
|
( Now we have "as late as possible" stuff. See B70 and B260. )
|
2020-05-25 00:01:46 +10:00
|
|
|
: _bchk DUP 0x7f + 0xff > IF LIT< br-ovfl (print) ABORT THEN ;
|
2020-07-05 22:03:15 +10:00
|
|
|
: DO 0x33 ( 2>R ) , H@ ; IMMEDIATE
|
2020-07-06 21:27:50 +10:00
|
|
|
: LOOP 0x43 ( loop ) , H@ - _bchk C, ; IMMEDIATE
|
2020-05-16 12:44:49 +10:00
|
|
|
( LEAVE is implemented in low xcomp )
|
2020-07-06 04:13:01 +10:00
|
|
|
: LITN 0x23 ( n ) , , ;
|
2020-05-16 12:44:49 +10:00
|
|
|
( gets its name at the very end. can't comment afterwards )
|
|
|
|
: _ BEGIN LIT< ) WORD S= UNTIL ; IMMEDIATE
|
|
|
|
: _ ( : will get its name almost at the very end )
|
2020-06-18 11:41:01 +10:00
|
|
|
(entry) 1 ( compiled ) C,
|
2020-05-16 12:44:49 +10:00
|
|
|
BEGIN
|
|
|
|
WORD FIND
|
|
|
|
IF ( is word ) DUP IMMED? IF EXECUTE ELSE , THEN
|
|
|
|
ELSE ( maybe number ) (parse) LITN THEN
|
|
|
|
AGAIN ;
|