SCI: Added 'opcodes' command to the debugger; fixed output wrapping in the selectors & kernelnames debugger commands
svn-id: r40919
This commit is contained in:
parent
ae480e2903
commit
099a29b6bf
5 changed files with 37 additions and 16 deletions
|
@ -1221,7 +1221,7 @@ reg_t disassemble(EngineState *s, reg_t pos, int print_bw_tag, int print_bytecod
|
|||
reg_t retval = make_reg(pos.segment, pos.offset + 1);
|
||||
uint16 param_value;
|
||||
int opsize;
|
||||
int opcode;
|
||||
uint opcode;
|
||||
int bytecount = 1;
|
||||
int i = 0;
|
||||
|
||||
|
@ -1298,7 +1298,7 @@ reg_t disassemble(EngineState *s, reg_t pos, int print_bw_tag, int print_bytecod
|
|||
|
||||
if (print_bw_tag)
|
||||
sciprintf("[%c] ", opsize ? 'B' : 'W');
|
||||
sciprintf("%s", s->_opcodes[opcode].name.c_str());
|
||||
sciprintf("%s", opcode < s->_opcodes.size() ? s->_opcodes[opcode].name.c_str() : "undefined");
|
||||
|
||||
i = 0;
|
||||
while (g_opcode_formats[opcode][i]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue