Myanmar Institute of Information Technology
I Semester 2024-2025
ECE 3010 Microprocessor & Interfacing
Assignment II
Due Date : 18.12.2024 (10:00 AM)
1. Discuss the four categories of 8085 instructions that manipulate data.
2. Define opcode and operand, and specify the opcode and the operand in the
instruction MOV H,L .
3. Write the machine code for the instruction MOV H,A if the opcode= 01 2, the
register code for H = 1002, and the register code for A = 1112.
4. Find the machine codes and the number of bytes of the following instructions.
Identify the opcodes and the operands.
(a) MVI H,47H (b) ADI F5H (c) SUB C
5. Find the Hex codes for the following instructions, identify the opcodes and
operands, and show the order of entering the codes in memory.
(a) STA 2050H (b) JNZ 2070H
6. Find the Hex machine code for the following instructions and identify the number
of bytes of each instruction. If the starting address of the system memory is
2000H, identify the memory addresses and their corresponding Hex codes.
MVI B,4FH ;Load the first byte
MVI C,78H ;Load the second byte
MOV A,C ;Get ready for addition
ADD B ;Add two bytes
OUT 07H ;Display the result at port 7
HLT ;End of program
7. Assemble the following program, starting with the memory address 2020H.
MVIA,8FH ;Load the first byte
MVIB,68H ;Load the second byte
SUB B ;Subtract the second byte
ANI 0FH ;Eliminate 𝐷7 − 𝐷4
STA 2070H ;Store 𝐷3 − 𝐷0 in memory location 2070H
HLT ;End of program
8. Assemble the following program, starting at location 2000H.
START: IN F2H ;Read input switches at port F2H
CMA ;Set ON switches to logic 1
ORA A ;Set Z flag if no switch is ON
JZ START ;Go back and read input port if all
; switches are off
Page 1 of 3
Myanmar Institute of Information Technology
I Semester 2024-2025
ECE 3010 Microprocessor & Interfacing
Assignment II
Due Date : 18.12.2024 (10:00 AM)
9. Write 8085 assembly language program to add the following two Hex numbers.
Both the numbers should be saved for future use. Save the sum in the
accumulator.
Numbers: A2H and 18H
10.Data byte 28H is stored in register B and data byte 97H is stored in the accumula-
tor. Show the contents of registers B, C, and the accumulator after the execution
of the following two instructions:
MOV A,B
MOVC,A
11.Given the following set of Hex codes, identify the mnemonics and determine the
main task of this following program.
Part of Memory
Address (H) Content (H)
2020 3E
F2
32
32
20
76
12.Given the following set of Hex codes, identify the mnemonics and determine the
main task of this following program.
Part of Memory
Address(H) Content (H)
2040 06
82
78
32
50
20
FF
Page 2 of 3
Myanmar Institute of Information Technology
I Semester 2024-2025
ECE 3010 Microprocessor & Interfacing
Assignment II
Due Date : 18.12.2024 (10:00 AM)
13.Given the following set of Hex codes, identify the mnemonics and determine the
main task of this following program.
Part of Memory
Address(H) Content (H)
2025 06
4F
0E
37
78
81
00
32
35
20
76
Page 3 of 3