LMC Flashcards

1
Q

What does the LDA instruction do?

A

Load the contents of address xx onto the accumulator

Note - the contents of the address are not changed

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

What does the STA instruction do?

A

Store the contents of the accumulator to address xx.

Note - the contents of the address are not changed

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

What does the ADD instruction do?

A

Adds the contents of address xx to the accumulator

Note - the contents of the address are not changed and the total cannot exceed 999.

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

What does the SUB instruction do?

A

Subtract the contents of address xx from the accumulator.
Note - the contents of the address are not changed. Also if a subtract instruction causes negative results then a negative flag will be set so that BRP can be used properly

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

What does the INP instruction do?

A

Copy the value from the “in box” onto the accumulator

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

What does the OUT instruction do?

A

Copy the value of the accumulator to the “out box”

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

What does the HLT instruction do?

A

Stop the LMC simulator executing the program

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

What does the BRA instruction do?

A

Set the program counter to address xx

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

What does the BRZ instruction do?

A

If the contents of the accumulator are zero set the program counter to address xx

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

What does the BRP instruction do?

A

If the contents of the accumulator are greater than or equal to zero set the program counter to address xx

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

What does the DAT instruction do?

A

Reserve as data the memory address reached when this instruction is compiled.

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