Skip to Main Content
8051 Microcontroller (Internals, Instructions, Programming and Interfacing)
book

8051 Microcontroller (Internals, Instructions, Programming and Interfacing)

by Subrata Ghosal
May 2024
Intermediate to advanced content levelIntermediate to advanced
503 pages
17h 2m
English
Pearson India
Content preview from 8051 Microcontroller (Internals, Instructions, Programming and Interfacing)
120
LOGICAL OPERATIONS
Method B
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.
Start your free trial

You might also like

8051 Microcontroller, Internals, Instructions, Programming and Interfacing, 2nd Edition

8051 Microcontroller, Internals, Instructions, Programming and Interfacing, 2nd Edition

Subrata Ghoshal

Publisher Resources

ISBN: 9781282655034Publisher Website