fn push_stack_u8(&mut self, value: u8) {
        // The stack page is hard coded.
        let address = u16::from_le_bytes([self.s, memory_range::STACK_PAGE]);
        // The stack points to the next available memory.
        self.bus.borrow_mut().set_u8(address, value);
        // Grow down only after setting the memory.
        self.s = self.s.wrapping_sub(1);
    }
/// This function implements pushing to the stack.
/// See the "S" register for more details.
This function implements pushing to the stack.
See the "S" register for more details.
This function implements pushing to the stack . See the " S " register for more details .
fn push_stack_u8(&mut self, value: u8) {
        // The stack page is hard coded.
        let address = u16::from_le_bytes([self.s, memory_range::STACK_PAGE]);
        // The stack points to the next available memory.
        self.bus.borrow_mut().set_u8(address, value);
        // Grow down only after setting the memory.
        self.s = self.s.wrapping_sub(1);
    }
fn push_stack_u8 ( & mut self , value : u8 ) { // The stack page is hard coded. let address = u16 :: from_le_bytes ( [ self . s , memory_range :: STACK_PAGE ] ) ; // The stack points to the next available memory. self . bus . borrow_mut ( ) . set_u8 ( address , value ) ; // Grow down only after setting the memory. self . s = self . s . wrapping_sub ( 1 ) ; }
This function implements pushing to the stack.
This function implements pushing to the stack .
&mut self
value
u8
&mut self
value
u8