Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Microprocessors & Interfacing

Fall 2000
Programming Assignment #1

Name:_____________________ Student ID: ______________

1. Using the following table, assemble the following program. You can use the table inside
the back cover of the textbook.

MOV A, B
MOV C, D
ADD C
MOV D, A
MOV A, B
CMA
ANA B
MOV D, A
SUB C

2. Execute the following program and show the results of each step using the table at the
end of the page.
The first table shows the contents of some memory locations that the program uses.

4000 3A
4001 B2
4002 38
4003 29

A B C D
LDA 4000
MOV B, A
MVI A, 59
INR B
ADD B
MOV C, A
LDA 4002
MOV D, A
SUB C
MOV C, A
CMA
MOV B, A

Microprocessors & Interfacing Dr. Bassel Soudan 1

You might also like