pub fn push_stack_d8(cpu: &mut CPU, d8: u8) {
    // Decrement stack pointer
    cpu.registers.sp = cpu.registers.sp.wrapping_sub(1);

    // Write byte to stack
    cpu.mmu.write8(cpu.registers.sp, d8);
}
/// Push an 8-bit value to the stack.
/// Decrements the stack pointer and then writes the 8-bit value using the new stack pointer value.
Push an 8-bit value to the stack.
Decrements the stack pointer and then writes the 8-bit value using the new stack pointer value.
Push an 8 - bit value to the stack . Decrements the stack pointer and then writes the 8 - bit value using the new stack pointer value .
pub fn push_stack_d8(cpu: &mut CPU, d8: u8) {
    // Decrement stack pointer
    cpu.registers.sp = cpu.registers.sp.wrapping_sub(1);
    // Write byte to stack
    cpu.mmu.write8(cpu.registers.sp, d8);
}
pub fn push_stack_d8 ( cpu : & mut CPU , d8 : u8 ) { // Decrement stack pointer cpu . registers . sp = cpu . registers . sp . wrapping_sub ( 1 ) ; // Write byte to stack cpu . mmu . write8 ( cpu . registers . sp , d8 ) ; }
Push an 8-bit value to the stack.
Push an 8 - bit value to the stack .
cpu
&mut CPU
d8
u8
cpu
&mut CPU
d8
u8