Lecture 21 Objectives


At the end of today's class you should

KNOW:

BE ABLE TO:

Sample Exam Question:

(Problem 14.10 from the text) A C program containing the function food has been compiled into LC-3 assembly language. The partial translation of the function into assembly language is:

food  ADD   R6, R6, #-2
      STR   R7, R6, #0
      ADD   R6, R6, #-1
      STR   R5, R6, #0
      ADD   R5, R6, #-1
      ADD   R6, R6, #-4
      ...