From 4588586b4084abec04f8d5d3b5bc85f9c8856e94 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Tue, 12 Dec 2023 14:10:40 +0100 Subject: [PATCH] Fixed swap instructions --- src/ulas.c | 2 +- tests/t0.bin | Bin 160 -> 165 bytes tests/t0.s | 2 ++ 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ulas.c b/src/ulas.c index d544753..eb0ab31 100644 --- a/src/ulas.c +++ b/src/ulas.c @@ -2037,13 +2037,13 @@ const struct ulas_instr ULASINSTRS[] = { ULAS_INSTR_REG("push", 0xF5, ULAS_REG_AF), // prefixed + ULAS_INSTR_PRER8D("swap", 0x30), ULAS_INSTR_PRER8D("rlc", 0x00), ULAS_INSTR_PRER8D("rrc", 0x08), ULAS_INSTR_PRER8D("rl", 0x10), ULAS_INSTR_PRER8D("rr", 0x18), ULAS_INSTR_PRER8D("sla", 0x10), ULAS_INSTR_PRER8D("sra", 0x18), - ULAS_INSTR_PRER8D("swap", 0x30), ULAS_INSTR_PRER8D("srl", 0x38), ULAS_INSTR_PREBITR8D("bit", 0x40, '0'), diff --git a/tests/t0.bin b/tests/t0.bin index 94bb56ddcb4e8d68f3bcc21cb7fcf63c7dd79f66..8c9962573f343d89969dc1133ea498ef0f6f34a1 100644 GIT binary patch delta 12 TcmZ3$xRi0i0@l;!uNWBs9-{