2020-06-18 07:40:20 -04:00
|
|
|
PC ORG @ 1 + ! ( main )
|
|
|
|
( STACK OVERFLOW PROTECTION: See B76 )
|
2020-06-27 22:01:56 -04:00
|
|
|
SP PS_ADDR LDdn, IX RS_ADDR LDdn,
|
2020-06-18 07:40:20 -04:00
|
|
|
( HERE begins at RAMEND )
|
2020-06-27 22:01:56 -04:00
|
|
|
HL RAMSTART 0x80 + LDdn,
|
|
|
|
RAMSTART 0x04 + LD(n)HL, ( RAM+04 == HERE )
|
2020-06-18 07:40:20 -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-06-27 22:01:56 -04:00
|
|
|
BIN( @ 0x08 + LDHL(n),
|
|
|
|
RAMSTART 0x02 ( CURRENT ) + LD(n)HL,
|
|
|
|
DE BIN( @ 0x04 ( BOOT ) + LDdd(n),
|
2020-06-18 07:50:20 -04:00
|
|
|
JR, L1 FWR ( execute, B301 )
|