1.2.4 Types of Programming Language Flashcards

LMC Only

1
Q

What is the instruction for ADD?

A

Add

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

What is the instruction for SUB?

A

Subtract

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

What is the instruction for STA?

A

Store

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

What is the instruction for LDA?

A

Load

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

What is the instruction for BRA?

A

Branch Always

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

What is the instruction for BRP?

A

Branch If Positive

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

What is the instruction for BRZ?

A

Branch If Zero

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

What is the instruction for INP?

A

Input

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

What is the instruction for OUT?

A

Output

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

What is the instruction for HLT?

A

Halt

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

What is the instruction for DAT?

A

Data

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

What is the mnemonic for add?

A

ADD

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

What is the mnemonic for Subtract?

A

SUB

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

What is the mnemonic for Store?

A

STA

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

What is the mnemonic for Load?

A

LDA

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

What is the mnemonic for Branch Always?

A

BRA

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

What is the mnemonic for Branch If Zero?

A

BRZ

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

What is the mnemonic for Branch If Positive?

19
Q

What is the mnemonic for Input?

20
Q

What is the mnemonic for Output?

21
Q

What is the mnemonic for Halt?

22
Q

What is the mnemonic for Data?

23
Q

What is the code for Add?

24
Q

What is the code for Subtract?

25
What is the code for Store?
3XX
26
What is the code for Load?
5XX
27
What is the code for Branch Always?
6XX
28
What is the code for Branch If Zero?
7XX
29
What is the code for Branch If Positive?
8XX
30
What is the code for Input?
901
31
What is the code for Output?
902
32
What is the code for Halt?
0
33
What do X's in codes identify?
The memory address the action is to be done on.
34
What does ADD do? | LMC
Adds the contents of that memory to the accumulator. | Addition
35
What does SUB do? | LMC
Subtract the contents of that memory to the accumulator. | Subtract
36
What does STA do? | LMC
Stores the value of the accumulator in the address given | Store
37
What does LDA do? | LMC
Load the accumulator with the contents of the memory address given | Load
38
What does BRA do? | LMC
The given address is the location of the next instruction. | Branch Always
39
What does BRZ do? | LMC
Branch to the given address if the value of the accumulator is zero | Branch if Zero
40
What does BRP do? | LMC
Branches to the given address if the value of the accumulator is positive or zero | Branch if Positive
41
What does INP do? | LMC
Inputs a number into the accumulator | Input
42
What does OUT do? | LMC
Outputs the contents of the accumulator | Output
43
What does HLT do? | LMC
Stops the execution of the program | Halt
44
What does DAT do? | LMC
Indicate the location that contains data (essentially a variable) | Data