Commit e8d6e0bd authored by Connor Abbott's avatar Connor Abbott

disasm: Fix bug when dumping registers

parent f0e28d50
......@@ -121,7 +121,7 @@ static void DumpRegs(Regs srcs)
unsigned reg0 = srcs.reg0;
if (srcs.ctrl == 0)
reg0 |= (srcs.reg1 & 1) << 5;
printf("port 0: R%d ", srcs.reg0);
printf("port 0: R%d ", reg0);
}
if (ctrl.readReg1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment