pub fn load_high_mem_d8_reg_a(cpu: &mut CPU) -> u8 {
    // Read 8-bit value
    let address = 0xFF00 + u16::from(cpu.fetch8());

    // Write the byte to memory
    cpu.mmu.write8(address, cpu.registers.a);

    12
}
/// Load memory, using an 8-bit value added to 0xFF00 as an address, with the A register value.
///
/// Takes 12 cycles.
///
/// # Examples
///
/// ```asm
/// LDH ($DA), A ; memory[0xFFDA] <- A
/// ```
Load memory, using an 8-bit value added to 0xFF00 as an address, with the A register value.
Takes 12 cycles.
Load memory using an 8 - bit value added to 0xFF00 as an address with the A register value . Takes 12 cycles .
pub fn load_high_mem_d8_reg_a(cpu: &mut CPU) -> u8 {
    // Read 8-bit value
    let address = 0xFF00 + u16::from(cpu.fetch8());
    // Write the byte to memory
    cpu.mmu.write8(address, cpu.registers.a);
    12
}
pub fn load_high_mem_d8_reg_a ( cpu : & mut CPU ) -> u8 { // Read 8-bit value let address = 0xFF00 + u16 :: from ( cpu . fetch8 ( ) ) ; // Write the byte to memory cpu . mmu . write8 ( address , cpu . registers . a ) ; 12 }
Load memory, using an 8-bit value added to 0xFF00 as an address, with the A register value.
Load memory using an 8 - bit value added to 0xFF00 as an address with the A register value .
cpu
&mut CPU
cpu
&mut CPU
examples
None