summaryrefslogtreecommitdiff
path: root/output_asm.c
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2019-08-03 13:41:33 +1200
committerDavid Phillips <david@sighup.nz>2019-08-03 14:00:37 +1200
commitf0f5c379513ada7482aa4ead08df1043e9c7d267 (patch)
treeca31b963649513642d2b7dd05ef7ace19a9b48e7 /output_asm.c
parent28d6a88c02f10b75fb4c5cb46178d2ef71629494 (diff)
downloadtoy-cpu-assembler-f0f5c379513ada7482aa4ead08df1043e9c7d267.tar.xz
Enable -Wall and -Wextra, fix warnings
Diffstat (limited to 'output_asm.c')
-rw-r--r--output_asm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/output_asm.c b/output_asm.c
index b1ccfc9..fd9f792 100644
--- a/output_asm.c
+++ b/output_asm.c
@@ -46,7 +46,7 @@ void emit_single_ji_type(FILE *f, struct ji_type inst)
{
const char *cond = get_asm_from_j(inst.cond);
- fprintf(f, "%s %s\n", cond, inst.imm.value);
+ fprintf(f, "%s 0x%x\n", cond, inst.imm.value);
}
void emit_single_jr_type(FILE *f, struct jr_type inst)