You are on page 1of 2

ASIA PACIFIC INSTITUTE OF INNOVATION AND TECHNOLOGY

TECHNOLOGY PARK MALAYSIA

TUTORIAL SHEET 1

MODULE CODE: EE008-3.5-3

MODULE NAME: MICROPROCESSOR SYSTEMS AND EMBEDDED SOFTWARE

MODULE LECTURER: SATHISH KUMAR SELVAPERUMAL

1. List the instructions in assembly language and machine language for the following requirements:
(a) Load the B register with 20H
(b) Move the contents of the D register into the H register
(c) Load the number 44H into both the C and E registers using only 3 bytes of the
machine language code
(d) Load the B register with D5 and C register with D8.
(e) Redo part(d) using an LXI instruction
(f) Load the D-E register pair with 3800H
2. Determine the contents of the registers after the execution of each of the following Programs:
(a) LXI B,86FFH
INX B
(b) LXI B,25FFH
INR C
3. Develop an assembly language program to load registers A,B,C,D and E with constant FFh.
4. Four bytes of data are stored consecutively from location 2400H onwards. Develop an Assembly
language program to transfer this data to start from 2500H onwards using
(a) LDA
(b) LHLD
5. Determine the contents of the flag registers after the execution of the following instructions
MVI A, 9DH
MVI B, 63H
ADD B
6. Determine the contents of the registers A,B and C, after the execution of the following
instructions.
MVI B,OFH
MVI C, FFH
MVI A, 00H
STA 2400H
LXI H,2402H
MOV M,C
MOV A,B
LDA 2402H
7. Determine the addressing modes of the following instructions:
(a) MVI M,03
(b) PUSH B
(c) RET
(d) LDA 2000
(e) MOV C,D
(f) CMC
8. Analyze the 8085 assembly language program given below and determine the arithmetic operation
performed:
MVI A, 07
RLC
MOV B,A
RLC
RLC
RLC
ORA B
9. Figure 3 shows the stack memory contents before the execution of the POP instruction. Determine the
contents of the 16-bit register, stack pointer and the top of stack, after the execution of the POP
instruction.
16-bit register

to be POPed

6000H
XXXXH
6001H
CDH 6002H
ABH
6003H
33H
SP before 6004H
55H 6005H
POP 10H 6006H
6002H

Before POP
Figure 3
10. Consider the following assembly language instruction of 8085 microprocessor.
JMP 2085
Determine:
a. Addressing mode
b. Instruction format
c. Machine language code

You might also like