Thursday, February 21, 2019

ADDINT2

Table of Contents ] [ List of Example Programs ] [ ADDINT2 Disk Image ]

ADDINT2 is a program that appears on page 59 (listing 5-2) of the book "Pascal Primer" by David Fox and Mitchell Waite. This program demonstrates the use of the FOR / DO loop along with User Interaction in Pascal.


The original Pascal source code from the book was written for the Apple II family of personal computers using UCSD Pascal.


The Atari Pascal Language System version of the program was created in an Altirra emulator-based Development Environment using the AtariWriter 80 word processor as the source code editor.

I made a few tweaks to the original Apple II/UCSD Pascal program to clear the Atari text screen and to keep the program from ending prematurely.

The link command looks like:

LINKER V1.0
*D2:ADDINT2,PASLIB/S

When you run the program, it looks like:


No comments:

Post a Comment