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)
110
LOGICAL OPERATIONS
In the fi rst four instruction types, it is in the accumulator that the fi nal result would be available. However,
in the last two instruction types, it is the directly addressed memory location which would store the fi nal result
of the AND operation.
e execution of instruction ANL A, B is illustrated as an example case in Fig. 9.1. Assuming original
contents of the registers A and B to be 57H and A9H, respectively, after the AND operation, the accumulator
would have 01H as the result. No fl ags would be aff ected. Note that this is a 2-byte instruction indicated by
the opcode 55H. Direct address of the SFR B (F0H) becomes ...
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