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)
448
APPENDIX C
MCS®-51 PROGRAMMER’S GUIDE AND INSTRUCTION SET
ORL C,<src-bit>
Function: Logical-OR for bit variables
Description: Set the carry f lag if the Boolean value is a logical 1; leave the carry in its current state
otherwise. A slash (“/”) preceding the operand in the assembly language indicates that
the logical complement of the addressed bit is used as the source value, but the source
bit itself is not aff ected. No other f lags are aff ected.
Example: Set the carry f lag if and only if P1.0 = 1, ACC. 7 = 1, or OV = 0:
MOV C,P1.0 ; LOAD CARRY WITH INPUT PIN P10
ORL C,ACC.7 ; OR CARRY WITH THE ACC. BIT 7
ORL C, ...
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