Wednesday, February 20, 2019

ADDINT1

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

ADDINT1 s a program that appears on page 59 (listing 5-1) of the book "Pascal Primer" by David Fox and Mitchell Waite. This program demonstrates the use of the FOR / DO loop in Pascal.

The program was created in an Altirra emulator-based Development Environment using the AtariWriter 80 word processor as the source editor.

As usual, 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:ADDINT1,PASLIB/S

When you run the program, it looks like:


No comments:

Post a Comment