Back to marketplace

LMC + addressing

No description yet. This curated deck is ready for daily study.

Total cards: 16•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (16)

#1
Front (Question)

ADD xx

Back (Answer)

Add the number at location xx to the accumulator

#2
Front (Question)

SUB xx

Back (Answer)

Subtract number at location xx from accumulator

#3
Front (Question)

STA xx

Back (Answer)

Store the number in the accumulator in location xx

#4
Front (Question)

LDA xx

Back (Answer)

load the number in location xx to the accumulator

#5
Front (Question)

BRA xx

Back (Answer)

BRANCH: Jump the PC to the new memory location

#6
Front (Question)

BRZ xx

Back (Answer)

Branch if the number in the accumulator is zero

#7
Front (Question)

BRP xx

Back (Answer)

Branch if the number in the accumulator is positive

#8
Front (Question)

INPUT

Back (Answer)

Move data from INPUT into the accumulator

#9
Front (Question)

OUTPUT

Back (Answer)

Move data from the accumulator into OUTPUT

#10
Front (Question)

HLT

Back (Answer)

HALT stop the program

#11
Front (Question)

DAT xx is not a command what does it mean?

Back (Answer)

DAT tells you that the location is holding data not instructions The programmer must make sure the program halts or jumps over any data

#12
Front (Question)

Explain how named locations can be used in LMC programs

Back (Answer)

alternate to numbered memory locations any location can be given a short name the names can be used instead of location numbers in the program. this makes it easier to write.

#13
Front (Question)

immediate addressing

Back (Answer)

the data itself

#14
Front (Question)

direct addressing

Back (Answer)

memory location

#15
Front (Question)

indirect addressing

Back (Answer)

location holds a pointer to somwhere else in RAM

#16
Front (Question)

indexed addressing

Back (Answer)

an array reference