Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi! I'm trying to solve these three questions using machine language. In the pictures you can see what I have done so far and a

Hi!

I'm trying to solve these three questions using machine language. In the pictures you can see what I have done so far and a list of of the codes. In the first question I managed to get the correct result. Is it the most effective way to solve it? In the second question I only manage to devide 24 by 3 and not 4. How do I devide it by 4? Did I do the third question correctly? Remember the numbers are written as hexadecimals. The questions are:

1. 4*19 2. 24/4 3 19/2

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Appently my solutions are correct, but I'm wondering, what's the reason for question 3 to result in 9 and not 9,5 as it should be?

Memory KromW Control Unit Registers 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:OX 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:OX Shift bit pattern in register R one bit to the right X times

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

Visualizing Health And Healthcare Data Creating Clear And Compelling Visualizations To See How Youre Doing

Authors: Katherine Rowell ,Lindsay Betzendahl ,Cambria Brown

1st Edition

1119680883, 978-1119680888

Students also viewed these Databases questions