mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-30 20:58:05 +11:00
295b4b6e0a
Will be useful for assembling binaries for the TRS-80 which can't start at addr 0.
17 lines
550 B
Plaintext
17 lines
550 B
Plaintext
( Name of BOOT word )
|
|
L1 BSET 'B' A, 'O' A, 'O' A, 'T' A, 0 A,
|
|
|
|
PC ORG @ 1 + ! ( main )
|
|
( STACK OVERFLOW PROTECTION: See B76 )
|
|
SP 0xfffa LDddnn,
|
|
RAMSTART SP LD(nn)dd, ( RAM+00 == INITIAL_SP )
|
|
IX RS_ADDR LDddnn,
|
|
( HERE begins at RAMEND )
|
|
HL RAMSTART 0x80 + LDddnn,
|
|
RAMSTART 0x04 + LD(nn)HL, ( RAM+04 == HERE )
|
|
( 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(nn),
|
|
RAMSTART 0x02 + LD(nn)HL, ( RAM+02 == CURRENT cont. )
|