Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use 68000 assembly language to write programs that carry out the following tasks. The programs can be written using any text editor or word processor

Use 68000 assembly language to write programs that carry out the following tasks. The programs can be written using any text editor or word processor that can save a file in ASCII text format, and may be executed on Sierra 68306 boards or using the EASy68K simulator. In either case, be sure to include plenty of informative comments to document your approach.

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions