mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-06 02:20:58 +11:00
b9fb6a6226
Bring native words together, make the next/exec/does/compiled cluster be at the beginning. Next step: bring find code into _find word.
17 lines
540 B
Plaintext
17 lines
540 B
Plaintext
lblnext BSET PC ORG @ 0x1b + ! ( next )
|
|
( This routine is jumped to at the end of every word. In it,
|
|
we jump to current IP, but we also take care of increasing
|
|
it by 2 before jumping. )
|
|
( Before we continue: are stacks within bounds? )
|
|
( PS ) HL PS_ADDR LDdn,
|
|
SP SUBHLd,
|
|
JRC, lblofl BWR ( abortUnderflow-B285 )
|
|
( RS ) IX PUSH, HL POP,
|
|
DE RS_ADDR LDdn,
|
|
DE SUBHLd,
|
|
JRC, lblofl BWR ( IX < RS_ADDR? abortUnderflow-B285 )
|
|
E 0 IY+ LDrIXY,
|
|
D 1 IY+ LDrIXY,
|
|
IY INCd, IY INCd,
|
|
( continue to execute )
|