316 |
|
CPU_Z80, |
317 |
|
CPU_80x86_32, |
318 |
|
CPU_80x86_16, |
319 |
< |
CPU_x86_64 |
319 |
> |
CPU_x86_64, |
320 |
> |
CPU_MIPS, |
321 |
> |
CPU_MIPS_LITTLE, |
322 |
|
}; |
323 |
|
|
324 |
|
static void disassemble(CPUType type) |
362 |
|
} |
363 |
|
break; |
364 |
|
|
365 |
+ |
case CPU_MIPS: |
366 |
+ |
case CPU_MIPS_LITTLE: |
367 |
+ |
while (adr <= end_adr && !mon_aborted()) { |
368 |
+ |
fprintf(monout, "%0*lx: ", int(2 * sizeof(adr)), mon_use_real_mem ? adr : adr % mon_mem_size); |
369 |
+ |
adr += disass_mips(monout, mon_use_real_mem ? adr : adr % mon_mem_size, type == CPU_MIPS_LITTLE); |
370 |
+ |
} |
371 |
+ |
break; |
372 |
+ |
|
373 |
|
case CPU_x86_64: |
374 |
|
while (adr <= end_adr && !mon_aborted()) { |
375 |
|
fprintf(monout, "%0*lx: ", int(2 * sizeof(adr)), mon_use_real_mem ? adr : adr % mon_mem_size); |
429 |
|
disassemble(CPU_x86_64); |
430 |
|
} |
431 |
|
|
432 |
+ |
void disassemble_mips(void) |
433 |
+ |
{ |
434 |
+ |
disassemble(CPU_MIPS); |
435 |
+ |
} |
436 |
+ |
|
437 |
+ |
void disassemble_mipsel(void) |
438 |
+ |
{ |
439 |
+ |
disassemble(CPU_MIPS_LITTLE); |
440 |
+ |
} |
441 |
+ |
|
442 |
|
|
443 |
|
/* |
444 |
|
* Modify memory |