Lectures 10 - 15 Flashcards
What digits does the Octal number system use?
0 through 7
What are numbers starting with 0 treated as in many languages?
An octal number - so 01 is not equal to the decimal 1
What does 0 + 1 equal in binary addition?
1
What does 1 + 1 equal in binary addition?
0, but a 1 is carried to the next column
What does 1 - 1 equal in binary substitution?
0
What does 0 - 1 equal in binary substitution?
Take a 1 from the next column
How do we add in Hexadecimal?
Convert both items to decimal, then add, then convert back to Hex.
How do we substitute in Hexadecimal?
If a larger number is taken away from a smaller number, then 10 is taken from the next column. i.e:
3-E won’t work; take 10 from next column to make it
13-E
What is RISC?
Reduced Instruction Set Computing
What is CISC?
Complex Instruction Set Computing
What are the characteristics of RISC?
- Small, very optimised instruction set
- Separates load & storing function
- Fixed size instructions
- Single or few cycle execution
- Conditional execution
- Easier for compilers
What are the characteristics of CISC?
- Large & versatile set
- Many addressing modes with complex functions
- May have high level operations
- High density
- Easier for humans
How do CPU’s get and run instructions?
The fetch-execute cycle
What are the steps in the Fetch execute cycle?
1: Copy PC to MAR
2: Increment PC
3: Get data from memory, copy to MBR
4: Copy MBR to IR
5: Copy opcode (in IR) to control unit
6: (Example instruction) Store accumulator to memory
7: Copy address in IR.addr to MAR
8: Copy ACC to MAR
9: Write the data to memory