2020-04-22 10:30:14 +10:00
|
|
|
VARIABLE XCURRENT
|
|
|
|
: XCON XCURRENT CURRENT* ! ;
|
|
|
|
: XCOFF 0x02 RAM+ CURRENT* ! ;
|
|
|
|
: (xentry) XCON (entry) XCOFF ;
|
2020-05-10 01:55:58 +10:00
|
|
|
: XCREATE (xentry) 11 C, ;
|
2020-04-22 10:30:14 +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-05-14 23:45:42 +10:00
|
|
|
: X' XCON ' XCOFF ;
|
2020-05-14 03:24:58 +10:00
|
|
|
: X['] XCON ' _xapply LITA XCOFF ;
|
2020-05-13 11:08:18 +10:00
|
|
|
: XCOMPILE
|
|
|
|
XCON ' _xapply LITA
|
|
|
|
LIT< , (find) DROP _xapply , XCOFF ;
|
|
|
|
: X[COMPILE] XCON ' _xapply , XCOFF ;
|