Assembly language (including following and writing simple programs with the Little Man Computer instruction set) Flashcards

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

ADD

A

Add the value at the given memory address to the value in the accumulator

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

SUB

A

Subtract the value at the given memory address from the value in the accumulator

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

STA

A

Store the value in the accumulator at the given memory address

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

LDA

A

Load the value at the given memory address into the accumulator

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

INP

A

Allows the user to input a value which will be held in the accumulator

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

OUT

A

Prints the value currently held in the accumulator

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

HLT

A

Stops the program at that line, preventing the rest of the code from executing

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

DAT

A

Creates a flag with a label at which data is stored

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

BRZ

A

Branches to a given address if the value in the accumulator is zero, this is a conditional branch

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

BRP

A

Branches to a given address if the value in the accumulator is positive, this is a conditional branch

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

BRA

A

Branches to a given address no matter the value in the accumulator, this is an unconditional branch

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