diff options
-rw-r--r-- | nqdasm.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,5 @@ #include <stdio.h> +#include <string.h> #include "mnemonics.h" @@ -33,7 +34,8 @@ int main() printf("\t%s", m->mnem); for (int i = 0; i < 3 && m->operands[i].type; i++) { - printf("%s", i ? ", " : " "); + if (i) printf(", "); + else printf("%*s", 8 - (int)strlen(m->mnem), ""); print_operand(bits, m->operands + i); } printf("\n"); |