24 |
|
|
25 |
|
#include "mon.h" |
26 |
|
#include "mon_cmd.h" |
27 |
< |
#include "mon_ppc.h" |
28 |
< |
#include "mon_68k.h" |
29 |
< |
#include "mon_x86.h" |
30 |
< |
#include "mon_6502.h" |
31 |
< |
#include "mon_8080.h" |
27 |
> |
#include "mon_disass.h" |
28 |
|
|
29 |
|
#ifndef VERSION |
30 |
|
#define VERSION "2" |
337 |
|
|
338 |
|
case CPU_680x0: |
339 |
|
while (adr <= end_adr && !mon_aborted()) { |
344 |
– |
uint16 buf[8]; |
345 |
– |
buf[0] = mon_read_half(adr); |
346 |
– |
buf[1] = mon_read_half(adr + 2); |
347 |
– |
buf[2] = mon_read_half(adr + 4); |
348 |
– |
buf[3] = mon_read_half(adr + 6); |
349 |
– |
buf[4] = mon_read_half(adr + 8); |
350 |
– |
buf[5] = mon_read_half(adr + 10); |
351 |
– |
buf[6] = mon_read_half(adr + 12); |
352 |
– |
buf[7] = mon_read_half(adr + 14); |
340 |
|
fprintf(monout, "%08x: ", mon_use_real_mem ? adr : adr % mon_mem_size); |
341 |
< |
adr += disass_68k(monout, mon_use_real_mem ? adr : adr % mon_mem_size, buf); |
341 |
> |
adr += disass_68k(monout, mon_use_real_mem ? adr : adr % mon_mem_size); |
342 |
|
} |
343 |
|
break; |
344 |
|
|
354 |
|
|
355 |
|
case CPU_80x86: |
356 |
|
while (adr <= end_adr && !mon_aborted()) { |
370 |
– |
uint8 buf[16]; |
371 |
– |
for (int i=0; i<16; i++) |
372 |
– |
buf[i] = mon_read_byte(adr + i); |
357 |
|
fprintf(monout, "%08x: ", mon_use_real_mem ? adr : adr % mon_mem_size); |
358 |
< |
adr += disass_x86(monout, mon_use_real_mem ? adr : adr % mon_mem_size, buf); |
358 |
> |
adr += disass_x86(monout, mon_use_real_mem ? adr : adr % mon_mem_size); |
359 |
|
} |
360 |
|
break; |
361 |
|
} |