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)
185
; If f lag bit is set, then increment word count (R6) by 1, else quit.
;  is is necessary when array terminates with a character other than space.
JNB 00H, OVER ; f lag bit is cleared
INC R6 ; add up the last word
OVER: MOV A, R6 ; the accumulator collects word count
RET ; done
13.8 | GENERATE PRIME NUMBERS
The problem becomes much simpler if it is assumed that there would be no space at
the beginning and there would be only one space between any two words. The reader
may rewrite the program with these assumptions.
13.8 | Generate Prime Numbers
Example 13.8
Purpose: Highlighting multiple types of data-manipulation operations ...
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