static void _printStatus(struct CLIDebuggerSystem* debugger) { struct LR35902Core* cpu = debugger->p->d.core->cpu; printf("A: %02X F: %02X (AF: %04X)\n", cpu->a, cpu->f.packed, cpu->af); printf("B: %02X C: %02X (BC: %04X)\n", cpu->b, cpu->c, cpu->bc); printf("D: %02X E: %02X (DE: %04X)\n", cpu->d, cpu->e, cpu->de); printf("H: %02X L: %02X (HL: %04X)\n", cpu->h, cpu->l, cpu->hl); printf("PC: %04X SP: %04X\n", cpu->pc, cpu->sp); _printFlags(cpu->f); }
static void _printStatus(struct CLIDebuggerSystem* debugger) { struct CLIDebuggerBackend* be = debugger->p->backend; struct LR35902Core* cpu = debugger->p->d.core->cpu; be->printf(be, "A: %02X F: %02X (AF: %04X)\n", cpu->a, cpu->f.packed, cpu->af); be->printf(be, "B: %02X C: %02X (BC: %04X)\n", cpu->b, cpu->c, cpu->bc); be->printf(be, "D: %02X E: %02X (DE: %04X)\n", cpu->d, cpu->e, cpu->de); be->printf(be, "H: %02X L: %02X (HL: %04X)\n", cpu->h, cpu->l, cpu->hl); be->printf(be, "PC: %04X SP: %04X\n", cpu->pc, cpu->sp); _printFlags(be, cpu->f); _printLine(debugger->p, cpu->pc, -1); }