Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using CUSP and ASIDE, write the assembly language program . Multiplication can be performed by successive additions (N x M is computed by adding M

Using CUSP and ASIDE, write the assembly language program.

Multiplication can be performed by successive additions (N x M is computed by adding M to N times to the value 0). Create a program that adds two values stored at $100 and $101 and stores the result at the word at $102. You should be careful about the sign of the input and take this into account when devising the successive addition loop. Some good interesting examples are -8388608 and -1,8388607 and -1, -8388608 and -1. You can use the real MUL instruction to verify your results.

The file mult.txt should contain the high-level algorithm (i.e., multiplication by

repeated addition) that you are using to guide the development of your assembly

language program. You can write this algorithm in a programming language like

C or Java or Python, or write it in some sort of pseudocode. The file mult.csp

should contain your assembly language program. Run that program through the

ASIDE assembler to generate the object file (i.e., the machine code) mult.obj.

Of course, once you get to that point, you'll want to test it out by running the

object code on the CUSP simulator, but there's no resulting file to submit. Just

submit the three files mult.txt, mult.csp, and mult.obj.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago