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;