* src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space...
[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      (hl),a
15         dec     hl
16 } by {
17         ld      (hl-),a
18 }
19 replace restart {
20         ld      a,[hl]
21         inc     hl
22 } by {
23         ld      a,[hl+]
24 }
25 replace restart {
26         ld      a,[hl]
27         inc     hl
28 } by {
29         ld      a,[hl+]
30 }
31 replace restart {
32         ld      [hl],a
33         inc     hl
34 } by {
35         ld      [hl+],a
36 }
37 replace restart {
38         ld      [hl],a
39         dec     hl
40 } by {
41         ld      [hl-],a
42 }
43