Write assembler programs for the problems below. Remember to comment your programs adequately. You should make notes on
Posted: Sat Feb 19, 2022 3:26 pm
use " P16F887"
Write assembler programs for the problems below. Remember to comment your programs adequately. You should make notes on your findings/understanding of the instructions and how they operate. This is a requirement for all the labs on this course. E E 1. Divide two 8-bit numbers: a) Load the literal values 0x3B and 0x36 into two file registers called: NUM1 at memory address 020 and NUM2 at memory address 021. Divide Numl by Num2 and store the result in two file registers Quotient at memory address 031 and Remainder at memory address 030. The program should not modify NUMI or NUM2. Check the result and the STATUS register bits. b) Repeat with the following values for NUMI and NUM2 NUMI NUM2 OxFA Ox67 0x96 Ox05 Ox08 0x70 c) Step through the program using the Step Over command of the simulator and monitor the file registers and the WREG using the various views.