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