fn JSR(&mut self, nes: &mut NesData) -> u8 {
        self.pc -= 1;
        nes.cpu_write( 0x0100 + self.stkp as u16, self.pc.get_high_byte());
        self.stkp -= 1;
        nes.cpu_write( 0x0100 + self.stkp as u16, self.pc.get_high_byte());
        self.stkp -= 1;
        self.pc = self.addr_abs;
        0u8
    }
/// Jump to sub routine, push current program counter to stack
Jump to sub routine, push current program counter to stack
Jump to sub routine push current program counter to stack
fn JSR(&mut self, nes: &mut NesData) -> u8 {
        self.pc -= 1;
        nes.cpu_write( 0x0100 + self.stkp as u16, self.pc.get_high_byte());
        self.stkp -= 1;
        nes.cpu_write( 0x0100 + self.stkp as u16, self.pc.get_high_byte());
        self.stkp -= 1;
        self.pc = self.addr_abs;
        0u8
    }
fn JSR ( & mut self , nes : & mut NesData ) -> u8 { self . pc -= 1 ; nes . cpu_write ( 0x0100 + self . stkp as u16 , self . pc . get_high_byte ( ) ) ; self . stkp -= 1 ; nes . cpu_write ( 0x0100 + self . stkp as u16 , self . pc . get_high_byte ( ) ) ; self . stkp -= 1 ; self . pc = self . addr_abs ; 0u8 }
Jump to sub routine, push current program counter to stack
Jump to sub routine push current program counter to stack
&mut self
nes
&mut NesData
&mut self
nes
&mut NesData