Merge pull request #9958 from Tilka/dspspy

DSPSpy: fix $prod printing
This commit is contained in:
Tilka 2021-07-26 00:43:17 +01:00 committed by GitHub
commit 7fe97b27de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -178,8 +178,10 @@ void print_reg_block(int x, int y, int sel, const u16* regs, const u16* compare_
u64 prod = (u64(regs[DSP_REG_PRODH]) << 32) + (u64(regs[DSP_REG_PRODM]) << 16) +
(u64(regs[DSP_REG_PRODM2]) << 16) + u64(regs[DSP_REG_PRODL]);
CON_Printf(x + 2, y + 13, "PROD: %02x %04x %04x", (prod >> 32) & 0xff, (prod >> 16) & 0xffff,
prod & 0xffff);
u8 prod_h = (prod >> 32) & 0xff;
u16 prod_m = (prod >> 16) & 0xffff;
u16 prod_l = prod & 0xffff;
CON_Printf(x + 2, y + 13, "PROD: %02x %04x %04x", prod_h, prod_m, prod_l);
CON_Printf(x + 2, y + 14, "SR:");
for (int i = 0; i < 16; ++i)