UNIT 1; ASSEMBLY LANGUAGE Flashcards

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

STO/STA

A

Store the contents of the accumulator to the given memory address.

For example:
INP
STA 90
This means to store the input from the user in 90 (90 is a memory address)

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

LDA

A

Load the contents of the given memory address onto the accumulator (calculator).

For example:
LDA 90
This means load the contents of memory address 90 onto the accumulator.

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

ADD

A

Add the contents of a given memory address onto the accumulator.

For example:
ADD 90
This means add the contents from the memory address 90 onto the accumulator.

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

SUB

A

Subtract the contents of a given memory address from the accumulator.

For example:
SUB 91
This means subtract the value in the memory address 91 from the accumulator.

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

INP

A

Copy the value from the Input Box into the accumulator.

For example:
INP
This means the user has to give an input.

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

OUT

A

Copy the value from the accumulator to the Output Box (Note: this does not change the contents of the accumulator).

For example:
OUT
This outputs the contents of the accumulator into the Output Box.

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

BEP

A

Makes the computer produce a “beep” sound.

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

HLT

A

Causes the Little Man Computer to stop executing your program.

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

BRA

A

Set the PC (Program Counter) to a given address.

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

BRP

A

If the contents of the accumulator are 000 or positive, (i.e. the negative flag is not set) the PC (Program Counter) will be set to the given address.

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

BRZ

A

If the contents of the accumulator (calculator) are 000, the PC (Program Counter) will be set to the given address.

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

DAT

A

Data location.
- When compiled, the program converts each instruction into a three digit code. These codes are placed in sequential memory addresses.

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

OTC

A

Output character.
- Copy the value from the accumulator to the Output Box and display a character based on the ASCII code. Note: the contents of the accumulator are not changed.

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