pub fn load_reg_a_high_mem_reg_c(cpu: &mut CPU) -> u8 {
    let address = 0xFF00 + u16::from(cpu.registers.c);

    cpu.registers.a = cpu.mmu.read8(address);

    8
}
/// Load the A register with a value from memory, using the value of register C added to 0xFF00 as
/// an address.
///
/// Takes 8 cycles.
///
/// # Examples
///
/// ```asm
/// LDH A, (C) ; A <- memory[0xFF00 + C]
/// ```
Load the A register with a value from memory, using the value of register C added to 0xFF00 as
an address.

Takes 8 cycles.
Load the A register with a value from memory using the value of register C added to 0xFF00 as an address . Takes 8 cycles .
pub fn load_reg_a_high_mem_reg_c(cpu: &mut CPU) -> u8 {
    let address = 0xFF00 + u16::from(cpu.registers.c);
    cpu.registers.a = cpu.mmu.read8(address);
    8
}
pub fn load_reg_a_high_mem_reg_c ( cpu : & mut CPU ) -> u8 { let address = 0xFF00 + u16 :: from ( cpu . registers . c ) ; cpu . registers . a = cpu . mmu . read8 ( address ) ; 8 }
Load the A register with a value from memory, using the value of register C added to 0xFF00 as
an address.
Load the A register with a value from memory using the value of register C added to 0xFF00 as an address .
cpu
&mut CPU
cpu
&mut CPU
examples
None