Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

5 Variable length instructions are used in which architecture? b. MIPs d. Intel

ID: 3909384 • Letter: 5

Question

5 Variable length instructions are used in which architecture? b. MIPs d. Intel 6. A computer has 32-bit instructions and 12-bit addresses. If we only want to have two- address instructions, how many 2-address instructions can be formulated? C. 1024 d. 512 b. 128 7 A section of .. is used as stack C. RAM d. Registers b. ALtu s. Java Virtual Machine is 9. Addressing modes specify where an 10 Write code to implement the expression: A-(B + C) * D on 3-, 2-, 1-and O-address address type ISA. a. One b. Two c. three is located. a. Address b. Opcode c. instruction d. operand machines 2-address 3-address 1-address O-address

Explanation / Answer

5. answer : c.

variable length instruction are used in ARM architecture

6. Answer : a.

In a computer there is 32 bit instructions. In which two 12 bit are for address

32-24=8 so 8 bit for opcode

2^8 = 256

256 – 2 address instruction can be formulated.

7. Answer : c

Stack always resides in RAM.

8. Answer :d

JVM is zero address type ISA

9. Answer : d

Addressing modes are used to identify the operands of each instructions.

10 Answer : A = (B+C)*D

Three address :

ADD R1, B,C    [R1=B+C]

MUL A,R1,D    [A=R1*D]

Two Address :

MOV R1, B               [R1=B]

ADD R1,C                  [R1 = R1+C]

MUL R1, D                [R1= R1*D]

MOV A, R1              [A = R1]                                                                                                                                                           

One Address: All the operations are done with accumulator

LOAD     B                            [AC = B]

ADD      C                             [AC=AC+C]

MUL      D                             [AC= AC*D]

STORE A                             [A= AC]

Zero Address: stack

PUSH B                 [TOS = B]

PUSH C                 [TOS = C]

ADD                       [TOS = B+C]

PUSH D                 [TOS = D]

MUL                      [TOS = D*(B+C)]

POP A                   [A=TOS]

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote