export_week5 chapter 6 the little man computer Flashcards
,
The Little Man Computer
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/imageqm21qx-14A629DE19D42908DAE.png
,
Mailboxes: Address vs. Content
▪ Addresses are consecutive starting at 00
and ending at 99
,
contents of the mailbox
Content may be
▪ Data, a three digit number, or
▪ Instructions
,
Content: Instructions
Op code
▪ In LMC, represented by a single digit
▪ Operation code
▪ Arbitrary mnemonic
,
Operand
▪ In LMC, represented by two digits following the op code
▪ Object to be manipulated
Data or
Address of data
,
Content: Instructions
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_267-14A62A05ED42177BDC6.png
,
what is the magic in the LMC?
▪ Load program into memory
▪ Put data into In Basket
,
Assembly Language
▪ Specific to a CPU
▪ 1 to 1 correspondence between
assembly language instruction and
binary (machine) language instruction
,
Mnemonics
(short character sequence)
represent instructions
,
when is assembly language used ?
▪ Used when programmer needs precise
control over hardware, e.g.,device
drivers
,
Instruction Set
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_268-14A62A288205A258BFD.png
,
Input/Output in LMC
Move data between calculator and
in/out baskets
,
did you know the LMC Input/Output
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_270-14A62A3E9147A50B6F3.png
,
Internal Data Movement
▪ Between mailbox and calculator
,
LMC Internal Data
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/imageagvkrx-14A62A506A96C951748.png
,
Arithmetic Instructions
▪ Read mailbox
▪ Perform operation in the calculator
,
LMC Arithmetic Instructions
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_273-14A62A657622C8B6376.png
,
Data storage location
▪ Physically identical to instruction mailbox
▪ Not located in instruction sequence
▪ Identified by DAT mnemonic
,
Simple Program: Add 2 Numbers
▪ Assume data is stored
in mailboxes with
addresses >90
▪ Write instructions
,
Program to Add 2 Numbers
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_275-14A62A8B62B5C5EF120.png
,
Program to Add 2 Numbers:
Using Mnemonics
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_276-14A62A96BAE5B15CCE4.png
,
Program Control
▪ Branching (executing an instruction out
of sequence)
Changes the address in the counter
,
LMC Instruction Set
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_278-14A62AB733F2F06F758.png
,
Find Positive Difference of 2 Numbers
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_279-14A62AC00C109BFC399.png
,
Instruction Cycle
▪ Fetch: Little Man finds out what
instruction he is to execute
▪ Execute: Little Man performs the work.
,
Fetch Portion of
Fetch and Execute Cycle
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_280-14A62AD1ED52BF1F673.png
,
Fetch, cont.
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_281-14A62ADB10661F3D94C.png
,
Execute Portion
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_282-14A62AE2DA379F437E6.png
,
Execute, cont
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_283-14A62AEC8147E934B37.png
,
von Neumann Architecture
1945
▪ Stored program concept
▪ Memory is addressed linearly
▪ Memory is addressed without regard to content
,
check the slides chapter week 5 instructions cycle
yay