Apple Pascal Explained

Apple Pascal
Developer:Apple Computer
Family:UCSD Pascal
Source Model:Closed source
Working State:Historic
Latest Release Version:1.3 (Apple II)
1.1 (Apple III)
Latest Release Date:[1]
Kernel Type:Monolithic
License:Apple Software License Agreement

Apple Pascal is an implementation of Pascal for the Apple II and Apple III computer series. It is based on UCSD Pascal.Just like other UCSD Pascal implementations, it ran on its own operating system (Apple Pascal Operating System, a derivative of UCSD p-System with graphical extensions).

Originally released for the Apple II in August 1979, just after Apple DOS 3.2, Apple Pascal pioneered a number of features that would later be incorporated into DOS 3.3, as well as others that would not be seen again until the introduction of ProDOS.

The Apple Pascal software package also included disk maintenance utilities, and an assembler meant to complement Apple's built-in "monitor" assembler. A FORTRAN compiler (written by Silicon Valley Software of Sunnyvale, California) compiling to the same p-code as Pascal was also available.[2]

Comparison of Pascal OS with DOS 3.2

Apple Pascal Operating System introduced a new disk format.[3] Instead of dividing the disk into 256-byte sectors as in DOS 3.2, Apple Pascal divides it into "blocks" of 512 bytes each. The p-System also introduced a different method for saving and retrieving files. Under Apple DOS, files were saved to any available sector that the OS could find, regardless of location. Over time, this could lead to file system fragmentation, slowing access to the disk. Apple Pascal attempted to rectify this by saving only to consecutive blocks on the disk.

Other innovations introduced in the file system included the introduction of a timestamp feature. Previously only a file's name, basic type, and size would be shown. Disks could also be named for the first time.[4]

Limitations of the p-System included new restrictions on the naming of files.[5] Writing files only on consecutive blocks also created problems, because over time free space tended to become too fragmented to store new files. A utility called KRUNCH was included in the package to consolidate free space.

The biggest problem with the Apple Pascal system was that it was too big to fit on one floppy disk. This meant that on a system with only one floppy disk drive, frequent disk swapping was needed. A system needed at least two disk drives in order to use the operating system properly.

Release history

PlatformDateOS
Apple II1979Apple Pascal 1.0
1980Apple Pascal 1.1
1983Apple Pascal 1.2
1985Apple Pascal 1.3
Apple III1981Apple Pascal 1.0
1983Apple Pascal 1.1

Sources

External links

Notes and References

  1. Web site: Apple II Pascal - apple2info.net: Apple II Information . April 23, 2015 . dead . https://web.archive.org/web/20150430033749/http://apple2info.net/index.php?title=Apple_II_Pascal . April 30, 2015 .
  2. Web site: Apple Fortran Language Reference Manual.
  3. Apple Pascal was designed to take advantage of the then new 140K 5.25" floppy disks.
  4. Under Apple DOS, disks can only be given a volume number. Apple Pascal disk volume names can be up to seven characters in length. See
  5. Apple DOS allowed filenames up to thirty characters long and any ASCII character could be used, Apple Pascal dropped the length to fifteen characters and allowed only letters, numbers and periods to be used. See