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
Match each addressing mode in with a data element or an element of a data structure (in a high-level language) in : …
Consider a processor whose instruction set architecture is the load-store architecture. The instruction format is such that the first operand of any instruction is the destination operand. Which one of the following sequences of instructions corresponds to the high-level language statement ? Note: X, Y, and Z …
Consider a processor that has general purpose registers and it uses -byte instruction format for all its instructions. Variable-sized opcodes are permitted. There are three different types of instructions; M-type, R-type, and C-type. Each M-type instruction has register operands and a -bit immediate operand. Each Rtype instruction has …
A processor has general-purpose registers and distinct instruction types. An instruction is encoded in -bits. What is the maximum number of bits that can be used to store the immediate operand for the given instruction? , / /
An application executes number of instructions in seconds. There are four types of instructions, the details of which are given in the table. The duration of a clock cycle in nanoseconds is __________. (rounded off to one decimal place) …
Which of the following is/are part of an Instruction Set Architecture of a processor?
A processor with general purpose registers uses a -bit instruction format. The instruction format consists of an opcode field, an addressing mode field, two register operand fields, and a -bit scalar field. If addressing modes are to be supported, the maximum number of unique opcodes possible for every addressing mode is ___________.
A processor uses a -bit instruction format and supports byte-addressable memory access. The of the processor has distinct instructions. The instructions are equally divided into two types, namely -type and -type, whose formats are shown below. R - type Instruction Format: \begin{array}{|l|l|l|l|l|} \hline …
Consider the given -code and its corresponding assembly code, with a few operands being unknown. Some useful information as well as the semantics of each unique assembly instruction is annotated as inline comments in the code. The memory is byte-addressable. //C-code int a[10], b[10], i; // int is 32 bit for(i=0; i<10; i++) …
Consider the following instruction sequence where registers and are general purpose and denotes the content at the memory location …
A processor has registers and uses -bit instruction format. It has two types of instructions: I-type and R-type. Each I-type instruction contains an opcode, a register name, and a -bit immediate value. Each R-type instruction contains an opcode and two register names. If there are distinct I-type opcodes, then the maximum number of …
A processor has integer registers and floating point registers It uses a instruction format. There are four categories of instructions: and category consists of four instructions, …
Consider the following processor design characteristics: Register-to-register arithmetic operations only Fixed-length instruction format Hardwired control unit Which of the characteristics above are used in the design of a RISC processor?
Consider a RISC machine where each instruction is exactly bytes long. Conditional and unconditional branch instructions use PC-relative addressing mode with Offset specified in bytes to the target location of the branch instruction. Further the Offset is always with respect to the address of the next instruction in the program sequence. Consider the …
Consider the struct defined below: struct data { int marks [100]; char grade; int cnumber; }; struct data student; The base address of student is available in register . The field student.grade can be accessed efficiently using:
Consider a processor with registers and an instruction set of size twelve. Each instruction has five distinct fields, namely, opcode, two source register identifiers, one destination register identifier, and twelve-bit immediate value. Each instruction must be stored in memory in a byte-aligned fashion. If a program has instructions, the …
A processor has distinct instruction and general purpose registers. A -bit instruction word has an opcode, two registers operands and an immediate operand. The number of bits available for the immediate operand field is_______.
Consider a processor with byte-addressable memory. Assume that all registers, including program counter (PC) and Program Status Word (PSW), are size of two bytes. A stack in the main memory is implemented from memory location and it grows upward. The stack pointer (SP) points to the top element of the stack. The current value of SP is …
A machine has a architecture, with long instructions. It has registers, each of which is bits long. It needs to support instructions, which have an immediate operand in addition to two register operands. Assuming that the immediate operand is an unsigned integer, the maximum value of the immediate …
Consider a hypothetical processor with an instruction of type , which during execution reads a word from memory and stores it in a register . The effective address of the memory location is obtained by the addition of a constant and the contents of register . Which …
