Please up vote ,comment if any query . Thanks.
Answer :
Marie instruction are format 16 bit long .
instruction OPCDOE are 4 bit long and remining 12 bit for address contained by operand
ADD 005
ADD is instruction
005 the address in memory where a value is located
ADD instruction addition the value located at 005 and AC(accumlator)
AC= AC+M[X]
ADD-> AC+M[X]
opcode of instruction =3 (4 bit ) in binary = 0011
address 005 = 0x005 in binary = 0000 0000 0101
total 16 bit machine code is
machine code in binary = 0011 0000 0000 0101 (16 bit long)
16 bit long string = 0011000000000101 (without spaces)
Please comment if any query . Thanks .
QUESTION 10 Given the instruction set for MARIE: Instruction Opcode Instruction Opcode Instruction JnSX Load X...
Given the instruction set for MARIE: Write the assembly language equivalent for the machine instruction: 1011 000000001111. Instruction Instruction Instruction Opcode JnS X Instruction Halt Skipcond (00 for ACO, 01 for AC-0, 10 for AC0) Jump X Clear AddI X Jumpl X Opcodde Load X8 Store X9 Add X Subt X B Input Output Instruction Instruction Instruction Opcode JnS X Instruction Halt Skipcond (00 for ACO, 01 for AC-0, 10 for AC0) Jump X Clear AddI X Jumpl X Opcodde...
QUESTION 38 Given the instruction set for MARIE in this chapter, decipher the following MARIE machine language instruction 0010000000000111. A. Store 007 B. Add 010 C. Jump B10 D. Add 101
Need help with this question. Thank you :) Which MARIE instruction has the following final step in RTL: AC + AC + MBR Select one: a. Subtx b. Jump X O c. Store X O d. Add X e. Load X
Finish the MARIE assembly language code below to determine the largest integer, the smallest integer, and the sum of integers for a sequence of 5 signed integers. The program already calculates the largest integer, just need it to calculate the smallest integer and the sum of the integers. The 5 integers should first be entered by the user via the input device. Your program is then assembled and run to determine the largest integer, the smallest integer, and the sum...
all info in picture 3. Let's say that Marie added a new command: inc X that adds 1 to the value stored at memory location X. a. Is there an opcode available for this instruction? If so, what opcode would you use? b. Show the RTN for the inc command. Bus 0 Main Memory MAR 2 PC MBR ALU AC InREG 6 OutREG 16-bit bus 4. Write a MARIE program that computes and outputs the absolute value of an input...
Assembly (MARIE), how can I output my input variables on exit?I am trying to compose an assembly (MARIE) program to output my input variables **on exit**. I am triggering an exit when . (period) is entered. I am transforming the input, and to later display the new value on exit.Some context, FOO will return SBB when ran through Rot-13However, my program is displaying the output on each iteration of my loop. I am instead wanting to not display anything, until . is entered...
Instruction set architecture R: register X, Y, Opl, Op2: Operand Quantity: constant value EA: Effective memory address Opcode Operation Name MOV X, Y XCH Opl, Op2 ADD X, Y SUB X,Y SAL Op, Quantity SAR Op, Quantity Shift Arithmetic Right on Op for Quantity SHR Op Quanti AND X, Y OR X, Y XOR X, Y NOT X LOADR, A LOAD R, (A STORE R, A STORE R, (A Description Move data from Y to X Exchange Op1 with Op2...
Op-code Operand Description 1 RXY LOAD register R from cell XY 2 RXY LOAD register R with value XY 3 RXY STORE register R in cell XY 4 0RS MOVE R to S 5 RST ADD S and T into R (2’s comp.) 6 RST ADD S and T into R (floating pt.) 7 RST OR S and T into R 8 RST AND S and T into R 9 RST XOR S and T into R A R0X ROTATE...
1. It is desired to load A[10] into $8, i.e., "lw $8, X($9)". Assume $9 contains the base address of array A. Address Memory content lw $8, X($9) 0x0001 0000 Ox0001 0004 0x0001 0008 Ox0001 000c 0x0001 00101 Ox0001 0014 0x0001 0018 Ox0001 001c 0x0001 00201 0x0001 0024 0x0001 0028 A[O] A[1] $9 contains the based address of array A (i.e., $9 = 0x0001 001c) (a) What is the memory address for A[10]? Answer in hexadecimal number. Hint: Remember that...
Instruction set architecture R: register X, Y, Op1, Op2: Operand Quantity: constant value EA: Effective memory address Opcode Operation Name MOV X Y XCH Opl, Op2 ADD X, Y SUB X, Y SAL Op. Quantity SAR Op. Quantity SHR Op Quantity AND X, Y OR X. Y XOR X, Y NOT X LOAD RA LOAD R. (A) STORERA STORE R. (A) Description Move data from Y to X Exchange Opl with Op2 X=X+Y X=Y-X Shift Arithmetic Left on Op for...