pub fn push_stack_d16(cpu: &mut CPU, d16: u16) {
    // Write high byte
    push_stack_d8(cpu, ((d16 >> 8) & 0xFF) as u8);
    // Write low byte
    push_stack_d8(cpu, (d16 & 0xFF) as u8);
}
/// Push a 16-bit value to the stack.
/// Pushing the high byte of the value first, then the low byte.
Push a 16-bit value to the stack.
Pushing the high byte of the value first, then the low byte.
Push a 16 - bit value to the stack . Pushing the high byte of the value first then the low byte .
pub fn push_stack_d16(cpu: &mut CPU, d16: u16) {
    // Write high byte
    push_stack_d8(cpu, ((d16 >> 8) & 0xFF) as u8);
    // Write low byte
    push_stack_d8(cpu, (d16 & 0xFF) as u8);
}
pub fn push_stack_d16 ( cpu : & mut CPU , d16 : u16 ) { // Write high byte push_stack_d8 ( cpu , ( ( d16 >> 8 ) & 0xFF ) as u8 ) ; // Write low byte push_stack_d8 ( cpu , ( d16 & 0xFF ) as u8 ) ; }
Push a 16-bit value to the stack.
Push a 16 - bit value to the stack .
cpu
&mut CPU
d16
u16
cpu
&mut CPU
d16
u16