Previous 15994 Revisions Next

r5627 Monday 7th September, 2009 at 12:46:59 UTC by Curt Coder
[Z8] Fixed disassembler argument order.
[src/emu/cpu/z8]z8dasm.c

src/emu/cpu/z8/z8dasm.c
r5626r5627
104104         case 0x01:      mnemonic("DEC"); arg_IR(B0); bytes(2);               break;
105105         case 0x02:      mnemonic("ADD"); arg_r(B0H); arg_r(B0L); bytes(2);      break;
106106         case 0x03:      mnemonic("ADD"); arg_r(B0H); arg_Ir(B0L); bytes(2);      break;
107         case 0x04:      mnemonic("ADD"); arg_R(B0); arg_R(B1); bytes(3);      break;
108         case 0x05:      mnemonic("ADD"); arg_R(B0); arg_IR(B1); bytes(3);      break;
107         case 0x04:      mnemonic("ADD"); arg_R(B1); arg_R(B0); bytes(3);      break;
108         case 0x05:      mnemonic("ADD"); arg_R(B1); arg_IR(B0); bytes(3);      break;
109109         case 0x06:      mnemonic("ADD"); arg_R(B0); arg_IM(B1); bytes(3);      break;
110110         case 0x07:      mnemonic("ADD"); arg_IR(B0); arg_IM(B1); bytes(3);      break;
111111         case 0x08:      mnemonic("LD"); arg_r(OPH); arg_R(B0); bytes(2);      break;
r5626r5627
121121         case 0x11:      mnemonic("RLC"); arg_IR(B0); bytes(2);               break;
122122         case 0x12:      mnemonic("ADC"); arg_r(B0H); arg_r(B0L); bytes(2);      break;
123123         case 0x13:      mnemonic("ADC"); arg_r(B0H); arg_Ir(B0L); bytes(2);      break;
124         case 0x14:      mnemonic("ADC"); arg_R(B0); arg_R(B1); bytes(3);      break;
125         case 0x15:      mnemonic("ADC"); arg_R(B0); arg_IR(B1); bytes(3);      break;
124         case 0x14:      mnemonic("ADC"); arg_R(B1); arg_R(B0); bytes(3);      break;
125         case 0x15:      mnemonic("ADC"); arg_R(B1); arg_IR(B0); bytes(3);      break;
126126         case 0x16:      mnemonic("ADC"); arg_R(B0); arg_IM(B1); bytes(3);      break;
127127         case 0x17:      mnemonic("ADC"); arg_IR(B0); arg_IM(B1); bytes(3);      break;
128128         case 0x18:      mnemonic("LD"); arg_r(OPH); arg_R(B0); bytes(2);      break;
r5626r5627
138138         case 0x21:      mnemonic("INC"); arg_IR(B0); bytes(2);               break;
139139         case 0x22:      mnemonic("SUB"); arg_r(B0H); arg_r(B0L); bytes(2);      break;
140140         case 0x23:      mnemonic("SUB"); arg_r(B0H); arg_Ir(B0L); bytes(2);      break;
141         case 0x24:      mnemonic("SUB"); arg_R(B0); arg_R(B1); bytes(3);      break;
142         case 0x25:      mnemonic("SUB"); arg_R(B0); arg_IR(B1); bytes(3);      break;
141         case 0x24:      mnemonic("SUB"); arg_R(B1); arg_R(B0); bytes(3);      break;
142         case 0x25:      mnemonic("SUB"); arg_R(B1); arg_IR(B0); bytes(3);      break;
143143         case 0x26:      mnemonic("SUB"); arg_R(B0); arg_IM(B1); bytes(3);      break;
144144         case 0x27:      mnemonic("SUB"); arg_IR(B0); arg_IM(B1); bytes(3);      break;
145145         case 0x28:      mnemonic("LD"); arg_r(OPH); arg_R(B0); bytes(2);      break;
r5626r5627
155155         case 0x31:      mnemonic("SRP"); arg_IM(*oprom++);                  break;
156156         case 0x32:      mnemonic("SBC"); arg_r(B0H); arg_r(B0L); bytes(2);      break;
157157         case 0x33:      mnemonic("SBC"); arg_r(B0H); arg_Ir(B0L); bytes(2);      break;
158         case 0x34:      mnemonic("SBC"); arg_R(B0); arg_R(B1); bytes(3);      break;
159         case 0x35:      mnemonic("SBC"); arg_R(B0); arg_IR(B1); bytes(3);      break;
158         case 0x34:      mnemonic("SBC"); arg_R(B1); arg_R(B0); bytes(3);      break;
159         case 0x35:      mnemonic("SBC"); arg_R(B1); arg_IR(B0); bytes(3);      break;
160160         case 0x36:      mnemonic("SBC"); arg_R(B0); arg_IM(B1); bytes(3);      break;
161161         case 0x37:      mnemonic("SBC"); arg_IR(B0); arg_IM(B1); bytes(3);      break;
162162         case 0x38:      mnemonic("LD"); arg_r(OPH); arg_R(B0); bytes(2);      break;
r5626r5627
172172         case 0x41:      mnemonic("DA"); arg_IR(B0); bytes(2);               break;
173173         case 0x42:      mnemonic("OR"); arg_r(B0H); arg_r(B0L); bytes(2);      break;
174174         case 0x43:      mnemonic("OR"); arg_r(B0H); arg_Ir(B0L); bytes(2);      break;
175         case 0x44:      mnemonic("OR"); arg_R(B0); arg_R(B1); bytes(3);         break;
176         case 0x45:      mnemonic("OR"); arg_R(B0); arg_IR(B1); bytes(3);      break;
175         case 0x44:      mnemonic("OR"); arg_R(B1); arg_R(B0); bytes(3);         break;
176         case 0x45:      mnemonic("OR"); arg_R(B1); arg_IR(B0); bytes(3);      break;
177177         case 0x46:      mnemonic("OR"); arg_R(B0); arg_IM(B1); bytes(3);      break;
178178         case 0x47:      mnemonic("OR"); arg_IR(B0); arg_IM(B1); bytes(3);      break;
179179         case 0x48:      mnemonic("LD"); arg_r(OPH); arg_R(B0); bytes(2);      break;
r5626r5627
189189         case 0x51:      mnemonic("POP"); arg_IR(B0); bytes(2);               break;
190190         case 0x52:      mnemonic("AND"); arg_r(B0H); arg_r(B0L); bytes(2);      break;
191191         case 0x53:      mnemonic("AND"); arg_r(B0H); arg_Ir(B0L); bytes(2);      break;
192         case 0x54:      mnemonic("AND"); arg_R(B0); arg_R(B1); bytes(3);      break;
193         case 0x55:      mnemonic("AND"); arg_R(B0); arg_IR(B1); bytes(3);      break;
192         case 0x54:      mnemonic("AND"); arg_R(B1); arg_R(B0); bytes(3);      break;
193         case 0x55:      mnemonic("AND"); arg_R(B1); arg_IR(B0); bytes(3);      break;
194194         case 0x56:      mnemonic("AND"); arg_R(B0); arg_IM(B1); bytes(3);      break;
195195         case 0x57:      mnemonic("AND"); arg_IR(B0); arg_IM(B1); bytes(3);      break;
196196         case 0x58:      mnemonic("LD"); arg_r(OPH); arg_R(B0); bytes(2);      break;
r5626r5627
206206         case 0x61:      mnemonic("COM"); arg_IR(B0); bytes(2);               break;
207207         case 0x62:      mnemonic("TCM"); arg_r(B0H); arg_r(B0L); bytes(2);      break;
208208         case 0x63:      mnemonic("TCM"); arg_r(B0H); arg_Ir(B0L); bytes(2);      break;
209         case 0x64:      mnemonic("TCM"); arg_R(B0); arg_R(B1); bytes(3);      break;
210         case 0x65:      mnemonic("TCM"); arg_R(B0); arg_IR(B1); bytes(3);      break;
209         case 0x64:      mnemonic("TCM"); arg_R(B1); arg_R(B0); bytes(3);      break;
210         case 0x65:      mnemonic("TCM"); arg_R(B1); arg_IR(B0); bytes(3);      break;
211211         case 0x66:      mnemonic("TCM"); arg_R(B0); arg_IM(B1); bytes(3);      break;
212212         case 0x67:      mnemonic("TCM"); arg_IR(B0); arg_IM(B1); bytes(3);      break;
213213         case 0x68:      mnemonic("LD"); arg_r(OPH); arg_R(B0); bytes(2);      break;
r5626r5627
223223         case 0x71:      mnemonic("PUSH"); arg_IR(B0); bytes(2);               break;
224224         case 0x72:      mnemonic("TM"); arg_r(B0H); arg_r(B0L); bytes(2);      break;
225225         case 0x73:      mnemonic("TM"); arg_r(B0H); arg_Ir(B0L); bytes(2);      break;
226         case 0x74:      mnemonic("TM"); arg_R(B0); arg_R(B1); bytes(3);         break;
227         case 0x75:      mnemonic("TM"); arg_R(B0); arg_IR(B1); bytes(3);      break;
226         case 0x74:      mnemonic("TM"); arg_R(B1); arg_R(B0); bytes(3);         break;
227         case 0x75:      mnemonic("TM"); arg_R(B1); arg_IR(B0); bytes(3);      break;
228228         case 0x76:      mnemonic("TM"); arg_R(B0); arg_IM(B1); bytes(3);      break;
229229         case 0x77:      mnemonic("TM"); arg_IR(B0); arg_IM(B1); bytes(3);      break;
230230         case 0x78:      mnemonic("LD"); arg_r(OPH); arg_R(B0); bytes(2);      break;
r5626r5627
274274         case 0xa1:      mnemonic("INCW"); arg_IR(B0); bytes(2);               break;
275275         case 0xa2:      mnemonic("CP"); arg_r(B0H); arg_r(B0L); bytes(2);      break;
276276         case 0xa3:      mnemonic("CP"); arg_r(B0H); arg_Ir(B0L); bytes(2);      break;
277         case 0xa4:      mnemonic("CP"); arg_R(B0); arg_R(B1); bytes(3);         break;
278         case 0xa5:      mnemonic("CP"); arg_R(B0); arg_IR(B1); bytes(3);      break;
277         case 0xa4:      mnemonic("CP"); arg_R(B1); arg_R(B0); bytes(3);         break;
278         case 0xa5:      mnemonic("CP"); arg_R(B1); arg_IR(B0); bytes(3);      break;
279279         case 0xa6:      mnemonic("CP"); arg_R(B0); arg_IM(B1); bytes(3);      break;
280280         case 0xa7:      mnemonic("CP"); arg_IR(B0); arg_IM(B1); bytes(3);      break;
281281         case 0xa8:      mnemonic("LD"); arg_r(OPH); arg_R(B0); bytes(2);      break;
r5626r5627
288288         case 0xaf:      mnemonic("RET"); step_out;                        break;
289289
290290         case 0xb0:      mnemonic("CLR"); arg_R(B0); bytes(2);               break;
291         case 0xb1:      mnemonic("XOR"); arg_IR(B0); bytes(2);               break;
291         case 0xb1:      mnemonic("CLR"); arg_IR(B0); bytes(2);               break;
292292         case 0xb2:      mnemonic("XOR"); arg_r(B0H); arg_r(B0L); bytes(2);      break;
293293         case 0xb3:      mnemonic("XOR"); arg_r(B0H); arg_Ir(B0L); bytes(2);      break;
294         case 0xb4:      mnemonic("XOR"); arg_R(B0); arg_R(B1); bytes(3);      break;
295         case 0xb5:      mnemonic("XOR"); arg_R(B0); arg_IR(B1); bytes(3);      break;
294         case 0xb4:      mnemonic("XOR"); arg_R(B1); arg_R(B0); bytes(3);      break;
295         case 0xb5:      mnemonic("XOR"); arg_R(B1); arg_IR(B0); bytes(3);      break;
296296         case 0xb6:      mnemonic("XOR"); arg_R(B0); arg_IM(B1); bytes(3);      break;
297297         case 0xb7:      mnemonic("XOR"); arg_IR(B0); arg_IM(B1); bytes(3);      break;
298298         case 0xb8:      mnemonic("LD"); arg_r(OPH); arg_R(B0); bytes(2);      break;
r5626r5627
342342         case 0xe1:      mnemonic("RR"); arg_IR(B0); bytes(2);               break;
343343         case 0xe2:      illegal;                                    break;
344344         case 0xe3:      mnemonic("LD");   arg_r(B0H); arg_Ir(B0L); bytes(2);      break;
345         case 0xe4:      mnemonic("LD");   arg_R(B0); arg_R(B1); bytes(3);         break;
346         case 0xe5:      mnemonic("LD");   arg_R(B0); arg_IR(B1); bytes(3);      break;
345         case 0xe4:      mnemonic("LD");   arg_R(B1); arg_R(B0); bytes(3);         break;
346         case 0xe5:      mnemonic("LD");   arg_R(B1); arg_IR(B0); bytes(3);      break;
347347         case 0xe6:      mnemonic("LD");   arg_R(B0); arg_IM(B1); bytes(3);      break;
348348         case 0xe7:      mnemonic("LD");   arg_IR(B0); arg_IM(B1); bytes(3);      break;
349349         case 0xe8:      mnemonic("LD"); arg_r(OPH); arg_R(B0); bytes(2);      break;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team