diff options
author | Oxore <oxore@protonmail.com> | 2023-08-12 22:32:26 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2023-08-12 22:42:06 +0300 |
commit | b17c600f5235e30fd41a553bbdb83d0e718de285 (patch) | |
tree | e77766eb39fa5f579af606d63796ce91c78e197b | |
parent | da1610c19385cb80ebf1af56382f1f3689e2716d (diff) |
Fix index reg emission of (d8,An,Xi) and (d8,PC,Xi)
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |