mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-30 20:28:05 +11:00
440ea43a88
Initially, I used the same letters as those used in the z80 ref docs, but it makes the different assemblers harder to use than they should. Having consistent "argtype" rules across assemblers should help.
17 lines
454 B
Plaintext
17 lines
454 B
Plaintext
( BOOT DICT: There are only 3 words in the boot dict, but
|
|
these words' offset need to be stable, so they're part of
|
|
the "stable ABI" )
|
|
'E' A, 'X' A, 'I' A, 'T' A,
|
|
0 A,, ( prev )
|
|
4 A,
|
|
H@ XCURRENT ! ( set current tip of dict, 0x42 )
|
|
0 A, ( native )
|
|
0x14 BCALL, ( popRS )
|
|
HL PUSH, IY POP, ( --> IP )
|
|
JPNEXT,
|
|
CODE (br) ( 0x53 )
|
|
L2 BSET ( used in CBR )
|
|
E 0 IY+ LDrIXY, D 1 IY+ LDrIXY,
|
|
DE ADDIYd,
|
|
JPNEXT,
|