DerekChiou_EE306_Spring2009_Lecture17_afterLecture

DerekChiou_EE306_Spring2009_Lecture17_afterLecture -...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
© Derek Chiou Lecture 17: Review and Recursive  Fib Prof. Derek Chiou University of Texas at Austin
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Announcements Office Hours today 5PM-6:30PM 3/30/2009 © Derek Chiou : EE306: Lecture 17 2
Background image of page 2
3/30/2009 © Derek Chiou : EE306: Lecture 17 Recap Finish subroutines TRAP handlers Recursive Fibonnaci Outline Review Registers and memory Arithmetic and logic functions Program control Do the lab Recursive Fibonnaci revisited 3
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Machine State State is something that remembers a value Remembers same value until either you write state with instruction or turn off-on the machine (power cycle) Reads from state (in 306) are non-destructive value remains in read state Two basic forms of state in LC-3 Registers Memory All user-accessible state is 16 bits NZP bits are less, but not directly accessible by user 3/30/2009 © Derek Chiou : EE306: Lecture 17 4
Background image of page 4
Movement (Copy) Instructions Need to be able to copy data from memory to register LD LDR LDI register to memory, memory to register LDR 3/30/2009 © Derek Chiou : EE306: Lecture 17 5
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Movement (Copy) Instructions 3/30/2009 © Derek Chiou : EE306: Lecture 17 6 R 0 R 1 R 2 R 3 R 4 R 5 R 6 R 7 LD R0, X X .FILL 64 x300 0 x300 1 x300 2 x300 3 x300 4 x300 5 x300 6 x300 7 x300 8 x300 9 x300 A x300 B x300 C x300 D x300 E x300 F x301 0 x301 1 x301 2 x301 3 x301 4 x301 5 x301 6 x301 7 x301 8 x301 9 x301 A x301 B x301 C x301 D x301 E x301 F
Background image of page 6
Movement (Copy) Instructions 3/30/2009 © Derek Chiou : EE306: Lecture 17 7 R 0 R 1 R 2 R 3 R 4 R 5 R 6 R 7 LEA R1, X LDR R0, R1, #0 LDR R2, R1, #2 X .FILL 64 Y .FILL 65 x300 0 x300 1 x300 2 x300 3 x300 4 x300 5 x300 6 x300 7 x300 8 x300 9 x300 A x300 B x300 C x300 D x300 E x300 F x301 0 x301 1 x301 2 x301 3 x301 4 x301 5 x301 6 x301 7 x301 8 x301 9 x301 A x301 B x301 C x301 D x301 E x301 F
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 25

DerekChiou_EE306_Spring2009_Lecture17_afterLecture -...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online