Programming (LMC) Flashcards

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

LDA

A

Load contents of address into ACC

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

STA

A

Store contents of ACC to given address

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

ADD

A

Add contents of location to value in ACC

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

SUB

A

Subtract contents of location from ACC

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

INP

A

Copy value from the “inbox” to the ACC

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

OUT

A

Copy value from ACC to “out” box

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

HLT

A

stop executing the program

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

BRZ

A

Branch if zero - if ACC contents are 000, PC will be set to the given address

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

BRP

A

If negative flag is not set (i.e. ACC >= 000) the PC will be set to the given address

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

BRA

A

Sets the contents of the PC to the given address

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

DAT

A

When the code is compiled, the address given will be reserved for storage rather than holding compiled code

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