LC 3 Assembly Lab Manual LC3 And Examples
LC3-AssemblyManualAndExamples
User Manual:
Open the PDF directly:
View PDF
.
Page Count: 56
Scroll down to view the document on your mobile browser.
Contents
List of Code Listings
List of Figures
Programming in LC-3
LC-3 Quick Reference Guide
ALU Operations
Problem Statement
Inputs
Outputs
Instructions in LC-3
Addition
Bitwise AND
Bitwise NOT
Bitwise OR
Loading and storing with LDR and STR
How to determine whether an integer is even or odd
Testing
What to turn in
Arithmetic functions
Problem Statement
Inputs
Outputs
Operations in LC-3
Loading and storing with LDI and STI
Subtraction
Branches
Absolute value
Example
Testing
What to turn in
Days of the week
Problem Statement
Inputs
Outputs
The lab
Strings in LC-3
How to output a string on the display
How to read an input value
Defining the days of the week
Testing
What to turn in
Fibonacci Numbers
Problem Statement
Inputs
Outputs
Example
Fibonacci Numbers
Pseudo-code
Notes
Testing
What to turn in
Subroutines: multiplication, division, modulus
Problem Statement
Inputs
Outputs
The program
Subroutines
Saving and restoring registers
Structure of the assembly program
Multiplication
Division and modulus
Testing
What to turn in
Faster Multiplication
Problem Statement
Inputs
Outputs
The program
The shift-and-add algorithm
Examining a single bit in LC-3
The MULT1 subroutine
Testing
What to turn in
Compute Day of the Week
Problem Statement
Inputs
Outputs
Example
Zeller's formula
Subroutines
Structure of program
Testing: some example dates
What to turn in
Random Number Generator
Problem Statement
Inputs and Outputs
Linear Congruential Random Number Generators
How to output numbers in decimal
A rudimentary stack
Testing
What to turn in
Recursive subroutines
Problem Statement
Inputs
Output
Recursive Subroutines
The Fibonacci numbers
Factorial
Catalan numbers
The recursive square function.
Stack Frames
The McCarthy 91 function: an example in LC-3
Definition
Some facts about the McCarthy 91 function
Implementation of McCarthy 91 in LC-3
Testing
What to turn in
Navigation menu
Upload a User Manual
Versions of this User Manual:
Wiki Guide
HTML
Mobile
Download & Help
Views
User Manual
Discussion / Help
Navigation