Browse Source

fix asm comment position

When emitting data detected as zero
the comment appeared before the data
directives were output.
Quentin Carbonneaux 3 years ago
parent
commit
a7e1602252
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.c

+ 1 - 1
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