























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
























The LC-3 Computer a von Neumann machine Memory PSW (Program Status Word): Bits: 15 10 9 8 2 1 0 | S| |Priority| | N| Z| P| PSW Fetch: Next Instruction from Memory (PC) (points to) next instruction PC (PC) + 1 Decode: Fetched Instruction Evaluate: Instr & Address (es) (find where the data is) Load: Operand (s) (get data as specified) Execute: Operation Store: Result (if specified) The Instruction Cycle:
(64K of 1 6 bit words ) 256 words 256 words (We will get to these later) 23.5 K words 39.5 K words 512 words
LC-3 Instructions Addressing Modes
Data Movement Instructions
Control Instructions
TRAPS See page 543.
Example: Program to multiply [R4] x [R5] and place the result in R clear R add R4 to R decrement R R5 = 0? HALT No Yes R4 – Multiplicand R5 – Multiplier R2 – Accumulator
clear R add R4 to R decrement R R5 = 0? HALT No Yes
Example: Program to multiply [R4] x [R5] and place the result in R
clear R add R4 to R decrement R R5 = 0? HALT No Yes
Example: Program to multiply [R4] x [R5] and place the result in R
LC3 Editor / Simulator Go to Author’s Web Site: http://www.mhhe.com/patt Get:
LC-3 Simulator Screen
LC-3 Simulator Open LC-3 Simulator