Lecture 20 Objectives


At the end of today's class you should

KNOW:

BE ABLE TO:

Sample Exam Question:

Write an LC-3 assembly language subroutine that reads in a sequence of characters one at a time until a newline is read in (use TRAP x20), and then displays the characters in reverse order. Use a stack to store the characters as they come in. You may assume that pop, push, and adequate stack space are defined.