2020-07-05 22:23:40 -04:00
|
|
|
PC ORG @ 1 + ! ( main )
|
2020-08-15 08:11:48 -04:00
|
|
|
SP PS_ADDR LDdi, IX RS_ADDR LDdi,
|
2020-07-05 22:23:40 -04: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 08:11:48 -04:00
|
|
|
BIN( @ 0x08 + LDHL(i),
|
|
|
|
SYSVARS 0x02 ( CURRENT ) + LD(i)HL,
|
2020-07-05 22:23:40 -04:00
|
|
|
HERESTART [IF]
|
2020-08-15 08:11:48 -04:00
|
|
|
HL HERESTART LDdi,
|
2020-07-05 22:23:40 -04:00
|
|
|
[THEN]
|
2020-08-15 08:11:48 -04:00
|
|
|
SYSVARS 0x04 + LD(i)HL, ( RAM+04 == HERE )
|
|
|
|
DE BIN( @ 0x04 ( BOOT ) + LDd(i),
|
2020-07-05 22:23:40 -04:00
|
|
|
JR, L1 FWR ( execute, B287 )
|