















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!
















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)
Docsity.com
LC-3 Memory Map
(64K of 1 6 bit words ) 256 words (We will get to theses today) 256 words (We will get to these later)
23.5 K words
39.5 K words
512 words
Docsity.com
LC-3 Instructions (Fig 5.3 & Appendix a)
Addressing Modes
LC-3 Instructions (Fig 5.3 & Appendix a)
Addressing Modes
Data Movement Instructions
Docsity.com
Control Instructions
LC-3 Instructions (Fig 5.3 & Appendix a)
Addressing Modes
Docsity.com
JMP BaseR [1100 000 BaseR 000000]
Docsity.com
Compute the Sum of 12 Integers Program
R1 ← x R3 ← 0 (Sum) R2 ← 12(count)
NO
YES
R1: “Array” index pointer (Begin with location 3100) R3: Accumulator for the sum of integers R2: Loop counter (Count down from 12) R4: Temporary register to store next integer Docsity.com
Sum integers from x3100 – x310B
R1: “Array” index pointer (Begin with location 3100) R3: Accumulator for the sum of integers R2: Loop counter (Count down from 12) R4: Temporary register to store next integer
Docsity.com
Docsity.com