Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

nt a = - 4 8 ; int b = 6 3 ; int c = - 4 1 ; int d = a +

nt a =-48;
int b =63;
int c =-41;
int d = a + b + c -19= a + b + c +(-19);
here is an example with other numbers :int d = a + b + c; 2F1B 3FAO 2F2F 3FBO 2FFB 3FCO 1AA01BB01CCO 5DAB 5DDC 3DD0 C000
pls run it through Brookshear Emulator and also here is some key info
Op-Code Operand Description
1 RXY LOAD the register R with the bit pattern found in the memory cell whose address is XY
2 RXY LOAD the register R with the bit pattern XY
3 RXY STORE the bit pattern found in register R in the memory cell whose address is XY
40RS MOVE the bit pattern found in register R to register S
5 RST ADD the bit patterns in registers S and T as though they were two's complement representations and leave the result in register R R = S + T
6 RST ADD the bit patterns in registers S and T as though they represented values in floating point notation and leave the floating point result in register R
7 RST OR the bit patterns in registers S and T and place the result in register R
8 RST AND the bit patterns in registers S and T and place the result in register R
9 RST EXCLUSIVE OR the bit patterns in registers S and T and place the result in register R
A R0X ROTATE the bit pattern in register R one bit to the right X times. Each time the low order bit is placed at the high order end.
B RXY JUMP to the instruction located in the memory cell at address XY if the bit pattern in register R is equal to the bit pattern in register 0. Otherwise, continue with the normal sequence of execution.
C 000 HALT execution

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

PostgreSQL 10 High Performance Expert Techniques For Query Optimization High Availability And Efficient Database Maintenance

Authors: Ibrar Ahmed ,Gregory Smith ,Enrico Pirozzi

3rd Edition

1788474481, 978-1788474481

More Books

Students also viewed these Databases questions