36ee9c577276eabc2369c11ee368f7b300fc65b2
[fw/sdcc] / src / z80 / peeph-gbz80.def
1 replace restart {
2         ld      (hl),a
3         inc     hl
4 } by {
5         ld      (hl+),a
6 }
7 replace restart {
8         ld      a,(hl)
9         inc     hl
10 } by {
11         ld      a,(hl+)
12 }
13 replace restart {
14         ld      a,[hl]
15         inc     hl
16 } by {
17         ld      a,[hl+]
18 }
19 replace restart {
20         ld      a,[hl]
21         inc     hl
22 } by {
23         ld      a,[hl+]
24 }
25 replace restart {
26         ld      [hl],a
27         inc     hl
28 } by {
29         ld      [hl+],a
30 }
31 replace restart {
32         ld      [hl],a
33         dec     hl
34 } by {
35         ld      [hl-],a
36 }
37