- [NEW] F12 to StepOut() on debugger (break on RET, RETI or RETN)
- [FIX] Fixed visualizacion of some IX and IY opcodes - [NEW] Scroll on memory viewer with mouse wheel - [NEW] While debugging, on each step the screen refreshes, so screen redraw can be seen while happening - [NEW] Search for sequences of bytes. Example: "search AB1140" to search for the sequece $AB $11 $40. "search next" to continue searching.
This commit is contained in:
13
z80dis.cpp
13
z80dis.cpp
@@ -123,7 +123,7 @@ namespace z80dis
|
||||
if (strstr(buffer, "4x"))
|
||||
{
|
||||
opcode_size+=2;
|
||||
const uint16_t word = *(uint16_t*)(memory+1);
|
||||
const uint16_t word = *(uint16_t*)(memory+((*memory==0xFD) || (*memory==0xDD)?2:1));
|
||||
if (symbols[word][0]!=0) {
|
||||
char *p = strstr(buffer, "$");
|
||||
(*p)='%'; p++;
|
||||
@@ -173,11 +173,12 @@ namespace z80dis
|
||||
opcode_size+=1;
|
||||
|
||||
strcpy(base, buffer);
|
||||
if (opcode_size>4) opcode_size=4;
|
||||
sprintf(buffer, base, (int8_t)*(memory+3));
|
||||
//} else {
|
||||
// sprintf(buffer, base, (int8_t)*(memory+1));
|
||||
//}
|
||||
if (opcode_size>4) {
|
||||
opcode_size=4;
|
||||
sprintf(buffer, base, (int8_t)*(memory+3));
|
||||
} else {
|
||||
sprintf(buffer, base, (int8_t)*(memory+2));
|
||||
}
|
||||
}
|
||||
|
||||
return buffer;
|
||||
|
||||
Reference in New Issue
Block a user