Machine Code Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What does machine code consist of?

A
  1. Operation code
  2. Operand

They are all binary codes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the binary code do?

A

01010010001111001

assigns a bit string to each symbol or instruction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Instructions consist of …

A

Operation code followed by operand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does this mean?

“00111110 00000001”

A

Converted to hexidecimal:
3E
01

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Name the following:
3E
01

A

Operation code
Operand
This an example of immediate addressing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Steps for INC A (increment A):

A

Take whatever in A and make 1 bigger:

  1. convert to machine code or op code (00111100) or 3C in hexadecimal
  2. 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly