MIPs Memory Addressing & Numeracy

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/25

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 10:37 AM on 4/23/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

26 Terms

1
New cards

What is register addressing?

Operand is in a register in an instruction

2
New cards

What is base (displacement) addressing?

Operand is at the memory location whose address is the sum of a register and a 16-bit constant contained within the instruction

3
New cards

What is immediate addressing?

Operand is a 16-bit constant contained within the instruction

4
New cards

What is PC-relative addressing?

Instruction address is the sum of the PC and a 16-bit constant contained within the instruction

5
New cards

What is pseudo-direct addressing?

Instruction address is the 26-bit constant contained within the instruction concatenated with the upper 4 bits of the PC

6
New cards

MIPs Design Principles (4)

Simplicity favours Regularity. Good design ∴ good compromise. Smaller = faster. Make common case fast

7
New cards

Explain how the MIPs design principle Simplicity favours regularity is applied (3)

Fixed size instructions. Small number of instruction formats. Opcode always first 6 bits

8
New cards

Explain how the MIPs design principle Good design ∴ good compromise is applied (1)

Three instruction formats

9
New cards

Explain how the MIPs design principle Smaller = Faster is applied (3)

Limited instruction set. Limited number of registers in register file. Limited number of addressing modes

10
New cards

Explain how the MIPs design principle Make Common Case Fast (2)

Arithmetic operands from the register file (load-store machine). Allow instruction to contain immediate operands.

11
New cards

What does the assembler turn assembly language into?

Object file

12
New cards

What is an object file?

Combination of machine language + instructions + data + info needed to place instructions in memory

13
New cards

What does the assembler do to produce binary versions of each instruction?

Determine address corresponding to all labels using a symbol table

14
New cards

What is a linker?

A program that takes one or more object files generated by the compiler and combines them into a single executable file.

15
New cards

Two functions of the linker (2)

Rseolves references to external symbol + library functions. Assigns final memory addresses to code and data sections

16
New cards

What is the loader?

Program that loads the executable file into memory and performs relocation + resolving absolute addresses into actual RAM addresses where segments will be loaded

17
New cards

What does a loader map?

Logical to physical memory addresses by initialising registers + setting up the stack and heap and data segments

18
New cards

What do dynamic loaders do?

Load shared libraries at runtime that are needed to resolve symbols

19
New cards

What are shared libraries / DLLs?

Contain compiled code and data that can be shared between multiple programs at runtime.

20
New cards

Benefits of DLLs (2)

Reduce duplication of code across executables. Can be unpdated separately without needing to recompile dependent programs

21
New cards

What do DLLs stand for?

Dynamically Linked Libraries

22
New cards

Feature of the signed format of numbers

First bit used to represent the sign and other bits used to represent the number

23
New cards

Difference between signed format and two’s complement format

Signed format: Most Significant Bit represents sign of number whilst remaining bitsrepresent magnitude.

Two’s complement: First bit is representative of a -ve /+ve version of the number (sign + magnitude) combined

24
New cards

How to find the decimal number of a 32-bit two’s complement?

Sign bit muliplied by -231 and rest multiplied by positive versions of their base positions

25
New cards

Benefit of using two’s complement

Perform subtraction procedure using addition function (same circuitry within hardware to do both ∴ more efficient)

26
New cards

Floating point form

Sign bit (1 bit). Exponent (8 bits). Fraction/mantissa (23 bits)