2020-08-15 16:37:58 -04:00
|
|
|
CREATE XCURRENT 0 ,
|
2020-09-19 13:54:01 -04:00
|
|
|
: XCON XCURRENT CURRENT* ! ; : XCOFF 0x02 RAM+ CURRENT* ! ;
|
|
|
|
: (xentry) XCON (entry) XCOFF ; : XCREATE (xentry) 2 C, ;
|
|
|
|
: XCODE XCON CODE XCOFF ; : XIMM XCON IMMEDIATE XCOFF ;
|
2020-05-12 21:08:18 -04:00
|
|
|
: _xapply ( a -- a-off )
|
|
|
|
DUP ORG @ > IF ORG @ - BIN( @ + THEN ;
|
2020-09-19 13:54:01 -04:00
|
|
|
: XFIND XCURRENT @ SWAP _find DROP _xapply ;
|
|
|
|
: X' XCON ' XCOFF ; : X['] XCON ' _xapply LITN XCOFF ;
|
|
|
|
: XCOMPILE XCON ' _xapply LITN
|
2020-09-19 18:51:29 -04:00
|
|
|
LIT" ," FIND DROP _xapply , XCOFF ;
|
2020-05-12 21:08:18 -04:00
|
|
|
: X[COMPILE] XCON ' _xapply , XCOFF ;
|
2020-09-19 18:51:29 -04:00
|
|
|
: XDO LIT" 2>R" XFIND , H@ ;
|
|
|
|
: XLOOP LIT" (loop)" XFIND , H@ - C, ;
|
|
|
|
: XIF LIT" (?br)" XFIND , H@ 1 ALLOT ;
|
|
|
|
: XELSE LIT" (br)" XFIND , 1 ALLOT [COMPILE] THEN H@ 1- ;
|