Question: Task 2 Write a program to subtract 5 from memory locations 0 x 1 0 to 0 x 1 3 . The student is allowed

Task 2
Write a program to subtract 5 from memory locations 0x10 to 0x13. The student is allowed key in the address manually (procedure no 7) or by using the direct data memory access method. Students can select any prefer number into the memory location.
Step 1
Place 5 in the WREG register.
Step 2
Subtract WREG from the memory location 0x10 and leave the difference in the memory location 0x10.
Step 3
Subtract WREG from the memory location 0x11 and leave the difference in the memory location 0x11.
Step 4
Subtract WREG from the memory location 0x12 and leave the difference in the memory location 0x12.
(5 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!