Thursday, March 14, 2019

VALDEMO

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

VALDEMO is an example program (Listing 9-8) beginning on page 120 of the book "Pascal Primer" by David Fox and Mitchell Waite.

It takes a number as a STRING as input, tests it, and tries to convert it to an INTEGER. 

I ran into a bug with the intrinsic absolute value function ABS() built into the Atari Pascal Language System. After some testing, I wrote my own quick and dirty ABS() function to override the existing buggy one.



The link command looks like:

LINKER V1.0
*D2:VALDEMO,GRSND,PASLIB/S

When you run the program, it looks like:



No comments:

Post a Comment