@opcode(<EOL><NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <EOL><NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <EOL>)<EOL><INDENT>def instruction_ADD8(self, opcode, m, register):<DEDENT>
assert register.WIDTH == <NUM_LIT:8><EOL>old = register.value<EOL>r = old + m<EOL>register.set(r)<EOL><INDENT>log.debug("<STR_LIT>" % (<EOL>self.program_counter, opcode, m,<EOL>register.name,<EOL>old, m, r<EOL>))<EOL><DEDENT>self.clear_HNZVC()<EOL>self.update_HNZVC_8(old, m, r)<EOL>
Adds the memory byte into an 8-bit accumulator.

source code forms: ADDA P; ADDB P

CC bits "HNZVC": aaaaa