瀏覽代碼

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.
pull/119/head
Virgil Dupras 4 年之前
父節點
當前提交
feeedcc55c
共有 2 個文件被更改,包括 5 次插入7 次删除
  1. +5
    -7
      blk/301
  2. 二進制
      emul/forth.bin

+ 5
- 7
blk/301 查看文件

@@ -1,14 +1,12 @@
L3 BSET PC ORG @ 0x34 + ! ( execute )
EXDEHL, ( HL now points to wordref )
L3 BSET PC ORG @ 0x34 + ! ( execute. DE -> wordref )
( We don't apply BIN( reliably on stable ABI stuff, we
might need to adjust addr. Ugly, but well... )
BIN( @ [IF]
A XORr, H ORr, IFZ, H BIN( @ 256 / LDrn, THEN,
A XORr, D ORr, IFZ, D BIN( @ 256 / LDrn, THEN,
[THEN]
E (HL) LDrr,
D BIN( @ 256 / LDrn,
EXDEHL,
( HL points to code pointer )
LDA(DE),
L A LDrr,
H BIN( @ 256 / LDrn,
DE INCss,
( DE points to PFA )
JP(HL),


二進制
emul/forth.bin 查看文件


Loading…
取消
儲存