2020-06-18 21:40:20 +10:00
|
|
|
PC ORG @ 1 + ! ( main )
|
|
|
|
( STACK OVERFLOW PROTECTION: See B76 )
|
2020-06-28 12:01:56 +10:00
|
|
|
SP PS_ADDR LDdn, IX RS_ADDR LDdn,
|
2020-06-18 21:40:20 +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-06-28 12:01:56 +10:00
|
|
|
BIN( @ 0x08 + LDHL(n),
|
2020-06-29 08:49:30 +10:00
|
|
|
SYSVARS 0x02 ( CURRENT ) + LD(n)HL,
|
2020-06-29 09:45:28 +10:00
|
|
|
HERESTART [IF]
|
|
|
|
HL HERESTART LDdn,
|
|
|
|
[THEN]
|
|
|
|
SYSVARS 0x04 + LD(n)HL, ( RAM+04 == HERE )
|
2020-06-28 12:01:56 +10:00
|
|
|
DE BIN( @ 0x04 ( BOOT ) + LDdd(n),
|
2020-06-18 21:50:20 +10:00
|
|
|
JR, L1 FWR ( execute, B301 )
|