From: Lukas Krickl Date: Fri, 15 Dec 2023 17:54:42 +0000 (+0100) Subject: Added jp hl X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=3702718ec70e9f22dae649c9ba91c6ec7efe1de1;p=ulas%2F.git Added jp hl --- diff --git a/src/ulas.c b/src/ulas.c index de0fe1b..c1d37a3 100644 --- a/src/ulas.c +++ b/src/ulas.c @@ -1975,7 +1975,7 @@ const struct ulas_instr ULASINSTRS[] = { ULAS_INSTR_R16E16("jp", 0xD2, ULAS_REG_NOT_CARRY), ULAS_INSTR_R16E16("jp", 0xCA, ULAS_REG_ZERO), ULAS_INSTR_R16E16("jp", 0xDA, ULAS_REG_CARRY), - ULAS_INSTR_R16E16("jp", 0xE9, ULAS_REG_HL), + {"jp", {ULAS_REG_HL, 0}, {0xE9, 0x00}}, {"jp", {ULAS_E16, 0}, {0xC3, ULAS_E16, 0x00}}, // call diff --git a/tests/t0.bin b/tests/t0.bin index 3e4672e..c409626 100644 Binary files a/tests/t0.bin and b/tests/t0.bin differ diff --git a/tests/t0.s b/tests/t0.s index 8e4ec05..d1f8c5e 100644 --- a/tests/t0.s +++ b/tests/t0.s @@ -120,3 +120,5 @@ l3: .db 1 .de de2, 1 ld a, de1 ld a, de2 + + jp hl