summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-08-12 22:32:26 +0300
committerOxore <oxore@protonmail.com>2023-08-12 22:42:06 +0300
commitb17c600f5235e30fd41a553bbdb83d0e718de285 (patch)
treee77766eb39fa5f579af606d63796ce91c78e197b
parentda1610c19385cb80ebf1af56382f1f3689e2716d (diff)
Fix index reg emission of (d8,An,Xi) and (d8,PC,Xi)
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index beeb1eb..8c92a1d 100644
--- a/main.c
+++ b/main.c
@@ -2949,7 +2949,7 @@ static void emit_arg(
{
const char reg_type = arg->xi & 0x8 ? 'a' : 'd';
const char size = arg->briefext_size == OPSIZE_L ? 'l' : 'w';
- fprintf(s, ",%c%d:%c)", reg_type, arg->xi & 0x7, size);
+ fprintf(s, ",%%%c%d:%c)", reg_type, arg->xi & 0x7, size);
}
break;
case ARG_ADDR_WORD:
@@ -2972,7 +2972,7 @@ static void emit_arg(
{
const char reg_type = arg->xi & 0x8 ? 'a' : 'd';
const char size = arg->briefext_size == OPSIZE_L ? 'l' : 'w';
- fprintf(s, ",%c%d:%c)", reg_type, arg->xi & 0x7, size);
+ fprintf(s, ",%%%c%d:%c)", reg_type, arg->xi & 0x7, size);
}
break;
case ARG_IMMEDIATE: