From 7b79732e34e8c3f7a2603631fbd66faca1923db6 Mon Sep 17 00:00:00 2001 From: IniKiwi Date: Tue, 16 Aug 2022 13:23:07 +0200 Subject: [PATCH] bugfix for instruction_movb_r0_disp_gbr --- src/instructions/movb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/instructions/movb.c b/src/instructions/movb.c index 6f0d47a..d882e62 100644 --- a/src/instructions/movb.c +++ b/src/instructions/movb.c @@ -84,7 +84,7 @@ void instruction_movb_r0_disp_r(cpu_status_t* status){ } void instruction_movb_r0_disp_gbr(cpu_status_t* status){ - int d = LO_NIBBLE(cpu_read8(status,status->pc+1)); + int d = cpu_read8(status,status->pc+1); unsigned int disp = (0x000000FF & d); cpu_write8(status, status->gbr + disp, status->r[0]); status->pc += 2;