0% found this document useful (0 votes)
29 views

Problem 2

This document contains instructions for a programming assignment involving assembling and executing a program using a microprocessor. Students are asked to assemble a program using an instruction table, then execute another program step-by-step, showing the results of each instruction in a provided table. The first program transfers data between registers, while the second loads values from memory locations into registers before performing arithmetic and logic operations on the data.

Uploaded by

api-3724082
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Problem 2

This document contains instructions for a programming assignment involving assembling and executing a program using a microprocessor. Students are asked to assemble a program using an instruction table, then execute another program step-by-step, showing the results of each instruction in a provided table. The first program transfers data between registers, while the second loads values from memory locations into registers before performing arithmetic and logic operations on the data.

Uploaded by

api-3724082
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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