def JSR(cpu: CPU6502): cpu.state.pc -= 1 cpu.push_program_counter_on_stack() cpu.state.pc = cpu.state.addr_abs return 0
def BRK(cpu: CPU6502): cpu.state.pc += 1 cpu.push_program_counter_on_stack() cpu.push_value_on_stack(cpu.state.status | Flags6502.B | Flags6502.U) cpu.load_program_counter_from_addr(0xFFFE) return 0