Machine Code Flashcards
1
Q
What does machine code consist of?
A
- Operation code
- Operand
They are all binary codes
2
Q
What does the binary code do?
A
01010010001111001
assigns a bit string to each symbol or instruction
3
Q
Instructions consist of …
A
Operation code followed by operand
4
Q
What is “LD A, 01H”?
A
individual machine assembly code instruction; LD = load, A = into register A H = hexidecimal 01 = number 1
00111110 00000001
5
Q
What does this mean?
“00111110 00000001”
A
Converted to hexidecimal:
3E
01
6
Q
Name the following:
3E
01
A
Operation code
Operand
This an example of immediate addressing
7
Q
Steps for INC A (increment A):
A
Take whatever in A and make 1 bigger:
- convert to machine code or op code (00111100) or 3C in hexadecimal
- Placed in RAM for incrementing A
This is called implied addressing because it’s implied that there’s something in register A already
Doesn’t have an operand because it’s implied data is already there; it alters what’s already in register A