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

Exercise 6 Assembly Programming 1

This document provides instructions for two assembly language exercises involving data transfer and arithmetic operations. The first exercise has students store bytes into memory locations, load those contents into a register, and transfer it to another register. The second asks students to store bytes into memory, add the contents and store the result in a register, and then store that result in another memory location. Both exercises are meant to practice assembly language programming skills.

Uploaded by

Mu'izz Kahar
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Exercise 6 Assembly Programming 1

This document provides instructions for two assembly language exercises involving data transfer and arithmetic operations. The first exercise has students store bytes into memory locations, load those contents into a register, and transfer it to another register. The second asks students to store bytes into memory, add the contents and store the result in a register, and then store that result in another memory location. Both exercises are meant to practice assembly language programming skills.

Uploaded by

Mu'izz Kahar
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

ECE365 CLASS EXERCISE: ASSEMBLY LANGUAGE PROGRAMMING WITH DATA

TRANSFER AND ARITHMETIC INSTRUCTIONS (PART 1)

QUESTION 1

Write an assembly language program to perform the followings:

"store bytes $56 and $6D into memory locations ($1300) and ($1301) respectively. Then,
load the contents of ($1300) and ($1301) into register X. Finally, transfer the content of X
register into Y."

QUESTION 2

Write an assembly language program to perform the followings:

"store bytes $02 and $2A into memory locations ($1300) and ($1301) respectively. Then, add
the contents of ($1300) and ($1301) with the answer of addition is kept in B register. Finally,
the answer of addition is stored in memory location ($1302)".

You might also like