microprocessors Write a program to sum all the odd numbers from Oh to 199h. On t
ID: 1981837 • Letter: M
Question
microprocessors
Explanation / Answer
a)
XRA A
//A=0
MOV B,A
//B=0
MVI C,200
//counter
LOOP: INR B
//B++
ADD B
//A=A+B
DCR C
//C--
JNZ LOOP
//if C!=0 goto LOOP
HLT
//end
by changing you can do similar type of programs
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.