pub fn pop_stack_d8(cpu: &mut CPU) -> u8 {
    // Read byte from stack
    let value = cpu.mmu.read8(cpu.registers.sp);

    // Increment stack pointer
    cpu.registers.sp = cpu.registers.sp.wrapping_add(1);

    value
}
/// Pop an 8-bit value off the stack.
/// Decrements the stack pointer and then writes the 8-bit value using the new stack pointer value.
Pop an 8-bit value off the stack.
Decrements the stack pointer and then writes the 8-bit value using the new stack pointer value.
Pop an 8 - bit value off the stack . Decrements the stack pointer and then writes the 8 - bit value using the new stack pointer value .
pub fn pop_stack_d8(cpu: &mut CPU) -> u8 {
    // Read byte from stack
    let value = cpu.mmu.read8(cpu.registers.sp);
    // Increment stack pointer
    cpu.registers.sp = cpu.registers.sp.wrapping_add(1);
    value
}
pub fn pop_stack_d8 ( cpu : & mut CPU ) -> u8 { // Read byte from stack let value = cpu . mmu . read8 ( cpu . registers . sp ) ; // Increment stack pointer cpu . registers . sp = cpu . registers . sp . wrapping_add ( 1 ) ; value }
Pop an 8-bit value off the stack.
Pop an 8 - bit value off the stack .
cpu
&mut CPU
cpu
&mut CPU