Question: I need help wriitng the assembly code to execute the addition of the two hex numbers shown in a.) using the steps given in a.)

I need help wriitng the assembly code to execute the addition of the two hex numbers shown in a.) using the steps given in a.)

Help is much appericated!

I need help wriitng the assembly code to execute the addition of

1. Manually calculate the results and write down the 'C' and 'Z' of the condition code register after performing the following additions and subtractions. Write programs to add or subtract the numbers that are stored in the memory and store the sum in memory (i.e. your program should read numbers from the memory, apply mathematical operation to the numbers accordingly and save the result in the memory). Use the Memory Window to initialize the memory locations with values below. Execute the programs and record the sum or subtraction and the C' and 'Z' bits of the condition code register. Verify the results with your manual calculations and the value of the C' and 'Z' bits. Use the following data: a. Addition of two single-byte numbers: 0xC3 +0x8D Helpful steps: 1) Use LDRB to read a byte of data from memory into a register. How does an instruction refer to memory location? Hint: Look at program from previous lab experiment 2) Use ADD to add numbers in registers 3) Use STRH or STR in order to save the result from a register to memory-why shouldn't you use STRB in this case

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!