gb-emu-lib/CPU.cpp
unsigned long CPU::LD_HL_n(const byte& opCode)
{
    byte n = ReadBytePC();
    m_MMU->Write(m_HL, n); // Load n into the address pointed at by HL.

    return 12;
}
/*
    LD (HL), n - 0x36

    The contents of n are loaded into the memory location specifed by the
    contents of the HL register pair.

    12 Cycles

    Flags affected(znhc): ----
*/
LD (HL), n - 0x36
The contents of n are loaded into the memory location specifed by the
contents of the HL register pair.

12 Cycles


LD ( HL ) n - 0x36 The contents of n are loaded into the memory location specifed by the contents of the HL register pair . 12 Cycles
unsigned long CPU::LD_HL_n(const byte& opCode)
{
    byte n = ReadBytePC();
    m_MMU->Write(m_HL, n); 
    return 12;
}
unsigned long CPU :: LD_HL_n ( const byte & opCode ) { byte n = ReadBytePC ( ) ; m_MMU -> Write ( m_HL , n ) ; return 12 ; }
LD (HL), n - 0x36
The contents of n are loaded into the memory location specifed by the
contents of the HL register pair.
LD ( HL ) n - 0x36 The contents of n are loaded into the memory location specifed by the contents of the HL register pair .
// Load n into the address pointed at by HL.