You are on page 1of 2

UNIVERSIDAD DE LA SALLE

INGENIERIA EN AUTOMATIZACIN


Digital System II Workshop 1 Topic : Assembly language
1- Write a program to:
a- Clear WREG
b- Add 3 to WREG ten times.
c- What is the maximun number of times that the loop can be repeated?
2- Write a program to find the sum of the values 79H, F5H, and E2h. Put the sum in file Reg
locations 5 (low byte) and 6 (high byte).
3- Assume that file register RAM locations 40 43H have the following hex values:
40 = 71
41 = 88
42 = 69
43 = 97
Write a program to fiend the sum of all the numbers. The result must be in BCD.
4- Write a program to subtract 4C 6E
5- Write a program to subtract two 16 bit numbers. The numbers are 2762H 1296H
Observation:
Write a program in assembly language for each exercise introduced in this workshop
Compile the MPLAB editor.
Check the results in the MPLAB simulator
Take a word report as instructed in class. (in a digital archive)
Included in the digital that generates executable mplab.
Give the report the September 1 at 13:00 hours. (in a digital archive)

Work in groups of three or four people
IMPORTANT:
The day Monday 1 of September to conduct a Quiz on the topics covered in
class and workshop (assembly language).

UNIVERSIDAD DE LA SALLE
INGENIERIA EN AUTOMATIZACIN

You might also like