Week 4 Flashcards
What is the Octal System?
Base 8
symbols: 0,1,2,3,4,5,6,7
4096 512 64 8 1
8^4 8^3 8^2 8^1 8^0
What is the Binary System?
Base 10
10000 1000 100 10 1
10^4 10^3 10^2 10^1 10^0
What is the Hexadecimal System?
Base 16
0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
65536 4096 256 16 1
16^4 16^3 16^2 16^1 16^0
What is the purpose of memory?
Stores both code and data
Memory is divided into units of 1 byte (8 bits)
Memory with 2^n addressable units requires n-bit addresses
8 bits = 256 addresses
32 bit = 2^32 addresses (roughly 4gb)
What is the CPU (Central Processing Unit)
Controls the execution of instructions
What are Registers (hint: memory locations)?
Small, fast memory locations within CPU
What is the purpose of General Purpose Registers?
Data storage, address calculations and arithmetic operations
What is the purpose of Special Purpose Registers?
One that has a specific control or data handling task to carry out
What is the Stack Pointer?
Points to the top of the stack
What is the Base Pointer (hint: current frame)?
Points to the start (base) of the current frame
What is the Link Register (LR) (hint: function completion)?
Stores return address for after function completion
What is a Program Counter (PC)?
Stores the address of the next instruction to be executed
What is the Arithmetic Logic Unit (ALU)?
The ALU handles arithmetic and logical operations
What is the Status Register (hint: contains)?
Contains status and mode bits
What are Assembly Languages?
Simple Instructions
Difficult programming language