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 ;
|
2020-09-19 19:44:15 -04:00
|
|
|
: XLITN LIT" (n)" XFIND , , ;
|
|
|
|
: X' XCON ' XCOFF ; : X['] XCON ' _xapply XLITN XCOFF ;
|
|
|
|
: XCOMPILE XCON ' _xapply XLITN
|
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 ;
|