Browse Source

Emulator: Fix LD A,(HL-) opcode: 0x3a

master
Riyyi 2 years ago
parent
commit
a4743fa77b
  1. 2
      src/cpu.cpp

2
src/cpu.cpp

@ -867,7 +867,7 @@ void CPU::lda8()
m_a = read(address);
// Decrement HL
address = (address + 1) & 0xffff;
address = (address - 1) & 0xffff;
m_l = address & 0xff;
m_h = address >> 8;
break;

Loading…
Cancel
Save