1.2.4 Types of Programming Language Flashcards
what mnemonic is the same as the instruction add?
ADD
what mnemonic is the same as the instruction subtract?
SUB
what mnemonic is the same as the instruction store?
STA
what mnemonic is the same as the instruction load?
LDA
what mnemonic is the same as the instruction input?
INP
what mnemonic is the same as the instruction output?
OUT
what mnemonic is the same as the instruction halt?
HLT
what mnemonic is the same as the instruction data?
DAT
what mnemonic is the same as the instruction branch if zero?
BRZ
what mnemonic is the same as the instruction branch if positive?
BRP
what mnemonic is the same as the instruction branch if negative?
BRA
Name 4 different methods of addressing memory?
Immediate addressing
Direct addressing
Indirect addressing
Indexed addressing
Describe immediate addressing?
The operand is the actual value upon which the instruction is to be performed, represented in binary,
Describe direct addressing?
The operand gives the address which holds the value upon which the instruction is to be performed
Describe indirect addressing?
The operand gives the address of a register which holds another address, where the data is located.