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)
428
APPENDIX C
MCS®-51 PROGRAMMER’S GUIDE AND INSTRUCTION SET
DJNZ <byte>,<rel-addr>
Function: Decrement and Jump if Not Zero
Description: DJNZ decrements the location indicated by 1, and branches to the address indicated
by the second operand if the resulting value is not zero. An original value of 00H will
underfl ow to 0FFH. No f lags are aff ected.  e branch destination would be com-
puted by adding the signed relative-displacement value in the last instruction byte to
the PC, after incrementing the PC to the fi rst byte of the following instruction.
e location decremented may be a register or directly addressed byte.
Note: When this ...
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