LMC commands

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/11

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

12 Terms

1
New cards

What does command “STA” do?

#Copy the value held in the accumulator to the specified memory location

2
New cards

What is the function of LDA?

#Copy the value stored at the specified memory location into the accumulator

3
New cards

What is the function of “ADD”?

#Add the value stored at the specified memory location to the value held in the accumulator

4
New cards

What is the function of SUB?

#Subtract the value stored at the specified memory location from the value held in the accumulator

5
New cards

What is the function of BRA(Branch always)?

#Unconditional branch: Branch to the specified label

6
New cards

What is the function of BRZ(Branch Zero)?

#Conditional branch: if the value held in the accumulator is zero, the program branches to the specified label

7
New cards

What is the function of BRP(Branch Positive)?

#Conditional branch: if the value held in the accumulator is positive (or zero), the program branches to the specified label

8
New cards

What is the function of INP command?

#Takes an input value from the input area and stores it in the accumulator

9
New cards

What is the function of the OUT command?

#Displays the value held in the accumulator in the output area

10
New cards

What is the function of the OUT command

#Displays the value held in the accumulator in the output area

11
New cards

What does command HLT do?

#Halts the program

12
New cards

What id DAT used for?

#DAT is not an operation but is used to create a named memory location that will hold data.