-[FIX] Do not show highlighted asm line while running.
This commit is contained in:
16
z80debug.cpp
16
z80debug.cpp
@@ -83,7 +83,7 @@ namespace z80debug
|
||||
}
|
||||
|
||||
void stop() { is_debugging = true; refresh(); }
|
||||
void cont() { is_debugging = false; }
|
||||
void cont() { is_debugging = false; refresh(); }
|
||||
const bool debugging() { return is_debugging; }
|
||||
|
||||
void box(int x, int y, int w, int h, uint8_t color)
|
||||
@@ -150,14 +150,18 @@ namespace z80debug
|
||||
printtxt(1,1, "19C6:", COLOR_YELLOW);
|
||||
printtxt(7,1, "01 3C 00", COLOR_YELLOW);
|
||||
printtxt(19,1, "LD BC,0x003C", COLOR_YELLOW);*/
|
||||
uint8_t colors[4] = { COLOR_RED, COLOR_CYAN, COLOR_GRAY, COLOR_WHITE};
|
||||
|
||||
printrect(0,8, 44,1, COLOR_BLUE);
|
||||
uint16_t pc = z80::getPC();
|
||||
uint8_t *memory = z80::getMem();
|
||||
if (breakpoints[pc]&1) printtxt(0,8,"*", COLOR_YELLOW);
|
||||
printtxt(1,8,tohex(pc,4), COLOR_YELLOW);
|
||||
printtxt(7,8, z80dis::getOpcode(pc), COLOR_YELLOW);
|
||||
printtxt(19,8, z80dis::getAsm(pc), COLOR_YELLOW);
|
||||
if (is_debugging) {
|
||||
for (int i=0; i<4;++i) colors[i]=COLOR_YELLOW;
|
||||
printrect(0,8, 44,1, COLOR_BLUE);
|
||||
}
|
||||
if (breakpoints[pc]&1) printtxt(0,8,"*", colors[0]);
|
||||
printtxt(1,8,tohex(pc,4), colors[1]);
|
||||
printtxt(7,8, z80dis::getOpcode(pc), colors[2]);
|
||||
printtxt(19,8, z80dis::getAsm(pc), colors[3]);
|
||||
|
||||
uint16_t pos = pc;
|
||||
for (int i=9;i<18;++i) {
|
||||
|
||||
Reference in New Issue
Block a user