Assembly Language / LMC Flashcards

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

What does the Mnemonic ADD do?

A

Add to the value in the Accumulator

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

What does the Mnemonic SUB do?

A

Subtract from the value in the Accumilator

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

What does the Mnemonic STA do?

A

Stores the current value in the Accumilator

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

What does the Mnemonic LDA do?

A

Loads a value

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

What does the Mnemonic BRA do?

A

Branches always

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

What does the Mnemonic BRZ do?

A

Branches if zero

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

What does the Mnemonic BRP do?

A

Branches if positive

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

What does the Mnemonic INP do?

A

Allows for a value to be inputted

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

What does the Mnemonic OUT do?

A

Outputs the value

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

What does the Mnemonic HLT do?

A

Ends the program

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

What does the Mnemonic DAT do?

A

Data location

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

What is the point of Mnemonics?

A

They’re more easily readable by humans, as each Mnemonic translates to a binary function.

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

What kind of language is LMC?

A

An Assembly Language

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

What is the order for each line in LMC code?

A
A Lable (for variable names)
A Mnemonic (for the function)
The Data (to be used)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Where is the calculation undertaken?

A

Within the ALU

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