From: Lukas Krickl Date: Mon, 11 Dec 2023 17:00:17 +0000 (+0100) Subject: Added missing ld [hl], a instruction X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=46bb3da86520adef88ac2219bfb2eea30267cc61;p=ulas%2F.git Added missing ld [hl], a instruction --- diff --git a/src/ulas.c b/src/ulas.c index 23921f4..66e271a 100644 --- a/src/ulas.c +++ b/src/ulas.c @@ -1882,11 +1882,12 @@ const struct ulas_instr ULASINSTRS[] = { ULAS_INSTR_R8R8D("ld", 0x78, ULAS_REG_A), // ld [r16], a - {"ld", {'[', ULAS_REG_HL, ']', ',', ULAS_E8, 0}, {0x36, ULAS_E8, 0x00}}, {"ld", {'[', ULAS_REG_BC, ']', ',', ULAS_REG_A, 0}, {0x02, 0}}, {"ld", {'[', ULAS_REG_DE, ']', ',', ULAS_REG_A, 0}, {0x12, 0}}, + {"ld", {'[', ULAS_REG_HL, ']', ',', ULAS_REG_A, 0}, {0x77, 0}}, {"ld", {'[', ULAS_REG_HL, '+', ']', ',', ULAS_REG_A, 0}, {0x22, 0}}, {"ld", {'[', ULAS_REG_HL, '-', ']', ',', ULAS_REG_A, 0}, {0x32, 0}}, + {"ld", {'[', ULAS_REG_HL, ']', ',', ULAS_E8, 0}, {0x36, ULAS_E8, 0x00}}, // ld a, [r16] {"ld", {ULAS_REG_A, ',', '[', ULAS_REG_BC, ']', 0}, {0x0A, 0}}, diff --git a/tests/t0.bin b/tests/t0.bin index c4ede5e..6bf9469 100644 Binary files a/tests/t0.bin and b/tests/t0.bin differ diff --git a/tests/t0.s b/tests/t0.s index 5e75e99..52676ce 100644 --- a/tests/t0.s +++ b/tests/t0.s @@ -101,3 +101,5 @@ l2: j1: jp j1 .chksm + + ld [hl], a