1. Program for addition of two immediate numbers.
Screen shot after executing the program. See the accumulator content.
2. Program for subtraction of two immediate numbers.
Screen shot after executing the program. See the accumulator content.
Screen shot after executing the program. See the accumulator content. The result is in 2's compliment form.
3. Program for addition of two numbers stored at memory locations 6001H and 6002H and storing the result at 6003H.
Screen shot after executing the program. see the content of memory locations 6001H, 6002H and 6003H
4. Program for subtraction of two numbers stored at memory locations 6001H and 6002H and storing the result at 6003H.
Screen shot after executing the program. see the content of memory locations 6001H, 6002H and 6003H. Content of 6002H is greater than content of 6001H.
Screen shot after executing the program. see the content of memory locations 6001H, 6002H and 6003H. Content of 6002H is smaller than content of 6001H so the result is in 2's compliment form.
No comments:
Post a Comment