Alternatively, if you are using Ubuntu Linux, you can get pre-built packages from LaunchPad, using a PPA:
and then you simply install them as usual:sudo add-apt-repository ppa:pmiller-opensource/ppa sudo apt-get update
sudo apt-get install ucsd-psystem-xc ucsd-psystem-fs ucsd-psystem-vm
Alternatively, you can download pre-built disk images from this web site:
wget /pmiller/ucsd-psystem-os/disk-image/system.vol wget /pmiller/ucsd-psystem-os/disk-image/utility.vol
In this work area, create a file called “hello.text” (note the four-letter file extension) with the following contents:mkdir work cd work
program hello; begin writeln('Hellow, World!') end.
To execute it, start the virtual machine, and automagically turn the current directory into a disk image:ucsdpsys_compile hello.text
You will now see the familiar UCSD Pascal prompt:ucsdpsys -w . -f ../system.vol -N
we then have to change director into the WORK disk, because it has been build to contain the files in the current directory:Command: E(dit, R(un, F(ile, C(omp, L(ink, X(ecute, A(ssem, D(ebug,? [II.0] Welcome SYSTEM, to U.C.S.D. Pascal System II.0 /pmiller/ucsd-psystem-os/ version 1.3.D001 Current date is 26-Jan-11
F P WORK: return QNow you can run the cross compiled program like so:
X HELLO returnAnd you will see the display:
Command: E(dit, R(un, F(ile, C(omp, L(ink, X(ecute, A(ssem, D(ebug,? [II.0] Hello, World!
C HELLO returnand execute it the same way as you executed the cross compiled version.
You will notice that the current directory has been updated with the changes made to the WORK: volume while it was being used (that's what the “ucsdpsys -w .” option was for).