mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-30 20:08:06 +11:00
2d9a07d215
This was becoming heavy to manage.
16 lines
427 B
Plaintext
16 lines
427 B
Plaintext
VARIABLE XCURRENT
|
|
: XCON XCURRENT CURRENT* ! ;
|
|
: XCOFF 0x02 RAM+ CURRENT* ! ;
|
|
: (xentry) XCON (entry) XCOFF ;
|
|
: XCREATE (xentry) 2 C, ;
|
|
: XCODE XCON CODE XCOFF ;
|
|
: XIMM XCON IMMEDIATE XCOFF ;
|
|
: _xapply ( a -- a-off )
|
|
DUP ORG @ > IF ORG @ - BIN( @ + THEN ;
|
|
: X' XCON ' XCOFF ;
|
|
: X['] XCON ' _xapply LITN XCOFF ;
|
|
: XCOMPILE
|
|
XCON ' _xapply LITN
|
|
LIT< , FIND DROP _xapply , XCOFF ;
|
|
: X[COMPILE] XCON ' _xapply , XCOFF ;
|