X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fz80%2Fpeeph-gbz80.def;h=846e49c9a7b6e00c2393ee318fa64f73ac479ff3;hb=b1176539b41432fec283cb2d21b77efda04b3780;hp=178a3fb4d7ea1fe35be240737a4e54789e0dcab3;hpb=090ce4761d96fdbf019e1ecb87b2c6bb8dbefb5a;p=fw%2Fsdcc diff --git a/src/z80/peeph-gbz80.def b/src/z80/peeph-gbz80.def index 178a3fb4..846e49c9 100644 --- a/src/z80/peeph-gbz80.def +++ b/src/z80/peeph-gbz80.def @@ -1,40 +1,40 @@ -replace restart { +replace { + ld (hl),a + dec hl +} by { + ld (hl-),a +} +replace { ld (hl),a inc hl } by { ld (hl+),a } -replace restart { +replace { ld a,(hl) inc hl } by { ld a,(hl+) } -replace restart { - ld (hl),a - dec hl -} by { - ld (hl-),a -} -replace restart { +replace { ld a,[hl] inc hl } by { ld a,[hl+] } -replace restart { +replace { ld a,[hl] inc hl } by { ld a,[hl+] } -replace restart { +replace { ld [hl],a inc hl } by { ld [hl+],a } -replace restart { +replace { ld [hl],a dec hl } by {