diff options
Diffstat (limited to 'disasm.c')
-rw-r--r-- | disasm.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -15,7 +15,11 @@ void print_regs(struct sux *cpu, uint8_t lines, uint8_t thread) { wprintw(scr, ", x: $%016"PRIX64, cpu->x); wprintw(scr, ", y: $%016"PRIX64, cpu->y); wprintw(scr, ", sp: $%"PRIX64, cpu->sp); - wprintw(scr, ", ps: $%02X", cpu->ps.u8[thread]); + wprintw(scr, ", ps: %c%c---%c%c%c", cpu->ps.u8[thread] & N ? 'N' : '-' + , cpu->ps.u8[thread] & V ? 'V' : '-' + , cpu->ps.u8[thread] & I ? 'I' : '-' + , cpu->ps.u8[thread] & Z ? 'Z' : '-' + , cpu->ps.u8[thread] & C ? 'C' : '-'); wprintw(scr, ", inst: "); } @@ -107,7 +111,7 @@ void disasm(struct sux *cpu, uint8_t lines, uint8_t opcode, uint8_t prefix, uint if (subdbg) { uint8_t ln = 33; uint16_t line_idx = 0; - uint32_t tmpad = 0x20237; + uint32_t tmpad = 0x20247; int row, col; uint8_t iscursor = 0; union reg ptr; |