ASSEMBLY CODE Flashcards
How does assembly code relate to machine code?
- there is a 1:1 correspondence between assembly code and machine code
- one line in assembly code is equivalent to 1 line in machine code
What is the assembly code mnemonic for add?
ADD
What is the assembly code mnemonic for subtract?
SUB
What is the assembly code mnemonic for store?
STA
What is the assembly code mnemonic for load?
LDA
What is the assembly code mnemonic for branch always?
BRA
What is the assembly code mnemonic for branch if 0?
BRZ
What is the assembly code mnemonic for branch if positive?
BRP
What is the assembly code mnemonic for input?
INP
What is the assembly code mnemonic for output?
OUT
What is the assembly code mnemonic for end program?
HLT
What is the assembly code mnemonic for data location?
DAT
What is a word?
a fixed size piece of data
What does the width of the address bus determine?
the max possible memory capacity of the system
(eg: 8 bit address bus = max no. of memory addresses = 2^8 = 256)
What is the width of the data bus defined by?
the no. of wires/lines it contains