Little Minion Computer Flashcards

1
Q

How does the Little Minion Computer carry out the Fetch/Execute cycle?

A

Reads the current address from the counter
Increments the counter by 1
Goes to the mailbox at that address and reads the instruction

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

What are mailboxes?

A

Memory locations with 2-digit addresses, which can hold a 3-digit number

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

Describe the calculator

A

Operates on 3-digit numbers, can add/subtract and has a negative flag

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

Describe the counter

A

A 2-digit counter with 2 buttons
The first button increments it and is operated by the minion
The second button resets it to 00 and is operated by us

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

What are input/output trays?

A

The user can put slips of paper with 3 digits on in the input tray, to beread when the little minion next looks at its in tray.Likewise, the little minion can write 3-digit notes and put them in the out tray, to be read by the user

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

LDA (LOAD) - 5XX

A

(MAILBOX XX => CALCULATOR)
Load the number from mailbox XX into the calculator

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

STO (STORE) - 3XX

A

(CALCULATOR => MAILBOX XX)
Inverse of LOAD, stores the number from the calculator in mailbox XX

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

ADD (1XX)

A

(ADD MAILBOX TO CALCULATOR)
Add the number from mailbox XX to the number currently in the calculator (calc number changes)

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

[SUB]TRACT (2XX)

A

(SUBTRACT MAILBOX FROM CALCULATOR)
Subtract the number from mailbox XX from the number currently in the calculator (calc number changes and a negative flag might be added)

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

[IN]PUT/READ (901)

A

(IN TRAY => CALCULATOR)
Go to the IN tray, read the 3-digit number there, then go to the calculator and enter that number in

The slip of paper in the IN tray with the 3-digits is removed. If there are several slips in the IN tray, the little minion takes the first one put there only, the other remain for future visits

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

BREAK (000)

A

End the program

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

OUTPUT/PRINT (902)

A

(CALCULATOR => OUT TRAY)
Go to the calculator, read the 3-digit number there, then go to the OUT tray and leave a slip of paper with that number on it.

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

BRANCH (6XX)

A

(JUMP TO SPECIFIC POINT)
Set the counter to the two digits XX, and start fetching the instruction

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

BRANCH ON ZERO (7XX)

A

(JUMP TO POINT IF CALCULATOR VALUE IS ZERO)
Go to the calculator and read the 3-digit number. If it is zero, set the counter to the 2-digits specified in the address, and start fetch of instruction, otherwise continue with the next instruction as normal.

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

BRANCH ON POSITIVE (8XX)

A

(JUMP TO POINT IF CALCULATOR VALUE IS NEGATIVE)
Go to the calculator and read the 3-digit number. If it has a negative flag, set the counter to the 2-digits specified in the address, and start fetch of instruction, otherwise continue with the next instruction as normal.

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