def get_state(self):
return {<EOL>REG_X: self.index_x.value,<EOL>REG_Y: self.index_y.value,<EOL>REG_U: self.user_stack_pointer.value,<EOL>REG_S: self.system_stack_pointer.value,<EOL>REG_PC: self.program_counter.value,<EOL>REG_A: self.accu_a.value,<EOL>REG_B: self.accu_b.value,<EOL>REG_DP: self.direct_page.value,<EOL>REG_CC: self.get_cc_value(),<EOL>"<STR_LIT>": self.cycles,<EOL>"<STR_LIT>": tuple(self.memory._mem) <EOL>}<EOL>
used in unittests