From e7c287836c8f866091f4394982dc060f838e5ae2 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Sun, 15 Jan 2017 13:00:42 -0600 Subject: nqdasm: Output .word directives for unknown instructions --- nqdasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nqdasm.c') diff --git a/nqdasm.c b/nqdasm.c index a2ff732..a7020eb 100644 --- a/nqdasm.c +++ b/nqdasm.c @@ -28,7 +28,7 @@ int main() while (scanf(" %x\n", &bits) > 0) { const struct mnemonic *m = match_instruction(bits); if (!m) { - fprintf(stderr, "could not decode instruction 0x%04x\n", bits); + printf("\t.word 0x%04x\n", bits); continue; } -- cgit v1.2.3