]> git.gag.com Git - fw/sdcc/blobdiff - src/z80/peeph-gbz80.def
Fixed add, sub for sizeof == 2
[fw/sdcc] / src / z80 / peeph-gbz80.def
index 00c8644cb17cd7b67be2e108e46097de665de8f0..36ee9c577276eabc2369c11ee368f7b300fc65b2 100644 (file)
@@ -10,3 +10,28 @@ replace restart {
 } by {
        ld      a,(hl+)
 }
+replace restart {
+       ld      a,[hl]
+       inc     hl
+} by {
+       ld      a,[hl+]
+}
+replace restart {
+       ld      a,[hl]
+       inc     hl
+} by {
+       ld      a,[hl+]
+}
+replace restart {
+       ld      [hl],a
+       inc     hl
+} by {
+       ld      [hl+],a
+}
+replace restart {
+       ld      [hl],a
+       dec     hl
+} by {
+       ld      [hl-],a
+}
+