summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2017-01-15 13:00:42 -0600
committerBobby Bingham <koorogi@koorogi.info>2017-01-15 23:19:37 -0600
commite7c287836c8f866091f4394982dc060f838e5ae2 (patch)
tree00233626909b7d1fe38f016b7e59ed6a4d2a42c6
parentf38a18c10bcb7cfd5ce76a7216686b2631789fee (diff)
nqdasm: Output .word directives for unknown instructions
-rw-r--r--nqdasm.c2
1 files changed, 1 insertions, 1 deletions
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;
}