1. The figure below shows the file registers of three different microcontrollers. For each of these file registers, determine the size of the SFR section and the GPR section.
![1679_Determine the size of the SFR section.png](https://secure.tutorsglobe.com/CMSImages/1679_Determine%20the%20size%20of%20the%20SFR%20section.png)
2. What is the content of WREG and each of the RAM locations after the execution of the following program?
ORG 00
MOVLW 2B
MOVWF
MOVWF 3
MOVWF 4
MOVWF 5
ADDWF, 0
ADDWF 3, 1
ADDWF 4, W
ADDWF 5, 1
MOVLW ' 9 '
ADDLW 10H
MOVWF 6
COMF 3
MOVFF 3, 2
ADDWF 1, F
END
3. Write the machine code along with the ROM addresses for following Assembly code.
LOCI EQU 20H
LOC2 EQU 10H
ORG 00H
MOVLW B110011101'
ADDLW D'25'
MOVWF LOCI
MOVFF LOCI, LOC2
HERE GOTO HERE
END
4. What is the status of the C, Z, DC, and OV flags after the execution of the following lines of code?
MOVLW FIN
ADDLW 1
5. Write an assembly program to add 10 8-bit numbers saved in the RAM location 1-10H. If the sum causes an overflow, the result should be saved in the memory location 11H otherwise it should be saved in location 12H.
6. Write and assembly code to subtract an 8-bit number 10 times from another 8-bit number.
7. Write an assembly program to compare between two 8-bit numbers A and B. If A is larger than B, it should be saved in memory location 10H. Otherwise, B should be saved in that location. Hint: Use the instructions CPFSLT or CPFSGT