@opcode(<NUM_LIT>, <NUM_LIT>, <NUM_LIT>) <EOL><INDENT>def instruction_NEG_memory(self, opcode, ea, m):<DEDENT>
if opcode == <NUM_LIT> and ea == <NUM_LIT> and m == <NUM_LIT>:<EOL><INDENT>self._wrong_NEG += <NUM_LIT:1><EOL>if self._wrong_NEG > <NUM_LIT:10>:<EOL><INDENT>raise RuntimeError("<STR_LIT>")<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self._wrong_NEG = <NUM_LIT:0><EOL><DEDENT>r = m * -<NUM_LIT:1> <EOL><INDENT>log.debug("<STR_LIT>" % (<EOL>self.program_counter, m, ea, r,<EOL>))<EOL><DEDENT>self.clear_NZVC()<EOL>self.update_NZVC_8(<NUM_LIT:0>, m, r)<EOL>return ea, r & <NUM_LIT><EOL>
Negate memory