Answered step by step
Verified Expert Solution
Question
1 Approved Answer
nt a = - 4 8 ; int b = 6 3 ; int c = - 4 1 ; int d = a +
nt a ; int b ; int c ; int d a b c a b c ; here is an example with other numbers :int d a b c; FB FAO FF FBO FFB FCO AABBCCO DAB DDC DD C pls run it through Brookshear Emulator and also here is some key info OpCode Operand Description RXY LOAD the register R with the bit pattern found in the memory cell whose address is XY RXY LOAD the register R with the bit pattern XY RXY STORE the bit pattern found in register R in the memory cell whose address is XY RS MOVE the bit pattern found in register R to register S 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 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 RST OR the bit patterns in registers S and T and place the result in register R RST AND the bit patterns in registers S and T and place the result in register R RST EXCLUSIVE OR the bit patterns in registers S and T and place the result in register R A RX 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 Otherwise, continue with the normal sequence of execution. C HALT execution
nt a ;
int b ;
int c ;
int d a b c a b c ;
here is an example with other numbers :int d a b c; FB FAO FF FBO FFB FCO AABBCCO DAB DDC DD C
pls run it through Brookshear Emulator and also here is some key info
OpCode Operand Description
RXY LOAD the register R with the bit pattern found in the memory cell whose address is XY
RXY LOAD the register R with the bit pattern XY
RXY STORE the bit pattern found in register R in the memory cell whose address is XY
RS MOVE the bit pattern found in register R to register S
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
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
RST OR the bit patterns in registers S and T and place the result in register R
RST AND the bit patterns in registers S and T and place the result in register R
RST EXCLUSIVE OR the bit patterns in registers S and T and place the result in register R
A RX 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 Otherwise, continue with the normal sequence of execution.
C HALT execution
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started