From b17c600f5235e30fd41a553bbdb83d0e718de285 Mon Sep 17 00:00:00 2001 From: Oxore Date: Sat, 12 Aug 2023 22:32:26 +0300 Subject: Fix index reg emission of (d8,An,Xi) and (d8,PC,Xi) --- main.c | 4 ++-- 1 file 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: -- cgit v1.2.3