There are three machine-language programs
with this lesson: progL1 and progL2.
Open the Pep/8.
Open progL1. Copy and
past progL1 into the Object window. Press the execute and run
buttons. What is printed?
Repeat the steps with progL2. What is printed? Does it look a little odd? What could be the problem?
Correct the error in progL2 and rerun it.
Now what is printed?
Using the program on page 163 of CS
Illuminated as a guide.
Write an algorithm for a machine language
program that prints your initials.
Implement your algorithm in machine language,
using immediate-mode addressing.
Run your program using the Pep/8 machine
language simulator. What is printed?
Write an algorithm for a machine language
program that prints the name of your state. (Apologies to those of you who live
in Massachusetts and New Hampshire.)
Implement your algorithm, using
immediate-mode addressing.
Run your program using the Pep/8 machine
language simulator. What is printed?