2020-08-16 06:37:58 +10:00
|
|
|
CREATE XCURRENT 0 ,
|
2020-09-20 03:54:01 +10:00
|
|
|
: XCON XCURRENT CURRENT* ! ; : XCOFF 0x02 RAM+ CURRENT* ! ;
|
|
|
|
: (xentry) XCON (entry) XCOFF ; : XCREATE (xentry) 2 C, ;
|
2020-10-29 06:02:06 +11:00
|
|
|
: X:** (xentry) 5 C, , ;
|
2020-09-20 03:54:01 +10:00
|
|
|
: XCODE XCON CODE XCOFF ; : XIMM XCON IMMEDIATE XCOFF ;
|
2020-05-13 11:08:18 +10:00
|
|
|
: _xapply ( a -- a-off )
|
|
|
|
DUP ORG @ > IF ORG @ - BIN( @ + THEN ;
|
2020-09-20 03:54:01 +10:00
|
|
|
: XFIND XCURRENT @ SWAP _find DROP _xapply ;
|
2020-09-20 09:44:15 +10:00
|
|
|
: XLITN LIT" (n)" XFIND , , ;
|
|
|
|
: X' XCON ' XCOFF ; : X['] XCON ' _xapply XLITN XCOFF ;
|
|
|
|
: XCOMPILE XCON ' _xapply XLITN
|
2020-09-20 08:51:29 +10:00
|
|
|
LIT" ," FIND DROP _xapply , XCOFF ;
|
2020-05-13 11:08:18 +10:00
|
|
|
: X[COMPILE] XCON ' _xapply , XCOFF ;
|