mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-23 23:08:06 +11:00
z80: inline cellWord in stable ABI
This commit is contained in:
parent
40f92b9bab
commit
38d5a9f303
4
blk/283
4
blk/283
@ -1,7 +1,8 @@
|
|||||||
H@ ORG !
|
H@ ORG !
|
||||||
0 JPnn, ( 00, main ) 0 JPnn, ( 03, find )
|
0 JPnn, ( 00, main ) 0 JPnn, ( 03, find )
|
||||||
NOP, NOP, ( 06, unused ) NOP, NOP, ( 08, LATEST )
|
NOP, NOP, ( 06, unused ) NOP, NOP, ( 08, LATEST )
|
||||||
NOP, ( 0a, unused ) 0 JPnn, ( 0b, cellWord )
|
NOP, ( 0a, unused )
|
||||||
|
( 0b cellWord, push PFA ) DE PUSHqq, JR, 0x0c A, ( next )
|
||||||
0 JPnn, ( 0e, compiledWord ) 0 JPnn, ( 11, pushRS )
|
0 JPnn, ( 0e, compiledWord ) 0 JPnn, ( 11, pushRS )
|
||||||
0 JPnn, ( 14, popRS )
|
0 JPnn, ( 14, popRS )
|
||||||
EXDEHL, JP(HL), NOP, ( 17, nativeWord )
|
EXDEHL, JP(HL), NOP, ( 17, nativeWord )
|
||||||
@ -13,4 +14,3 @@ NOP, NOP, ( 24, addrWord ) NOP, NOP, ( 26, unused )
|
|||||||
0 JPnn, ( RST 30 )
|
0 JPnn, ( RST 30 )
|
||||||
0 JPnn, ( 33, execute ) NOP, NOP, ( unused )
|
0 JPnn, ( 33, execute ) NOP, NOP, ( unused )
|
||||||
0 JPnn, ( RST 38 )
|
0 JPnn, ( RST 38 )
|
||||||
|
|
||||||
|
16
blk/303
16
blk/303
@ -1,16 +0,0 @@
|
|||||||
PC ORG @ 0x0c + ! ( cellWord )
|
|
||||||
( Pushes PFA directly )
|
|
||||||
DE PUSHqq,
|
|
||||||
JPNEXT,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
BIN
emul/forth.bin
BIN
emul/forth.bin
Binary file not shown.
Loading…
Reference in New Issue
Block a user