1.1 Machine Code Flashcards

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

What is Machine code ?

A

A binary programming language used by a CPU.
All code is eventually converted to machine code.

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

What is Assembly language ?

A

A low level programming language.
Each command maps directly to a machine code
instruction.

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

What does the INP command do?

A

Input a number to the accumulator

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

What does the STA x command do?

A

Store the number in the accumulator in memory location x

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

What does the ADD x command do?

A

Adds the number in location x to the accumulator

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

What does the OUT command do?

A

Output the number in the accumulator

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

What does the DAT command do?

A

Create a memory location with a name

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

What does the BRA X command do?

A

Branch – go to memory location X

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

What does the BRP X command do?

A

Branch if positive – go to memory location X if the
accumulator is 0 or above.

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

What does the BRZ X command do?

A

Branch if zero – go to memory location X if the
accumulator is exactly 0.

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