Targets supported by ugBASIC

PC IBM (CGA) (PCCGA)

The PCCGA is supported by ugBASIC on the beta version only. The compiler can produce executable files in "com" format.

How to start

A good starting point to learn ugBASIC for the pccga platform is the examples page. The examples provide insight into the syntax and usage of many of the commands and statements available for the language.

Since ugBASIC is an isomorphic language, which does not provide abstractions, it is possible that not all examples work on all targets: those labeled pccga can be compiled to generate executable files.

If you need help and support, the best place is the official forum, where you can find answers to your questions and receive help.

Games written for PC IBM (CGA) (more...)

At the moment there are no complete games for this target,
or the games are in the testing phase.

Examples for PC IBM (CGA) (more...)



















Plotting and graphic modes


The ugBASIC language provides access to all documented graphics modes of the VIC-II chipset, that can be selected using the SCREEN # command, and used with graphics primitives. This is the value of the various constants in the various versions:

MODEDESCRIPTIONWIDTHxHEIGHTxCOLORS

Blitting images

Blitting operations are supported.

Calling and inlining assembly code

With the pccga target you can include assembly code for the Intel 8086 processor. The code will be placed within the code bank.

Supported video standard

The ugBASIC compiler supports both the Commodore PLUS/4 PAL (working frequency: 50 Hz) and NTSC (working frequency: 60 Hz) versions, and automatically detects the working frequency to calibrate the delays. In particular, it defines two constants with the same name, and initializes the constant TICKS PER SECOND.

This is the value of the various constants in the various versions:

VERSIONENTSCPALTICKS PER SECOND
PC IBM (CGA) PAL0 (FALSE)-1 (TRUE)50
PC IBM (CGA) NTSC-1 (TRUE)0 (FALSE)60

Audio support

The pccga target supports audio commands, as described on the documentation page.

Joystick and keyboard support

The ugBASIC language supports up to 2 joysticks, using the JOY(n) statement, and the keyboard.