2020-07-06 12:23:40 +10:00
|
|
|
PC ORG @ 1 + ! ( main )
|
2020-08-15 22:11:48 +10:00
|
|
|
SP PS_ADDR LDdi, IX RS_ADDR LDdi,
|
2020-07-06 12:23:40 +10:00
|
|
|
( LATEST is a label to the latest entry of the dict. It is
|
|
|
|
written at offset 0x08 by the process or person building
|
|
|
|
Forth. )
|
2020-08-15 22:11:48 +10:00
|
|
|
BIN( @ 0x08 + LDHL(i),
|
|
|
|
SYSVARS 0x02 ( CURRENT ) + LD(i)HL,
|
2020-07-06 12:23:40 +10:00
|
|
|
HERESTART [IF]
|
2020-08-15 22:11:48 +10:00
|
|
|
HL HERESTART LDdi,
|
2020-07-06 12:23:40 +10:00
|
|
|
[THEN]
|
2020-08-15 22:11:48 +10:00
|
|
|
SYSVARS 0x04 + LD(i)HL, ( RAM+04 == HERE )
|
|
|
|
DE BIN( @ 0x04 ( BOOT ) + LDd(i),
|
2020-07-06 12:23:40 +10:00
|
|
|
JR, L1 FWR ( execute, B287 )
|