@opcode(<EOL><NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <EOL><NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <EOL>)<EOL><INDENT>def instruction_CMP8(self, opcode, m, register):<DEDENT>
r = register.value<EOL>r_new = r - m<EOL><INDENT>log.warning("<STR_LIT>" % (<EOL>self.program_counter,<EOL>register.name,<EOL>r, m, r_new,<EOL>))<EOL><DEDENT>self.clear_NZVC()<EOL>self.update_NZVC_8(r, m, r_new)<EOL>
Compares the contents of memory location to the contents of the
specified register and sets the appropriate condition codes. Neither
memory location M nor the specified register is modified. The carry flag
represents a borrow and is set to the inverse of the resulting binary
carry.

source code forms: CMPA P; CMPB P

CC bits "HNZVC": uaaaa