diff options
author | Oxore <oxore@protonmail.com> | 2024-03-18 22:53:03 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2024-03-18 22:53:03 +0300 |
commit | 06a850cc15999ec2839342ef79d0694a72628670 (patch) | |
tree | 027e0479653e374082404e2242e894e54f49a467 | |
parent | 6529ed369f4da544c31aa1db0b23fa4eb4663013 (diff) |
Remove dot '.' in size notation
-rw-r--r-- | main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3540,13 +3540,13 @@ static int assem_emit(struct assem *const self, FILE *const stream) const struct instruction instr = stmt->instruction; fprintf(stream, "\t%s", mnemonic_to_string(instr.mnemonic)); if (instr.opsize != OPSIZE_NONE) { - fprintf(stream, ".%c", opsize_to_char(instr.opsize)); + fprintf(stream, "%c", opsize_to_char(instr.opsize)); } else if (is_bcc(instr.mnemonic)) { enum opsize opsize = assem_resolve_bcc(self, i); - fprintf(stream, ".%c", opsize_to_char(opsize)); + fprintf(stream, "%c", opsize_to_char(opsize)); } if (instr.arg1.type != ARG_NONE) { - fprintf(stream, "\t"); + fprintf(stream, " "); emit_arg(lex, &instr.arg1, stream); if (instr.mnemonic == MN_JMP || instr.mnemonic == MN_JSR) { if (instr.arg1.type == ARG_ADDR_UNSPEC) { @@ -3554,7 +3554,7 @@ static int assem_emit(struct assem *const self, FILE *const stream) } } if (instr.arg2.type != ARG_NONE) { - fprintf(stream, ", "); + fprintf(stream, ","); emit_arg(lex, &instr.arg2, stream); } } |