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

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

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

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