Question: Use 68000 assembly language to write programs that carry out the following tasks. 1. Write a program to compute X = B2-4AC given signed integer

Use 68000 assembly language to write programs that carry out the following tasks.  Use 68000 assembly language to write programs that carry out the

1. Write a program to compute X = B2-4AC given signed integer values for A, B, and C. Variable X should be a signed longword, and A, B, and C should be signed words. Use assembler directives to define two sets of values for A, B, and C, and two result variables to hold computed values of X. For the first computation, let A = +5, B--9, and C = +3 (the answer should be +21). For the second computation, let A =-25,000, B = +1,000, and C =-257 (the answer should be-24,700,000). Run the program to completion and capture the final register contents plus the final contents of the memory locations in question (both sets of A, B, C, and X values)

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!