Question: Write a machine-language program to add the three numbers 6, -7 and 4 and output the sum on the output device. Note-the inputs can be

 Write a machine-language program to add the three numbers 6, -7

and 4 and output the sum on the output device. Note-the inputs

can be hard coded in data st rage at the end f

your c de. The accumulat r h Ids 16 bits so use

Write a machine-language program to add the three numbers 6, -7 and 4 and output the sum on the output device. Note-the inputs can be hard coded in data st rage at the end f your c de. The accumulat r h Ids 16 bits so use 16 bit Two' s Complement for the 7 and do not use the subtract instruction. Write it in a format suitable for the loader and execute it on the PEP/8 simulator. You may only use instructions in Fiq 4.6. (Use the Fig 4.6 revised found with the HW2 assignment) You shall submit: A. A written algorithm B. Your commented program similar to the Machine Language (hex) of Fig 4.35 C. The hexadecimal program suitable for the Pep/8 loader (Cut & paste the text into your document so I can check your code) D. A screenshot of your program output screen E. Explain the rangeof numbers that this will work correctly Write a machine-language program to add the three numbers 6, -7 and 4 and output the sum on the output device. Note-the inputs can be hard coded in data st rage at the end f your c de. The accumulat r h Ids 16 bits so use 16 bit Two' s Complement for the 7 and do not use the subtract instruction. Write it in a format suitable for the loader and execute it on the PEP/8 simulator. You may only use instructions in Fiq 4.6. (Use the Fig 4.6 revised found with the HW2 assignment) You shall submit: A. A written algorithm B. Your commented program similar to the Machine Language (hex) of Fig 4.35 C. The hexadecimal program suitable for the Pep/8 loader (Cut & paste the text into your document so I can check your code) D. A screenshot of your program output screen E. Explain the rangeof numbers that this will work correctly

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!