Unformatted text preview: 3. In a single loop: a. Add together all the original positive numbers and store at location $1080 b. Add together all the one’s complement numbers and store at $1084 4. Add up the sign/magnitude numbers assuming the first 4 are negative and the rest are positive. a. After loading a number into Accumulator D, ensure that it is negative with the command ORAA #%1000 0000 or positive with the command ANDA #%0111 1111. These commands will set the most significant bit appropriately while leaving all other bits in Accumulator D alone. 5. Do to sets of custom operations, one using one’s complements and the other using two’s complements. Store them at $1086 and $1088 respectively. Results Results are shown on the following page in the screenshot....
View Full Document
- Fall '06
- Signed number representations, single loop, various arithmetic operations, respective requirements Procedure