YEAR 1 CO1 WEEK 10 LITTLE MAN COMPUTER Flashcards

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

LOAD

A

LDA
Machine code 5xx
Loads contents of address xx onto the accumulator.

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

STORE

A

STA
Machine code 3xx
Stores the contents of accumulator to address xx

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

ADD

A

ADD
Machine code 1xx
Adds contents of address xx to the accumulator.

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

SUBTRACT

A

SUB
Machine code 2xx
Subtracts contents of address xx from the accumulator

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

INPUT

A

INP
Machine code 901
Copies 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

OUTPUT

A

OUT
Machine code 902
Copies value from accumulator to the “out box”

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

END

A

HLT
Machine code 000
Stops LMC simulator executing the program

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

BRANCH ALWAYS

A

BRA
Machine code 6xx
Sets program counter to address xx

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

BRANCH IF ZERO

A

BRZ
Machine code 7xx
If contents of accumulator are ZERO set program counter to address xx

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

BRANCH IF ZERO OR POSITIVE

A

BRP
Machine code 8xx
If contents of accumulator are ZERO or POSITIVE set program counter to address xx

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

DATA STORAGE

A

DAT
No machine code
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