Friday, February 8, 2019

WRITEABI

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

The WRITEABI program comes from page 30 of the book, "Pascal Primer" by David Fox and Mitchell Waite. It was written for UCSD Pascal on the Apple II. Here, I have ported it to the Atari Pascal Language System.

All work is being done using the Altirra Atari 8-bit emulator. The WRITEABI source code was created using the AtariWriter80 word processor. The program was Compiled, Linked, and Run from the Atari Pascal Monitor menu.



Here are a few notes about this port. I added a WRITE(CHR(125)) near the beginning of the program to clear the Atari text screen. Because the Atari by default indents each line 2 spaces, the output is a little messy because it wraps around to the next line. The default indent could be overcome by "POKING" a memory address, or using a POSITION statement. I've also added a READLN near the end of the program to wait for the user to press RETURN/ENTER before ending the program and returning to the Atari DOS 2.0S menu.

No comments:

Post a Comment