예제 #1
0
파일: _opcodes_6502.py 프로젝트: jepebe/nes
def RTI(cpu: CPU6502):
    cpu.state.status = cpu.pop_value_from_stack()
    cpu.state.set_flag(Flags6502.U, 1)
    cpu.state.set_flag(Flags6502.B, 0)

    cpu.pop_program_counter_from_stack()
    return 0
예제 #2
0
파일: _opcodes_6502.py 프로젝트: jepebe/nes
def RTS(cpu: CPU6502):
    cpu.pop_program_counter_from_stack()
    cpu.state.pc += 1
    return 0