How to Use Pep/6 on the Unix System
Pep/6 should be working on all machines now.
The way to execute the Pep/6 assembler (asem) and the
machine itself (pep6) ought to be just to type the
commands asem and pep6. However, this only works if
your 'path' is set correctly, and it doesn't look as though that's
been done for students of 221. Unless and until this is done by the
system staff, here what you can do for yourself.
- Type the following commands at the zeus% prompt:
echo 'setenv PATH ${PATH}:/usr/local/pep6/' >> .cshrc
source .cshrc
Type the above command exactly as shown. (If you
know any Unix you know why!)
- Then try typing the command pep6. This should now
start up the pep6 machine, and show you this:
zeus% pep6
Pep/6 Machine Simulator Version UNIX/6.0 Pepperdine University
Pep/5 Operating System ROM Version OS/6.0
3152 bytes RAM free.
L(oader X(ecute D(ump T(race I(nput O(utput Q(uit
Enter Pep/6 command: _
If you don't get this, but instead get something like pep6: Command
not found, then send email to Dave
Dove.
- You don't have to do the above every time, only just once.
- To use Pep/6, you have to do basically three things:
- Create a source file in the assembler language
using your favorite text editor
- Assemble the source file by typing the command
asem. The assembler prompts you for a file name.
- Load and then execute the resulting 'object file' using the
commands of the Pep/6 program. First, type pep6 to get
the program running, then use the commands shown. It prompts
you with the line above. Use L to load your object file, X to
run it, T to change the way it traces exexcution, D to examine
the contents of memory, and I and O to change where input and
output comes from and goes to.
- If you have access to a Mac or a Windows PC, then the Pep/6
software on those machine is a lot more self-explanatory and
user-friendly. However, the function is the same, and you're
welcome to use the Unix version if you like.