aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-02-22 15:15:47 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-02-22 15:15:47 +0100
commitf71986d23434c1eb9c11a65238309fbfa9fe4b73 (patch)
treeed69b4eb3fd6cd5688f1ad3a64c146752dcba75c /src
parent3d92d615396d8b3f1c43ad59196e40f15a87bcc8 (diff)
Pad trailing sprite data
Diffstat (limited to 'src')
-rw-r--r--src/c8asm/assembler.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/c8asm/assembler.c b/src/c8asm/assembler.c
index daafc11..9aa356c 100644
--- a/src/c8asm/assembler.c
+++ b/src/c8asm/assembler.c
@@ -230,6 +230,9 @@ assemble(FILE *stream, struct ast ast)
}
}
+ if (pad)
+ putchar(0);
+
locals.len = 0;
#undef PUT