cpu/decoder - Remove unnessary intermediate variable
This commit is contained in:
parent
c08fd5d68d
commit
ddea64ec63
1 changed files with 4 additions and 10 deletions
|
@ -203,18 +203,12 @@ void Cpu::executeInstruction()
|
||||||
mcycles = 2;
|
mcycles = 2;
|
||||||
break;
|
break;
|
||||||
case 0xFA: // LD A, [nn]
|
case 0xFA: // LD A, [nn]
|
||||||
{
|
state.A = bus->read8(readPC16());
|
||||||
u16 addr = readPC16();
|
|
||||||
state.A = bus->read8(addr);
|
|
||||||
mcycles = 4;
|
mcycles = 4;
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 0xEA: // LD [nn], A
|
case 0xEA: // LD [nn], A
|
||||||
{
|
bus->write8(readPC16(), state.A);
|
||||||
u16 addr = readPC16();
|
|
||||||
bus->write8(addr, state.A);
|
|
||||||
mcycles = 4;
|
mcycles = 4;
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 0xF2: // LD A, [0xFF : C]
|
case 0xF2: // LD A, [0xFF : C]
|
||||||
state.A = bus->read8(make_u16(0xFFu,state.C));
|
state.A = bus->read8(make_u16(0xFFu,state.C));
|
||||||
|
|
Loading…
Reference in a new issue