COBOL12

COBOL 16-bit Compiler for Video Mode 12H

Freeware

John Soeberg

jsoeberg@paradise.net.nz


COBOL12 is a 16-bit COBOL compiler that runs under DOS or Windows. The compiler was originally based on Ansi74, but has undergone many changes since its inception. It does not include some features such as SORT and STRING, but it has many non-standard features included.

Indexed sequential files are supported by the standard COBOL statements for these files, and by the provision of the BTRIEVE indexed file system.

The compiled programs use video mode 12H, a graphical mode of 640 by 480 pixels, 30 text lines of 80 characters each, and 16 colours.

Two non-standard modules are included to provide the program interface to the screen.

The package contains the following programs.  

This is the ubiquitous Hello World produced by this compiler.

And this is the program which produced it. The lines in black are specified by the programmer; the blue lines are provided by the editor.

 IDENTIFICATION DIVISION.
 PROGRAM-ID. PROGRAM-NAME.
 DATA DIVISION.
 SCREEN SECTION.
 MESSAGE-SCREEN GROUP.
     BUTTON AT 3438 FOR 0206.
 PROCEDURE DIVISION.
 MAIN-ROUTINE SECTION.
 MAIN-ENTRY.
     DISPLAY FORMAT "|M1COBOL12|N         Hello World|X"
     ACCEPT SCREEN
     STOP RUN.

This is the main screen from one of the demonstration programs, which shows many of the screen facilities available.

 


Download

The COBOL12 system is contained in the download file C12Sys.Zip, about 320Kbytes. Download this file and unzip it into a temporary directory, which provides COBOL12.Zip and ReadMe.Txt. Following the instructions in ReadMe.Txt creates the directories and installs the system files.

Download now

Links to Other Programming Resources

thefreecountry.com - Free Programming Resources (Free Compilers, Source Code, Libraries, etc)

March 2004