Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
18 Cards in this Set
- Front
- Back
Assembler |
Translates assembly language into machine code for execution |
|
Add |
Add the contents of the memory address to the accumulator |
|
Sub - subtract |
Subtract the contents of the memory address from the accumulator |
|
STA - store |
Store the value in the accumulator in the memory address given |
|
LDA - load |
Load the accumulator with the contents of the memory address given |
|
BRA - branch (unconditional) |
Branch - uses address given as the address of the next instruction |
|
BRZ - branch if zero (conditional) |
Branch to the address given if the accumulator is zero |
|
BRP - branch of positive (conditional) |
Branch to the address given if the accumulator is zero or positive |
|
Inp |
Input into accumulator |
|
Out |
Output contents of accumulator |
|
Hlt |
Halt stops the execution of the program |
|
Dat |
Data - used to indicate a location that contains data |
|
Addressing modes |
Immediate Direct Indirect Indexed |
|
Where is the addressing mode in code |
In opcode - basic operation and two digit code represent the addressing mode |
|
Immediate addressing |
The operand is the actual value to be operated on |
|
Direct addressing |
Operand holds the memory address of the value to be operated on |
|
Indirect addressing |
Operand is the location (typically a register) which holds the address of the data we want ^enables larger range of locations |
|
Indexed addressing |
The address of the operand is obtained by adding to the contents of a general register (index register) a constant value Used to access an array whose elements are in successive memory locations |