Intro Flashcards
(47 cards)
Machine Cycle (3)
Fetch -> Decode -> Execute (loop)
- Retrieve the instruction from memory
- Increment the program counter
Fetch
Decode the bit pattern in the instruction register
Decode
Perform the instruction in the Instruction register
Execute
Each instruction is stored in memory as a __________
bunch of bits
The ___ decodes the bits to determine what should happen
CPU
Instructions are from a language called _______________
machine language
A/An _______ is a sequence of these simple instructions
executable program
The sequence is stored in ___________
memory
The CPU processes the simple instructions _________
sequentially
- This is what the computer actually sees and deals with
- Every command is given as a number or sequence of numbers
Machine Language
The command numbers have been replaced by letter sequences which are easier to memorize
Assembly Language
- middle-level language
- maps human-readable mnemonics to machine instructions
- allows machine-level programming without writing in machine language
Assembly Language
- are there to make programming easier
- allows you to describe the program in a more natural language
High-Level Language
Assembly gives you direct control of the system resources such as (3)
- setting processor registers
- accessing memory locations
- interfacing with other hardware elements
Reasons NOT to use assembly (3)
- development time
- maintainability
- portability
Reasons to use assembly (8)
- to understand how CPUs and compilers work
- developing compilers, debuggers, and other tools
- hardware drivers, system code and low level tasks
- embedded systems
- reverse engineering
- address critical performance issues
- creating/fighting malware
- improve algorithm development skills
a collection of the computer’s electrical lines where signals pass through
bus
- the computer’s processor
- engine that interprets instructions stored in main memory
central processing unit
- a logic circuit in the CPU
- responsible for performing mathematical and logical operators
arithmetic and logic unit (alu)
a set of flip-flops treated as a single unit
register
a digital logic circuit capable of storing a single bit
flip-flop
temporary storage device that holds both a program and the data it manipulates
main memory
can be accessed with all 64-bits or some portion or subset accessed
general purpose register (gpr)