diff options
Diffstat (limited to 'utils/disassembler/arm/disasm_arm.c')
-rw-r--r-- | utils/disassembler/arm/disasm_arm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/disassembler/arm/disasm_arm.c b/utils/disassembler/arm/disasm_arm.c index aa04ab6265..b23c6b0355 100644 --- a/utils/disassembler/arm/disasm_arm.c +++ b/utils/disassembler/arm/disasm_arm.c | |||
@@ -364,7 +364,10 @@ void block_data(char *stg, ULONG val) | |||
364 | for(i=0; i<16; i++) | 364 | for(i=0; i<16; i++) |
365 | if(val & (1<<i)) | 365 | if(val & (1<<i)) |
366 | sprintf(lst+strlen(lst), "%s, ", regs[i]); | 366 | sprintf(lst+strlen(lst), "%s, ", regs[i]); |
367 | strcpy(lst+strlen(lst)-2, "}"); | 367 | if(strlen(lst)>2) |
368 | strcpy(lst+strlen(lst)-2, "}"); | ||
369 | else | ||
370 | strcpy(lst+strlen(lst), "}"); | ||
368 | 371 | ||
369 | if(val & 0x400000) // load psr or force user mode | 372 | if(val & 0x400000) // load psr or force user mode |
370 | strcpy(lst+strlen(lst), "^"); | 373 | strcpy(lst+strlen(lst), "^"); |