mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-20 20:18:05 +11:00
14 lines
421 B
Plaintext
14 lines
421 B
Plaintext
PC ORG @ 1 + ! ( main )
|
|
SP PS_ADDR LDdi, IX RS_ADDR LDdi,
|
|
( LATEST is a label to the latest entry of the dict. It is
|
|
written at offset 0x08 by the process or person building
|
|
Forth. )
|
|
BIN( @ 0x08 + LDHL(i),
|
|
SYSVARS 0x02 ( CURRENT ) + LD(i)HL,
|
|
HERESTART [IF]
|
|
HL HERESTART LDdi,
|
|
[THEN]
|
|
SYSVARS 0x04 + LD(i)HL, ( RAM+04 == HERE )
|
|
DE BIN( @ 0x04 ( BOOT ) + LDd(i),
|
|
JR, L1 FWR ( execute, B287 )
|