Friday, March 8, 2019

METRIC1

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

METRIC1 is a Pascal program that begins on page 80 of the book, Pascal Primer, by David Fox and Mitchell Waite. This program has a menu with four options. One option is for exiting the program. The other three options are for performing various conversions from USCS (United States Customary System) to Metric.



As with the other samples from this book, all of the programs were originally written for UCSD Pascal on the Apple II platform.

This is a nice sized program with multiple procedures and a menu to select from.

I ran into into a serious issue when porting this program to the Atari Pascal Language System. If you haven't already done so, please read about the READ CHAR BUG to see why I made some changes to this program.

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.


The link command looks like:

LINKER V1.0
*D2:METRIC1,D2:PEEKPOKE,FPLIB,GRSND,PASLIB/S

When you run the program, it looks like:




No comments:

Post a Comment