2020-08-15 16:37:58 -04:00
|
|
|
CREATE XCURRENT 0 ,
|
2020-04-21 20:30:14 -04:00
|
|
|
: XCON XCURRENT CURRENT* ! ;
|
|
|
|
: XCOFF 0x02 RAM+ CURRENT* ! ;
|
|
|
|
: (xentry) XCON (entry) XCOFF ;
|
2020-06-17 21:41:01 -04:00
|
|
|
: XCREATE (xentry) 2 C, ;
|
2020-04-21 20:30:14 -04:00
|
|
|
: 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-05-14 09:45:42 -04:00
|
|
|
: X' XCON ' XCOFF ;
|
2020-06-17 13:50:42 -04:00
|
|
|
: X['] XCON ' _xapply LITN XCOFF ;
|
2020-05-12 21:08:18 -04:00
|
|
|
: XCOMPILE
|
2020-06-17 13:50:42 -04:00
|
|
|
XCON ' _xapply LITN
|
2020-05-15 12:50:14 -04:00
|
|
|
LIT< , FIND DROP _xapply , XCOFF ;
|
2020-05-12 21:08:18 -04:00
|
|
|
: X[COMPILE] XCON ' _xapply , XCOFF ;
|