Kyan Pascal

Medium
Disk
Year
1985
Publisher
Kyan Software, Inc.
Type
Language
Category
Native-code Pascal compiler with editor, assembler and KIX shell (disk)
Developer
Kyan Software, Inc.
Language
6502 machine language
Requirements
Atari 8-bit with 48K and a disk drive (64K XL/XE or 130XE useful for RAM disk); runtime library on disk to run compiled programs
Title page of the Kyan Pascal Tutorial Manual: the word PASCAL in large outlined letters over 'A Programming Language', copyright 1985 Kyan Software, San Francisco

Overview

Kyan Pascal from Kyan Software of San Francisco was the Pascal many Atari owners had been waiting for. Rather than compiling to interpreted p-code, Kyan turns your Pascal source into 6502 assembly language and runs it through its own assembler, so the result is real machine code. Antic headlined its November 1985 review "True Pascal For Atari, At Last". When Sol Guber reviewed the upgraded version in March 1987, he put it in the same class as BASIC XL, Action!, Forth and MAC/65. It follows the ISO Pascal standard (level 0), so programs written for mainframe and school Pascals carry over with few changes.

Features

Guber's review lists the main parts of the package:

  • Editor and compiler. A fast full-screen editor feeds the compiler. Compiler options include debugging code, keeping the generated assembly source, and watching compilation progress. Errors appear on screen or can be sent to disk or printer.
  • Built-in assembler. The final compiler pass produces assembly code, which lets forward references be resolved quickly. The same macro assembler, with include files, is available to you as a separate tool. You can also put assembly code directly in Pascal source for time-critical routines, and the manual shows how to mix Pascal and assembly procedures.
  • Separate compilation. Source modules can be linked at compile time, so large programs can be written and debugged in pieces.
  • Numbers. Reals use 13-digit precision, which Guber found did not noticeably slow things down.
  • Full Pascal. The language includes records, sets, files and pointers. The manual includes a 150-page tutorial that runs from first programs through decisions, loops and procedures to those advanced types.
  • KIX. The upgrade added KIX, a command-line file manager that Kyan also sold for its Apple II Pascal.

Any standard Pascal program is a fair test. For example:

program Squares;
var i: integer;
begin
  for i := 1 to 10 do
    writeln(i:3, i*i:6)
end.

Toolkits

Kyan sold optional toolkits at $49.95 each. System Utilities covered disk, keyboard, joystick and paddle I/O, character sets, key click, BREAK-key control and rebooting, screen management, random numbers, string conversion, and sort and merge routines. Advanced Graphics offered 18 player/missile procedures (setup, shapes, movement and collisions), high-resolution 3-D object display, and seven routines for the Atari 1020 colour plotter. Kyan's toolkit series eventually ran to seven volumes, including mouse text, turtle graphics, mouse graphics, a code optimiser and font utilities. Some of them were for the Apple II version. Preservationists on AtariAge have since gathered the scattered disks and manuals, including version 1.1 disks and a 2.02 (1986) two-sided disk.

Behind the scenes and reception

Kyan Pascal appeared in Antic's New Products column in August 1985 and was reviewed in November 1985. The upgraded version cost $69.95 on a non-protected disk and needed 48K. Guber had one real complaint: to give your compiled program to someone without Kyan Pascal, its runtime library had to be on the disk, and Kyan charged a licence fee for distributing it. Users remember it fondly. One recalls running a compiled program from a 130XE RAM disk while a school PC was still loading its compiler from floppy. In a February 1986 Antic review of a networking product, Charles Cherry imagined a classroom of 130XEs running BASIC XE, Kyan Pascal, Action!, Atari Logo, MAC/65 and ValFORTH.

Using it today

Boot the Kyan Pascal disk (version 1.1 or 2.02) in an emulator configured as a 64K XL/XE or 130XE. A RAM disk speeds up the compile, assemble and link cycle a great deal, so copy the compiler files to one if your DOS supports it. Remember that compiled programs need the runtime library present. Kyan Pascal is still the main native Pascal for the machine. Developers who prefer cross-compiling on a PC now generally use Mad Pascal, which forum users describe as much more heavily optimised. But Kyan remains the way to write and compile Pascal on the Atari itself.

Credits