Alternatively, we may calculate two’s complement of the integer to be subtracted, after loading it in the
accumulator; it may then be added with the other integer. e program would need the following four
instructions:
START: MOV A, R2
CPL A
INC A
ADD A, R3
MCS-51 o ers 10 mnemonics for logical operations out
of which nine are discussed in this chapter. Instructions
are available for byte operators for AND, OR and XOR
operations on using four addressing modes. In these
cases, apart from the accumulator, the directly addressed
locations are also capable of holding the results.
Four instructions are available ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.