Question: Microprocessors and Microcomputers Lab LAB 4 Flowchart Design Lab Problem Statement Write instructions to add two unsigned data bytes, BYTE1 and BYTE2. Begin by clearing
Microprocessors and Microcomputers Lab
LAB 4 Flowchart Design Lab Problem Statement Write instructions to add two unsigned data bytes, BYTE1 and BYTE2. Begin by clearing three register locations in common GPR memory named ERR_FLAG, LARGE1 and SMALL1. Set all bits to one in the ERR_FLAG register if the sum exceeds the range for an 8-bit number. If the number is within range for an 8- bit number, store the sum in LARGE1 register if the answer is 128 and store the sum in SMALL1 if the answer is < 128. This program can be executed using the simulator only.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
