Task 1 Write a program that adds the three numbers stored in data registers at 0x20, 0x30, and Ox40 and places the sum in data register at 0x50. Step 1 Load the number of 0x20 into the WREG register...


Task 1<br>Write a program that adds the three numbers stored in data registers at 0x20, 0x30, and<br>Ox40 and places the sum in data register at 0x50.<br>Step 1<br>Load the number of 0x20 into the WREG register<br>Step 2<br>Add the number of 0x30 and the number in the WREG register and leave the sum in the<br>WREG register.<br>Step 3<br>Add the number of 0x40 and the number in the WREG register and leave the sum in the<br>WREG register.<br>Step 4<br>Store the contents of the WREG register in the memory location at 0x50.<br>Modify the program in Task1, so the program will run in infinite loop by using these<br>following functions:<br>i.<br>GOTO function<br>

Extracted text: Task 1 Write a program that adds the three numbers stored in data registers at 0x20, 0x30, and Ox40 and places the sum in data register at 0x50. Step 1 Load the number of 0x20 into the WREG register Step 2 Add the number of 0x30 and the number in the WREG register and leave the sum in the WREG register. Step 3 Add the number of 0x40 and the number in the WREG register and leave the sum in the WREG register. Step 4 Store the contents of the WREG register in the memory location at 0x50. Modify the program in Task1, so the program will run in infinite loop by using these following functions: i. GOTO function

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here