gb-emu-lib/CPU.cpp
unsigned long CPU::ADDA_HL_(const byte& opCode)
{
    byte A = GetHighByte(m_AF);
    byte HL = m_MMU->Read(m_HL);
    SetHighByte(&m_AF, AddByte(A, HL));

    return 8;
}
/*
    ADD A, (HL) - 0x86

    The byte at the memory address specified by the contents of the HL register pair
    is added to the contents of the accumulator, and the result is stored in the
    accumulator.

    8 Cycles

    Flags affected(znhc): z0hc
*/
ADD A, (HL) - 0x86
The byte at the memory address specified by the contents of the HL register pair
is added to the contents of the accumulator, and the result is stored in the
accumulator.

8 Cycles


ADD A ( HL ) - 0x86 The byte at the memory address specified by the contents of the HL register pair is added to the contents of the accumulator and the result is stored in the accumulator . 8 Cycles
unsigned long CPU::ADDA_HL_(const byte& opCode)
{
    byte A = GetHighByte(m_AF);
    byte HL = m_MMU->Read(m_HL);
    SetHighByte(&m_AF, AddByte(A, HL));
    return 8;
}
unsigned long CPU :: ADDA_HL_ ( const byte & opCode ) { byte A = GetHighByte ( m_AF ) ; byte HL = m_MMU -> Read ( m_HL ) ; SetHighByte ( & m_AF , AddByte ( A , HL ) ) ; return 8 ; }
ADD A, (HL) - 0x86
The byte at the memory address specified by the contents of the HL register pair
is added to the contents of the accumulator, and the result is stored in the
accumulator.
ADD A ( HL ) - 0x86 The byte at the memory address specified by the contents of the HL register pair is added to the contents of the accumulator and the result is stored in the accumulator .