Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

My ID is EP0106710, i need it to learn how to solve this problem if any Question please ask me . Write an assembly program

My ID is EP0106710, i need it to learn how to solve this problem if any Question please ask me .
image text in transcribed
image text in transcribed
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 OB OC OD OE OF Ox020 AR 50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x130 CP 90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x240 ESDT 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: 00 01 02 03 04 05 06 07 08 09 OA OB OC OD OE OF 0x020 A3 56 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x130 ci 92 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x240 E4 05 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: 0X56A3 [0x021) [0x0201 Number : OX9201 [0x131] [0x130) Number 3: OXD5E4 [0x241) [0x240) Multiply: Ox1BF48 [0x247] [0x246) [0x245] Assemble and build your assembly program using MPLABTM based on the PIC18F458 architecture. Debug your program and show that it is functionally correct. Compile all the deliverables into a report. Your deliverables should include: i) Show all calculations based on your numbers. [2 marks] ii) The assembly program from ASM file (*.asm). [10 marks] iii) The MPLAB Output Window showing the result of the final successful build process. [2 marks] 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 OB OC OD OE OF Ox020 AR 50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x130 CP 90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x240 ESDT 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: 00 01 02 03 04 05 06 07 08 09 OA OB OC OD OE OF 0x020 A3 56 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x130 ci 92 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x240 E4 05 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: 0X56A3 [0x021) [0x0201 Number : OX9201 [0x131] [0x130) Number 3: OXD5E4 [0x241) [0x240) Multiply: Ox1BF48 [0x247] [0x246) [0x245] Assemble and build your assembly program using MPLABTM based on the PIC18F458 architecture. Debug your program and show that it is functionally correct. Compile all the deliverables into a report. Your deliverables should include: i) Show all calculations based on your numbers. [2 marks] ii) The assembly program from ASM file (*.asm). [10 marks] iii) The MPLAB Output Window showing the result of the final successful build process. [2 marks]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

Students also viewed these Databases questions

Question

90 Basic budgeting and accounting concepts.

Answered: 1 week ago