summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2022-10-03 10:38:16 +0200
committerQuentin Carbonneaux <quentin@c9x.me>2022-10-08 21:48:47 +0200
commita7e1602252be24f51afa3dc66e3adc2b88d1e0c1 (patch)
treed2e3f12330d87bac858460b4d17c48e909bbb9cd
parent4e90b4210edc439bf749f495855e29f711d7e99e (diff)
downloadroux-a7e1602252be24f51afa3dc66e3adc2b88d1e0c1.tar.gz
fix asm comment position
When emitting data detected as zero
the comment appeared before the data
directives were output.
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index c028503..8959cd9 100644
--- a/main.c
+++ b/main.c
@@ -40,11 +40,11 @@ data(Dat *d)
 {
 	if (dbg)
 		return;
+	emitdat(d, outf);
 	if (d->type == DEnd) {
 		fputs("/* end data */\n\n", outf);
 		freeall();
 	}
-	emitdat(d, outf);
 }
 
 static void