Microprocessors and Microcontrollers: Unit II: (b) Looping, Counting, Time Delays & Code Conversion : Two Marks Questions with Answers
Two Marks Questions with Answers
Q.1
Write an 8085 assembly language program to subtract two 8-1 numbers.
(Refer
lab experiment 3.4.3)
Q.2
The last executable instruction in a procedure must be
Ans.
:
RET
Q.3
Why do we need look up table ?
(Refer
section 3.3)
Q.4
Write an assembly language program based on 8085 micr instruction set to find
the square root of data from 1 to n using look
(Refer
section 3.1)
Q.5
What is the recursive procedures?
Ans.
:
In programming, a recursive procedure is a procedure or routine fl ability to
call itself.
Q.6
Write an 8085 assembly program to add two digit BCD numbers locations 5000H and
5001H and store the result in memory location
(Refer
lab experiment 3.4.1)
Q.7
Write a program to load the accumulator with the value 82H and c the
accumulator 700 times.
Ans.
:
MVI
B, 0AH ; Initialize outer counter =10
START
: MVI C, 46H ; Initialize inner counter = 70
MVI
A, 82H ; Load accumulator with
82H
BACK
: CMA ; Complement accumulator
DCR
C ; Decrement lower byte of counter
JNZ
BACK ; if not 0, repeat
DCR
B ; Decrement higher byte of counter
JNZ START ; if not 0, repeat
Microprocessors and Microcontrollers: Unit II: (b) Looping, Counting, Time Delays & Code Conversion : Tag: : Microprocessors and Microcontrollers | Looping, Counting, Time Delays & Code Conversion - Two Marks Questions with Answers
Microprocessor and Microcontroller
EE3404 MCU 4th Semester EEE Dept | 2021 Regulation | 4th Semester EEE Dept 2021 Regulation