diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/c8asm/assembler.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/c8asm/assembler.c b/src/c8asm/assembler.c index 2e8693b..50955c4 100644 --- a/src/c8asm/assembler.c +++ b/src/c8asm/assembler.c @@ -100,8 +100,10 @@ assemble(FILE *stream, struct ast ast) /* Instructions need to be 0-padded so they appear on an even byte boundary. */ - if (node->instr.kind != I_DB && pad) + if (node->instr.kind != I_DB && pad) { putchar(0); + pad = false; + } switch (node->instr.kind) { case I_ADD_I_VX: |