@opcode(<EOL><NUM_LIT>, <EOL>)<EOL><INDENT>def instruction_RTI(self, opcode):<DEDENT>
cc = self.pull_byte(self.system_stack_pointer) <EOL>self.set_cc(cc)<EOL>if self.E:<EOL><INDENT>self.accu_a.set(<EOL>self.pull_byte(self.system_stack_pointer) <EOL>)<EOL>self.accu_b.set(<EOL>self.pull_byte(self.system_stack_pointer) <EOL>)<EOL>self.direct_page.set(<EOL>self.pull_byte(self.system_stack_pointer) <EOL>)<EOL>self.index_x.set(<EOL>self.pull_word(self.system_stack_pointer) <EOL>)<EOL>self.index_y.set(<EOL>self.pull_word(self.system_stack_pointer) <EOL>)<EOL>self.user_stack_pointer.set(<EOL>self.pull_word(self.system_stack_pointer) <EOL>)<EOL><DEDENT>self.program_counter.set(<EOL>self.pull_word(self.system_stack_pointer) <EOL>)<EOL>
The saved machine state is recovered from the hardware stack and control
is returned to the interrupted program. If the recovered E (entire) bit
is clear, it indicates that only a subset of the machine state was saved
(return address and condition codes) and only that subset is recovered.

source code forms: RTI

CC bits "HNZVC": -----