Match each addressing mode in List I with a data element or an element of a data structure (in a high-level language) in List II:
| List-I | List-II | ||
|---|---|---|---|
| P. | Immediate | 1. | Element of an array |
| Q. | Indirect | 2. | Pointer |
| R. | Base with index | 3. | Element of a record |
| S. | Base with offset/displacement | 4. | Constant |
Consider a processor P 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 $Z=X+Y$ ?
Note: $X, Y$, and $Z$ are memory operands. $R 0, R 1$, and $R 2$ are registers.
Which one of the following dependencies among the register operands of different instructions can cause a data hazard in a pipelined processor?
Consider the real valued variables $X, Y$ and $Z$ represented using the IEEE 754 singleprecision floating-point format. The binary representations of $X$ and $Y$ in hexadecimal notation are as follows:
$$ X: 35 C 00000 \quad Y: 34 A 00000 $$
Let $Z=X+Y$.
Which one of the following is the binary representation of $Z$, in hexadecimal notation?
GATE CSE Papers
All year-wise previous year question papers