z80: small optimization in execute
I had more ambitious goals, but I backed out of it: not worth it. This small optimization is an easy picking though.
This commit is contained in:
parent
dabbd6c253
commit
feeedcc55c
12
blk/301
12
blk/301
@ -1,14 +1,12 @@
|
|||||||
L3 BSET PC ORG @ 0x34 + ! ( execute )
|
L3 BSET PC ORG @ 0x34 + ! ( execute. DE -> wordref )
|
||||||
EXDEHL, ( HL now points to wordref )
|
|
||||||
( We don't apply BIN( reliably on stable ABI stuff, we
|
( We don't apply BIN( reliably on stable ABI stuff, we
|
||||||
might need to adjust addr. Ugly, but well... )
|
might need to adjust addr. Ugly, but well... )
|
||||||
BIN( @ [IF]
|
BIN( @ [IF]
|
||||||
A XORr, H ORr, IFZ, H BIN( @ 256 / LDrn, THEN,
|
A XORr, D ORr, IFZ, D BIN( @ 256 / LDrn, THEN,
|
||||||
[THEN]
|
[THEN]
|
||||||
E (HL) LDrr,
|
LDA(DE),
|
||||||
D BIN( @ 256 / LDrn,
|
L A LDrr,
|
||||||
EXDEHL,
|
H BIN( @ 256 / LDrn,
|
||||||
( HL points to code pointer )
|
|
||||||
DE INCss,
|
DE INCss,
|
||||||
( DE points to PFA )
|
( DE points to PFA )
|
||||||
JP(HL),
|
JP(HL),
|
||||||
|
BIN
emul/forth.bin
BIN
emul/forth.bin
Binary file not shown.
Loading…
Reference in New Issue
Block a user