Skip to content

GATE CS Machine Instructions and Addressing Modes questions

Practise Machine Instructions and Addressing Modes questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.

Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.

20 on this page
Official PYQ2008Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
The use of multiple register windows with overlap causes a reduction in the number of memory accesses for: Function locals and parameters Register saves and restores Instruction fetches
Official PYQ2008Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Which of the following must be true for the RFE (Return From Exception) instruction on a general purpose processor? It must be a trap instruction It must be a privileged instruction An exception cannot be allowed to occur during execution of an RFE instruction
Official PYQ2008Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Which of the following is/are true of the auto-increment addressing mode? It is useful in creating self-relocating code If it is included in an Instruction Set Architecture, then an additional ALU is required for effective address calculation The amount of increment depends on the size of the data item accessed
Official PYQ2007Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
In a simplified computer the instructions are: …
Official PYQ2006Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider a new instruction named branch-on-bit-set (mnemonic bbs). The instruction “bbs reg, pos, label” jumps to label if bit in position pos of register operand reg is one. A register is 3232 -bits wide and the bits are numbered 00 to 31,31, bit in position 00 being the least significant. Consider the following emulation of this instruction on a …
Official PYQ2006Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
A CPU has 2424-bitbit instructions. A program starts at address 300300 (in decimal). Which one of the following is a legal program counter (all values in decimal)?
Official PYQ2005Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider the following data path of a CPU.\text{CPU}. The ALU,\text{ALU}, the bus and all the registers in the data path are of identical size. All operations including incrementation of the PC\text{PC} and the GPRs\text{GPRs} are to be carried out in the ALU.\text{ALU}. Two clock cycles are needed for memory read operation – the first one for loading …
Official PYQ2005Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Match each of the high level language statements given on the left hand side with the most natural addressing mode from those listed on the right hand side. …
Official PYQ2005Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider a three word machine instruction ADDA[R0],@B\text{ADD} A[R_0], @B The first operand (destination) “A[R0]”“A[R_0]” uses indexed addressing mode with R0R_0 as the index register. The second operand (source) “@B”“@B” uses indirect addressing mode. AA and BB are memory addresses residing at the second and third words, respectively. The first word of the …
Official PYQ2004Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider the following program segment for a hypothetical CPU having three user registers R1,R2R_1, R_2 and R3.R_3. \begin{array}{|l|l|c|} \hline \text {Instruction} & \text{Operation }& \text{Instruction size (in Words)} \\\hline \text{MOV R1,5000R_1,5000} & \text{R1R1} \leftarrow \text{Memory[5000][5000]}& \text{22} \\\hline\text{MOV …
Official PYQ2004Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider the following program segment for a hypothetical CPU having three user registers R1,R2R_1, R_2 and R3.R_3. …
Official PYQ2004Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Which of the following addressing modes are suitable for program relocation at run time? Absolute addressing Based addressing Relative addressing Indirect addressing
Official PYQ2003Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider the following assembly language program for a hypothetical processor A,B,A, B, and CC are 88 bit registers. The meanings of various instructions are shown as comments. MOV B, #0 ; B←0B \leftarrow 0 MOV C, #8 ; C←8C \leftarrow 8 Z: CMP C, #0 ; compare C with 0 JZ X ; jump to X if zero flag is set SUB C, #1 ; C←C−1C \gets C-1 RRC A, #1 ; right …
Official PYQ2003Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider the following assembly language program for a hypothetical processor A,B,A, B, and CC are 8−8-bit registers. The meanings of various instructions are shown as comments. …
Official PYQ2002Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
In the absolute addressing mode:
Official PYQ2002Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Which of the following is not a form of memory
Official PYQ2001Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Which is the most appropriate match for the items in the first column with the items in the second column: …
Official PYQ2001Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Suppose a processor does not have any stack pointer registers, which of the following statements is true?
Official PYQ2001Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
A low memory can be connected to 8085 by using
Official PYQ2000Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
The most appropriate matching for the following pairsX: Indirect addressing1: Loops Y: Immediate addressing 2: PointersZ: Auto decrement addressing 3: Constants \begin{array}{ll} \text{X: Indirect addressing} & \text{1: Loops } \\ \text{Y: Immediate addressing } & \text{2: Pointers} \\ \text{Z: Auto decrement addressing } & \text{3: Constants } \\ \end{array} is