Pre-study- Instruction sets, Addressing Modes Flashcards
An ISA is defined as the design of a computer from the ___________ Perspective.
Programmer’s
ISA include 3 types of MIPS instructions
Arithmetic/ Logic Instructions
Data Transfer Instructions
Branch and Jump Instructions
ISA instruction - Arithmetic/ Logic Instructions
These Instructions perform various Arithmetic & Logical operations on one or more operands.
ISA instruction - Data Transfer Instructions
These instructions are responsible for the transfer of instructions from memory to the processor registers and vice versa.
ISA instruction - Branch and Jump Instructions
These instructions are responsible for breaking the sequential flow of instructions and jumping to instructions at various other locations, this is necessary for the implementation of functions and conditional statements.
The ISA defines the maximum length of each type of ________.
Since the MIPS is a 32 bit ISA, each instruction must be accommodated within 32 bits.
instruction
The ISA defines the Instruction Format of each type of instruction.
The Instruction Format determines how the entire instruction is encoded within 32 bits
There are 3 types of Instruction Formats in the MIPS ISA:
R-Instruction Format
I-Instruction Format
J-Instruction Format
Binary _____ is false / OFF
Zero ( 0 )
Binary ____ is true / ON
One ( 1 )
8 bits equals _____ byte
One
Binary is a _____ number system: counting done by a computer.
mathematics
Addressing modes in computer architecture techniques are used to accommodate the following provisions:
It provides programming versatility to the user by including pointers to the memory, indexing of data, counters for loop control, and program relocation.
It reduces the number of bits in the addressing field of the instruction.
It also provides flexibility to the assembly language programmer in writing more efficient programs concerning the number of instructions and execution time.
The _______ _______ refers to how the operand of an instruction is specified. It specifies a rule for interpreting/modifying the address field of the instruction before referencing the operand.
Addressing mode
The control unit is designed to go through an instruction cycle divided into three major phases:
______ the instruction from memory:
Program Counter (PC) is one of the registers present in the system that keeps track of the program’s instructions stored in the memory. It holds the address of the next instruction to be executed and is incremented every time an instruction is fetched from memory.
_______ the instruction:
It determines the operation to be performed: the operands’ location and the instruction’s addressing mode. Further, the computer executes the instruction and returns to step 1 (fetching the instruction from memory) to fetch the next instruction in the sequence.
______ the instruction:
The addressing mode of the instruction is specified with a unique binary code that designates both the operation and the mode of the instruction. Instructions can be defined with a variety of addressing modes. Combining two or more addressing modes in one instruction is also possible.
Fetch
Decode
Execute
type of addressing mode:
_______ / ______ _____ _____
The operands are implicitly specified in the instruction’s definition.
Consider the example, the instruction “complement accumulator” is an implied-mode instruction as the operand in the accumulator register is implied in the instruction definition. All register reference the instructions that use an accumulator are implied-mode instructions. Zero-address instructions in a stack-organized computer are also implied-mode instructions because the operands are implied to be on top of the stack.
Implied/ Implicit Addressing Mode
type of addressing mode:
_________ ____________ _______
The operand is defined in the instruction itself. This mode instruction has an operand field instead of an address field. The operand field contains the actual operand used with the specified operation in the instruction. The immediate-mode instructions help initialize registers to a constant value.
Instruction Opcode | Operand
ADD 8 will increment the value stored in the accumulator by 8.
Immediate Addressing Mode