1 |
|
/* |
2 |
|
* mon.cpp - cxmon main program |
3 |
|
* |
4 |
< |
* cxmon (C) 1997-2004 Christian Bauer, Marc Hellwig |
4 |
> |
* cxmon (C) 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 |
1050 |
|
mon_add_command("d86", disassemble_80x86_32, "d86 [start [end]] Disassemble 80x86 (32-bit) code\n"); |
1051 |
|
mon_add_command("d8086", disassemble_80x86_16, "d8086 [start [end]] Disassemble 80x86 (16-bit) code\n"); |
1052 |
|
mon_add_command("d8664", disassemble_x86_64, "d8664 [start [end]] Disassemble x86-64 code\n"); |
1053 |
+ |
mon_add_command("dm", disassemble_mips, "dm [start [end]] Disassemble MIPS code\n"); |
1054 |
+ |
mon_add_command("dmel", disassemble_mipsel, "dmel [start [end]] Disassemble MIPS (little-endian) code\n"); |
1055 |
|
mon_add_command(":", modify, ": start string Modify memory\n"); |
1056 |
|
mon_add_command("f", fill, "f start end string Fill memory\n"); |
1057 |
|
mon_add_command("y", apply_byte, "y[b|h|w] start end expr Apply expression to memory\n"); |
1114 |
|
* Main function, read-execute loop |
1115 |
|
*/ |
1116 |
|
|
1117 |
< |
void mon(int argc, char **argv) |
1117 |
> |
void mon(int argc, const char **argv) |
1118 |
|
{ |
1119 |
|
bool done = false, interactive = true; |
1120 |
|
|