ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/mon/src/mon_cmd.cpp
(Generate patch)

Comparing mon/src/mon_cmd.cpp (file contents):
Revision 1.19 by cebix, 2007-01-21T17:32:05Z vs.
Revision 1.20 by gbeauche, 2007-06-07T09:51:56Z

# Line 316 | Line 316 | enum CPUType {
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)
# Line 360 | Line 362 | 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);
# Line 419 | Line 429 | void disassemble_x86_64(void)
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines