Well, since you did say that it's never too late for a response, I wanted to chime in and say that I ran into the issue that you were having
@Eric's Edge , and managed to fix it.
I was following the guide here to set up my Apple Pascal 1.3 system:
Apple II Pascal is an implementation of a portable Pascal language system developed at University of California San Diego (UCSD) in the late 1970s by Professor Kenneth Bowles and his students. The …
henrylowe.net
And toward the end, he has you load and run some of the demo code that comes with Apple Pascal to test out that your installation is working. No matter which example code I tried, I got a Stack Overflow error.
I then found this discussion and typed your code in exactly as it appears above. This time no stack overflow, but the same errors that you're reporting.
After seeing the responses from
@dCubed above, I decided to try it on actual hardware -- an Enhanced Apple IIe -- but I ran into the exact same issues.
After much tearing my hair out, I went and bought the $20 CD/Zip that is referenced for sale at Juiced in the article that I linked above:
The official Apple Programmers and Developers Association (APDA) software collection for the Apple II, available in a new, authorized compilation.
juiced.gs
Most of it is irrelevant to me, since I don't have a IIGS and that seems to be what it's focused on. However, it does contain a clean set of all four Apple Pascal 1.3 disk images, plus a fifth image that contains the latest patches. They're a different set than the ones I found floating about various places online (and the fifth disk was entirely new).
I built the system following the exact same steps, but using those disks and both your code and all the sample code compiled and ran perfectly.
So, there you have it. Since it's available for sale, I'm not sure what the legality of distributing the disk images is, although apparently-faulty disk images of the same disks abound. But I do have both the working images purchased above and a 10MB .po hard disk image with the installed (128K) system, which loads and runs on both actual hardware (using a FloppyEMU and YellowStone disk controller) and under emulation using AppleWin just fine.