Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi! I'm trying to devide and multiply using machine language. I wanna calculate these questions: a)4*19 b)24/4 c)19/2 Tried to calculate 4 times 19 but

Hi!

I'm trying to devide and multiply using machine language. I wanna calculate these questions:

a)4*19

b)24/4

c)19/2

Tried to calculate 4 times 19 but I don't know how to multiply with 4, because when you use code D001, you multiply by 3 and with D002 you multiply by 5. I have no idea how to do question b) or c). You can see in the picture how I did a, and why it's giving me the wrong answer.

Here are the codes:

1R:XY Load register R with bit pattern in memory cell with adress XY

2R:XY Load register R with bit pattern XY

3R:XY Store bit pattern in register R in memory cell with adress XY

40:RS Move bit pattern in register R in register S

5R:ST Add bit pattern in register S and T. Put the result in register R. Bit pattern is supposed to be in 2-complement.

6R:ST Add bit pattern in register S and T. Put the result in register R.

7R:ST OR the bit patterns in register S and T. Put the result in register R.

8R:ST AND the bit patterns in register S and T. Put the result in register R.

9R:ST XOR the bit patterns in register S and T. Put the result in register R.

AR:0X Rotate bit pattern in register R one bit to the right X times.

BR:XY Jump to memory cell with adress XY if bit pattern in register R is equal to bit pattern in register 0.

C0:00 Halt the program

DR:0X Shift bit pattern in register R one bit to the left X times.

ER:0X Shift bit pattern in register R one bit to the right X times.

image text in transcribed

CPU Memory Control Unit

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

Oracle Database 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

More Books

Students also viewed these Databases questions

Question

Prepare a factory overhead flexible budget.

Answered: 1 week ago

Question

Define Scientific Management

Answered: 1 week ago

Question

Explain budgetary Control

Answered: 1 week ago

Question

Solve the integral:

Answered: 1 week ago

Question

What is meant by Non-programmed decision?

Answered: 1 week ago

Question

Is SHRD compatible with individual career aspirations

Answered: 1 week ago