struct / union in initializer, RFE #901.
[sdcc.git] / sdcc-extra / emu / rrz80 / cpu / z80_op2x.c
blob40c85a2eda61471d3c2c4a31f388475e04d939a3
1 /*
2 * Copyright (C) 1996-1998 Szeredi Miklos
3 * Email: mszeredi@inf.bme.hu
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version. See the file COPYING.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 /* IX */
23 LD_R_R(b, ixh, RB, XH, 0, 4)
24 LD_R_R(b, ixl, RB, XL, 0, 5)
26 LD_R_R(c, ixh, RC, XH, 1, 4)
27 LD_R_R(c, ixl, RC, XL, 1, 5)
29 LD_R_R(d, ixh, RD, XH, 2, 4)
30 LD_R_R(d, ixl, RD, XL, 2, 5)
32 LD_R_R(e, ixh, RE, XH, 3, 4)
33 LD_R_R(e, ixl, RE, XL, 3, 5)
35 LD_R_R(ixh, b, XH, RB, 4, 0)
36 LD_R_R(ixh, c, XH, RC, 4, 1)
37 LD_R_R(ixh, d, XH, RD, 4, 2)
38 LD_R_R(ixh, e, XH, RE, 4, 3)
39 LD_R_R(ixh, ixl, XH, XL, 4, 5)
40 LD_R_R(ixh, a, XH, RA, 4, 7)
42 LD_R_R(ixl, b, XL, RB, 5, 0)
43 LD_R_R(ixl, c, XL, RC, 5, 1)
44 LD_R_R(ixl, d, XL, RD, 5, 2)
45 LD_R_R(ixl, e, XL, RE, 5, 3)
46 LD_R_R(ixl, ixh, XL, XH, 5, 4)
47 LD_R_R(ixl, a, XL, RA, 5, 7)
50 LD_R_R(a, ixh, RA, XH, 7, 4)
51 LD_R_R(a, ixl, RA, XL, 7, 5)
53 LD_ID_R(ix, IX, b, RB, 0)
54 LD_ID_R(ix, IX, c, RC, 1)
55 LD_ID_R(ix, IX, d, RD, 2)
56 LD_ID_R(ix, IX, e, RE, 3)
57 LD_ID_R(ix, IX, h, RH, 4)
58 LD_ID_R(ix, IX, l, RL, 5)
59 LD_ID_R(ix, IX, a, RA, 6)
61 LD_R_ID(ix, IX, b, RB, 0)
62 LD_R_ID(ix, IX, c, RC, 1)
63 LD_R_ID(ix, IX, d, RD, 2)
64 LD_R_ID(ix, IX, e, RE, 3)
65 LD_R_ID(ix, IX, h, RH, 4)
66 LD_R_ID(ix, IX, l, RL, 5)
67 LD_R_ID(ix, IX, a, RA, 6)
70 /* IY */
72 LD_R_R(b, iyh, RB, YH, 0, 4)
73 LD_R_R(b, iyl, RB, YL, 0, 5)
75 LD_R_R(c, iyh, RC, YH, 1, 4)
76 LD_R_R(c, iyl, RC, YL, 1, 5)
78 LD_R_R(d, iyh, RD, YH, 2, 4)
79 LD_R_R(d, iyl, RD, YL, 2, 5)
81 LD_R_R(e, iyh, RE, YH, 3, 4)
82 LD_R_R(e, iyl, RE, YL, 3, 5)
84 LD_R_R(iyh, b, YH, RB, 4, 0)
85 LD_R_R(iyh, c, YH, RC, 4, 1)
86 LD_R_R(iyh, d, YH, RD, 4, 2)
87 LD_R_R(iyh, e, YH, RE, 4, 3)
88 LD_R_R(iyh, iyl, YH, YL, 4, 5)
89 LD_R_R(iyh, a, YH, RA, 4, 7)
91 LD_R_R(iyl, b, YL, RB, 5, 0)
92 LD_R_R(iyl, c, YL, RC, 5, 1)
93 LD_R_R(iyl, d, YL, RD, 5, 2)
94 LD_R_R(iyl, e, YL, RE, 5, 3)
95 LD_R_R(iyl, iyh, YL, YH, 5, 4)
96 LD_R_R(iyl, a, YL, RA, 5, 7)
99 LD_R_R(a, iyh, RA, YH, 7, 4)
100 LD_R_R(a, iyl, RA, YL, 7, 5)
102 LD_ID_R(iy, IY, b, RB, 0)
103 LD_ID_R(iy, IY, c, RC, 1)
104 LD_ID_R(iy, IY, d, RD, 2)
105 LD_ID_R(iy, IY, e, RE, 3)
106 LD_ID_R(iy, IY, h, RH, 4)
107 LD_ID_R(iy, IY, l, RL, 5)
108 LD_ID_R(iy, IY, a, RA, 6)
110 LD_R_ID(iy, IY, b, RB, 0)
111 LD_R_ID(iy, IY, c, RC, 1)
112 LD_R_ID(iy, IY, d, RD, 2)
113 LD_R_ID(iy, IY, e, RE, 3)
114 LD_R_ID(iy, IY, h, RH, 4)
115 LD_R_ID(iy, IY, l, RL, 5)
116 LD_R_ID(iy, IY, a, RA, 6)