1 |
|
/* |
2 |
< |
* mon_cmd.cpp - mon standard commands |
2 |
> |
* mon_cmd.cpp - cxmon standard commands |
3 |
|
* |
4 |
< |
* mon (C) 1997-1999 Christian Bauer, Marc Hellwig |
4 |
> |
* cxmon (C) 1997-1999 Christian Bauer, Marc Hellwig |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
298 |
|
* d68 [start [end]] |
299 |
|
* d80 [start [end]] |
300 |
|
* d86 [start [end]] |
301 |
+ |
* d8086 [start [end]] |
302 |
|
*/ |
303 |
|
|
304 |
|
enum CPUType { |
305 |
|
CPU_PPC, |
306 |
|
CPU_6502, |
307 |
|
CPU_680x0, |
308 |
< |
CPU_8080, |
308 |
> |
CPU_Z80, |
309 |
|
CPU_80x86_32, |
310 |
|
CPU_80x86_16 |
311 |
|
}; |
344 |
|
} |
345 |
|
break; |
346 |
|
|
347 |
< |
case CPU_8080: |
347 |
> |
case CPU_Z80: |
348 |
|
while (adr <= end_adr && !mon_aborted()) { |
348 |
– |
uint8 op = mon_read_byte(adr); |
349 |
– |
uint8 lo = mon_read_byte(adr + 1); |
350 |
– |
uint8 hi = mon_read_byte(adr + 2); |
349 |
|
fprintf(monout, "%08x: ", mon_use_real_mem ? adr : adr % mon_mem_size); |
350 |
< |
adr += disass_8080(monout, mon_use_real_mem ? adr : adr % mon_mem_size, op, lo, hi); |
350 |
> |
adr += disass_z80(monout, mon_use_real_mem ? adr : adr % mon_mem_size); |
351 |
|
} |
352 |
|
break; |
353 |
|
|
384 |
|
disassemble(CPU_680x0); |
385 |
|
} |
386 |
|
|
387 |
< |
void disassemble_8080(void) |
387 |
> |
void disassemble_z80(void) |
388 |
|
{ |
389 |
< |
disassemble(CPU_8080); |
389 |
> |
disassemble(CPU_Z80); |
390 |
|
} |
391 |
|
|
392 |
|
void disassemble_80x86_32(void) |