bugfix for instruction_movb_r0_disp_gbr
This commit is contained in:
parent
2d7bc9df92
commit
7b79732e34
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue