Question: 1. Write a program to add two 32-bit numbers stored at $1200-$1203 and $1204-$1207, and save the sum at $1211-1214. Since the result could be
1. Write a program to add two 32-bit numbers stored at $1200-$1203 and $1204-$1207, and save the sum at $1211-1214. Since the result could be 33 bits if a carry out bit is generated, we need another byte to save the carry bit. Please check the bit C in the CCR register at the end of the calculation. If bit C is set, put #01 at the memory location $1210, otherwise, put #00 there. 1. Write a program to add two 32-bit numbers stored at $1200-$1203 and $1204-$1207, and save the sum at $1211-1214. Since the result could be 33 bits if a carry out bit is generated, we need another byte to save the carry bit. Please check the bit C in the CCR register at the end of the calculation. If bit C is set, put #01 at the memory location $1210, otherwise, put #00 there
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
