mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-26 04:28:05 +11:00
ea9833d4ff
It was useful when we still had the relinker, but now it has no use. I was waiting a bit to see if the distinction would be useful again, but it seems like it won't.
17 lines
429 B
Plaintext
17 lines
429 B
Plaintext
VARIABLE XCURRENT
|
|
: XCON XCURRENT CURRENT* ! ;
|
|
: XCOFF 0x02 RAM+ CURRENT* ! ;
|
|
: (xentry) XCON (entry) XCOFF ;
|
|
: XCREATE (xentry) 11 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 ;
|
|
|