Skip to content

Commit 4c9ec35

Browse files
committed
in gbrk mode we can print hardware registers directly without movinig to a temp
1 parent 280d8e0 commit 4c9ec35

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

backends/asm/outasm.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5134,6 +5134,11 @@ int OutAsm_DebugEval(AST *ast, int regNum, int *addr, void *ourarg) {
51345134
}
51355135
return n;
51365136
}
5137+
if (ast && ast->kind == AST_HWREG) {
5138+
HwReg *hw = (HwReg *)ast->d.ptr;
5139+
*addr = hw->addr;
5140+
return PASM_EVAL_ISREG;
5141+
}
51375142
srcop = CompileExpression(irl, ast, NULL);
51385143
single_value:
51395144
dstop = GetDebugReg(regNum);

0 commit comments

Comments
 (0)