Question: Read and understand lecture notes on Topic 3:PIC18 assembly program. Write an assembly program to add THREE 16-bit numbers stored in the file registers located

Read and understand lecture notes on Topic 3:PIC18 assembly program. Write an assembly program to add THREE 16-bit numbers stored in the file registers located at 0x20 to 0x21, 0x130 to 0x131 and 0x240 to 0x241. Store the result at 0x245 to 0x247. All numbers are based on little endian format. The initial contents of the data memory follow your SID as given below: SID: EP 0 1 0 1 2 3 4 SID: EP 0 9 4 5 6 7 Denotes: P Q R S T U 00 01 02 03 04 05 06 07 08 09 OA OBOC OD OE OF Ox020 AR 50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x130 CP 99 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x240 ES DT 00 00 00 00 00 00 00 00 00 00 00 00 00 00 For example, a student with SID EP0123456 will need to modify the data memory into the following: Ox020 0x130 0x240 00 01 02 03 04 05 06 07 08 09 OA OB OC OD OE OF A356 00 00 00 00 00 00 00 00 00 00 00 00 00 00 c1 92 00 00 00 00 00 00 00 00 00 00 00 00 00 00 E4 D5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Therefore, the three 16-bits numbers that are actually being operated on will be: Number 1: Ox56A3 [0x021] [0x020] Number : 0X92c1 [0x131] [0x130] Number 3: OXD5E4 [0x241] [0x240] Multiply: 0x1BF48 [0x247] [0x246) [0x245] Read and understand lecture notes on Topic 3:PIC18 assembly program. Write an assembly program to add THREE 16-bit numbers stored in the file registers located at 0x20 to 0x21, 0x130 to 0x131 and 0x240 to 0x241. Store the result at 0x245 to 0x247. All numbers are based on little endian format. The initial contents of the data memory follow your SID as given below: SID: EP 0 1 0 1 2 3 4 SID: EP 0 9 4 5 6 7 Denotes: P Q R S T U 00 01 02 03 04 05 06 07 08 09 OA OBOC OD OE OF Ox020 AR 50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x130 CP 99 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x240 ES DT 00 00 00 00 00 00 00 00 00 00 00 00 00 00 For example, a student with SID EP0123456 will need to modify the data memory into the following: Ox020 0x130 0x240 00 01 02 03 04 05 06 07 08 09 OA OB OC OD OE OF A356 00 00 00 00 00 00 00 00 00 00 00 00 00 00 c1 92 00 00 00 00 00 00 00 00 00 00 00 00 00 00 E4 D5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Therefore, the three 16-bits numbers that are actually being operated on will be: Number 1: Ox56A3 [0x021] [0x020] Number : 0X92c1 [0x131] [0x130] Number 3: OXD5E4 [0x241] [0x240] Multiply: 0x1BF48 [0x247] [0x246) [0x245]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
