Deck 13: Addressing Modes and Formats
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/45
Play
Full screen (f)
Deck 13: Addressing Modes and Formats
1
The method of calculating the EA is the same for both base-register addressing and indexing.
True
2
In a system without virtual memory,the effective address is a virtual address or a register.
False
3
With direct addressing,the length of the address field is usually less than the word length,thus limiting the address range.
True
4
The principal advantage of ___________ addressing is that it is a very simple form of addressing.
A)displacement
B)register
C)stack
D)direct
A)displacement
B)register
C)stack
D)direct
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
5
The memory transfer rate has not kept up with increases in processor speed.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
6
Register addressing is similar to direct addressing with the only difference being that the address field refers to a register rather than a main memory address.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
7
The principal price to pay for variable-length instructions is an increase in the complexity of the processor.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
8
__________ has the advantage of flexibility,but the disadvantage of complexity.
A)Stack addressing
B)Displacement addressing
C)Direct addressing
D)Register addressing
A)Stack addressing
B)Displacement addressing
C)Direct addressing
D)Register addressing
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
9
The base with index and displacement mode sums the contents of the base register,the index register,and a displacement to form the effective address.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
10
Register indirect addressing uses the same number of memory references as indirect addressing.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
11
The value of the mode field determines which addressing mode is to be used.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
12
One advantage of linking the addressing mode to the operand rather than the opcode is that any addressing mode can be used with any opcode.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
13
Typically an instruction set will include both preindexing and postindexing.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
14
Three of the most common uses of stack addressing are relative addressing,base-register addressing,and indexing.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
15
The advantage of __________ is that no memory reference other than the instruction fetch is required to obtain the operand.
A)direct addressing
B)immediate addressing
C)register addressing
D)stack addressing
A)direct addressing
B)immediate addressing
C)register addressing
D)stack addressing
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
16
The disadvantage of immediate addressing is that the size of the number is restricted to the size of the address field.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
17
The advantages of _________ addressing are that only a small address field is needed in the instruction and no time-consuming memory references are required.
A)direct
B)indirect
C)register
D)displacement
A)direct
B)indirect
C)register
D)displacement
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
18
For addresses that reference memory the range of addresses that can be referenced is not related to the number of address bits.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
19
__________ has the advantage of large address space,however it has the disadvantage of multiple memory references.
A)Indirect addressing
B)Direct addressing
C)Immediate addressing
D)Stack addressing
A)Indirect addressing
B)Direct addressing
C)Immediate addressing
D)Stack addressing
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
20
The x86 is equipped with a variety of addressing modes intended to allow the efficient execution of high-level languages.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
21
For the _________ mode,the operand is included in the instruction.
A)immediate
B)base
C)register
D)displacement
A)immediate
B)base
C)register
D)displacement
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
22
_________ is a principle by which two variables are independent of each other.
A)Opcode
B)Orthogonality
C)Completeness
D)Autoindexing
A)Opcode
B)Orthogonality
C)Completeness
D)Autoindexing
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
23
Which of the following interrelated factors go into determining the use of the addressing bits?
A)number of operands
B)number of register sets
C)address range
D)all of the above
A)number of operands
B)number of register sets
C)address range
D)all of the above
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
24
Not common on contemporary architectures,___________ requires only one memory reference and no special calculation,but provides only a limited address space.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
25
Sometimes referred to as a pushdown list or last-in-first-out queue,a __________ is a linear array of locations.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
26
The _________ was designed to provide a powerful and flexible instruction set within the constraints of a 16-bit minicomputer.
A)PDP-1
B)PDP-8
C)PDP-11
D)PDP-10
A)PDP-1
B)PDP-8
C)PDP-11
D)PDP-10
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
27
__________ is a design principle employed in designing the PDP-10 instruction set.
A)Orthogonality
B)Completeness
C)Direct addressing
D)All of the above
A)Orthogonality
B)Completeness
C)Direct addressing
D)All of the above
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
28
For _________,the address field references a main memory address and the referenced register contains a positive displacement from that address.
A)indexing
B)base-register addressing
C)relative addressing
D)all of the above
A)indexing
B)base-register addressing
C)relative addressing
D)all of the above
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
29
Just as register addressing is analogous to direct addressing,________ addressing is analogous to indirect addressing.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
30
The simplest form of addressing is __________ addressing.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
31
The __________ byte consists of three fields: the Scale field,the Index field and the Base field.
A)SIB
B)VAX
C)PDP-11
D)ModR / M
A)SIB
B)VAX
C)PDP-11
D)ModR / M
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
32
The only form of addressing for branch instructions is _________ addressing.
A)register
B)relative
C)base
D)immediate
A)register
B)relative
C)base
D)immediate
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
33
All instructions in the ARM architecture are __________ bits long and follow a regular format.
A)8
B)16
C)32
D)64
A)8
B)16
C)32
D)64
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
34
The actual mapping to a physical address is a function of the _________ and is invisible to the programmer.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
35
A very powerful mode of addressing,__________ combines the capabilities of direct addressing and register indirect addressing,requiring that the instruction have two address fields,at least one of which is explicit.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
36
__________ is when the increment or decrement of the index register after each reference to it is done automatically as part of the same instruction cycle.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
37
In the __________ mode the instruction includes a displacement to be added to a base register,which may be any of the general-purpose registers.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
38
Indexing performed after the indirection is __________.
A)relative addressing
B)autoindexing
C)postindexing
D)preindexing
A)relative addressing
B)autoindexing
C)postindexing
D)preindexing
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
39
"All instructions should have the 'natural' number of operands" and "all operands should have the same generality in specification" are two criteria that were used in designing the __________ instruction format.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
40
A(n)__________ defines the layout of the bits of an instruction in terms of its constituent fields,must include an opcode and,implicitly or explicitly,zero or more operands.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
41
If a programmer wished to program directly in machine language it would be necessary to enter the program as ________ data.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
42
Programs written in assembly language are translated into machine language by an _________.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
43
__________ explicitly specifies which segment register an instruction should use,overriding the default segment-register selection generated by the x86 for that instruction.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
44
The __________ instruction set is designed to increase the performance of ARM implementations that use a 16-bit or narrower memory data bus and to allow better code density than provided by the ARM instruction set.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
45
The _________ byte specifies whether an operand is in a register or in memory,and if it is in memory,then fields within the byte specify the addressing mode to be used.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck