1978 Pascal-M on KIM-1

KIM-1 Pascal-M 1978 interpreter, how to compile and how to run an application.

Short userguide

0. You need two cassette recorders under Micro Ade software control, see Micro Ade userguide. Obe to read, one to write.
1. Load Micro-Ade (Pascal-M version)
2. In Micro Ade write a Pascal program (remember V1: only uppercase!) and save to tape, standard Micro Ade actions
Every source line is stored as separate file on tape by Micro Ade.
3. Compile on the KIM-1 after reset.
a. Load binaries:
– load interpreter zero page and interpreter $2000
– load Pascal compiler
– load Pascal compiler procedure address table buffer (at $0200)
b. Start compilation with $2003 G
The compiler will now load the source from reading cassette (see step 2),
and compile to Pxx object record, saved on the recording cassette.
Any errors are flagged on the console, reading continues until the end of the source.

4.If no errors reported the object file is ready for execution. reset the KIM-1.
– Insert the written cassette in the reader.
– Load interpreter and zero page if the KIM-1 has been switched of.
Start the interpreter with 2000G
5. The object code will be read from tape.
When loading is finished and no checksum errors are reported the interpreter prints: LOADED
6. Start the program with 2003 G

Of course you can skip step 1-5, load the binaries of program and procedure address table prepared with the cross compilation tools.


Scan of the Pascal-M compiler
Source for TASM assembler of the 6502 interpreter
Scan of the listing of the 6502 interpreter assembler source
Scan of the source of the Micro Ade changes for Pascal-M tape text files
Listing of tape I/O for Pascal-M
Source of the 1978 Pascal-M compiler
Source of Pascal-M, as Freepascal console application
Documentation of Pascal-M: m-code interpreter instruction
Dutch userguide
Binaries from KIM-1 tape of interpreter and Micro Ade adapted
Cross compilation for Pascal-M: Compiler, Binary loader, disassembler, interpreter