From f71986d23434c1eb9c11a65238309fbfa9fe4b73 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 22 Feb 2024 15:15:47 +0100 Subject: Pad trailing sprite data --- src/c8asm/assembler.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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 -- cgit v1.2.3