Using ugBASIC

The ugBASIC compiler is a console application for Linux and Microsoft Windows operating system, with a convenient IDE environment for Microsoft Windows.

The procedure for compiling a program with ugBASIC depends on whether you use the command line or the convenient IDE.

Command line IDE (Windows 32/64 bit)

Amstrad CPC 464, Amstrad CPC 6128, Amstrad CPC 664 (more...)

In order to compile the program (program.bas), type one of this commands on the command line:

Linux dsk ugbc.cpc -O dsk -o program.dsk program.bas
Windows dsk ugbc.cpc -O dsk -o program.dsk program.bas

On this page you will find several examples that can be compiled. For Microsoft Windows users we suggest using UGBASIC-IDE, which allows you to download and compile programs and examples with just one click.

Atari 1200XL, Atari 130XE, Atari 600XL, Atari 65XE, Atari 800XE, Atari 800XL, Atari XEGS (more...)

In order to compile the program (program.bas), type one of this commands on the command line:

Linux xex ugbc.atarixl -O xex -o program.xex program.bas
Windows xex ugbc.atarixl -O xex -o program.xex program.bas

On this page you will find several examples that can be compiled. For Microsoft Windows users we suggest using UGBASIC-IDE, which allows you to download and compile programs and examples with just one click.

Atari 400, Atari 800 (more...)

In order to compile the program (program.bas), type one of this commands on the command line:

Linux xex ugbc.atari -O xex -o program.xex program.bas
Windows xex ugbc.atari -O xex -o program.xex program.bas

On this page you will find several examples that can be compiled. For Microsoft Windows users we suggest using UGBASIC-IDE, which allows you to download and compile programs and examples with just one click.

Coleco Vision, Dina (Chuang Zao Zhe 50), SpectraVideo SV-603 VGA (more...)

In order to compile the program (program.bas), type one of this commands on the command line:

Linux rom ugbc.coleco -O rom -o program.rom program.bas
Windows rom ugbc.coleco -O rom -o program.rom program.bas

On this page you will find several examples that can be compiled. For Microsoft Windows users we suggest using UGBASIC-IDE, which allows you to download and compile programs and examples with just one click.

Commodore 128 (CPU 8502) (more...)

In order to compile the program (program.bas), type one of this commands on the command line:

Linux prg ugbc.c128 -O prg -o program.prg program.bas
Windows prg ugbc.c128 -O prg -o program.prg program.bas

On this page you will find several examples that can be compiled. For Microsoft Windows users we suggest using UGBASIC-IDE, which allows you to download and compile programs and examples with just one click.

Commodore 128 (CPU Z80) (more...)

In order to compile the program (program.bas), type one of this commands on the command line:

Linux prg ugbc.c128z -O prg -o program.prg program.bas
Windows prg ugbc.c128z -O prg -o program.prg program.bas

On this page you will find several examples that can be compiled. For Microsoft Windows users we suggest using UGBASIC-IDE, which allows you to download and compile programs and examples with just one click.

Commodore 64, Commodore Executive 64 (more...)

In order to compile the program (program.bas), type one of this commands on the command line:

Linux prg ugbc.c64 -O prg -o program.prg program.bas
Linux d64 ugbc.c64 -O d64 -o program.d64 program.bas
Windows prg ugbc.c64 -O prg -o program.prg program.bas
Windows d64 ugbc.c64 -O d64 -o program.d64 program.bas

On this page you will find several examples that can be compiled. For Microsoft Windows users we suggest using UGBASIC-IDE, which allows you to download and compile programs and examples with just one click.

Commodore 64 + REU (more...)

In order to compile the program (program.bas), type one of this commands on the command line:

Linux ugbc.c64reu -O -o program. program.bas
Windows ugbc.c64reu -O -o program. program.bas

On this page you will find several examples that can be compiled. For Microsoft Windows users we suggest using UGBASIC-IDE, which allows you to download and compile programs and examples with just one click.

Dragon 32 (more...)

In order to compile the program (program.bas), type one of this commands on the command line:

Linux bin ugbc.d32 -O bin -o program.bin program.bas
Windows bin ugbc.d32 -O bin -o program.bin program.bas

On this page you will find several examples that can be compiled. For Microsoft Windows users we suggest using UGBASIC-IDE, which allows you to download and compile programs and examples with just one click.

Dragon 64 (more...)

In order to compile the program (program.bas), type one of this commands on the command line:

Linux bin ugbc.d64 -O bin -o program.bin program.bas
Windows bin ugbc.d64 -O bin -o program.bin program.bas

On this page you will find several examples that can be compiled. For Microsoft Windows users we suggest using UGBASIC-IDE, which allows you to download and compile programs and examples with just one click.

MSX (more...)

In order to compile the program (program.bas), type one of this commands on the command line:

Linux rom ugbc.msx1 -O rom -o program.rom program.bas
Windows rom ugbc.msx1 -O rom -o program.rom program.bas

On this page you will find several examples that can be compiled. For Microsoft Windows users we suggest using UGBASIC-IDE, which allows you to download and compile programs and examples with just one click.

Olivetti Prodest PC128, Thomson MO6 (more...)

In order to compile the program (program.bas), type one of this commands on the command line:

Linux k7 ugbc.pc128op -O k7 -o program.k7 program.bas
Linux bin ugbc.pc128op -O bin -o program.bin program.bas
Windows k7 ugbc.pc128op -O k7 -o program.k7 program.bas
Windows bin ugbc.pc128op -O bin -o program.bin program.bas

On this page you will find several examples that can be compiled. For Microsoft Windows users we suggest using UGBASIC-IDE, which allows you to download and compile programs and examples with just one click.

Plus/4 (more...)

In order to compile the program (program.bas), type one of this commands on the command line:

Linux prg ugbc.plus4 -O prg -o program.prg program.bas
Windows prg ugbc.plus4 -O prg -o program.prg program.bas

On this page you will find several examples that can be compiled. For Microsoft Windows users we suggest using UGBASIC-IDE, which allows you to download and compile programs and examples with just one click.

SEGA SC-3000 (more...)

In order to compile the program (program.bas), type one of this commands on the command line:

Linux rom ugbc.sc3000 -O rom -o program.rom program.bas
Windows rom ugbc.sc3000 -O rom -o program.rom program.bas

On this page you will find several examples that can be compiled. For Microsoft Windows users we suggest using UGBASIC-IDE, which allows you to download and compile programs and examples with just one click.

SEGA SG-1000 (more...)

In order to compile the program (program.bas), type one of this commands on the command line:

Linux rom ugbc.sg1000 -O rom -o program.rom program.bas
Windows rom ugbc.sg1000 -O rom -o program.rom program.bas

On this page you will find several examples that can be compiled. For Microsoft Windows users we suggest using UGBASIC-IDE, which allows you to download and compile programs and examples with just one click.

TRS-80 Color Computer, TRS-80 Color Computer 2 (more...)

In order to compile the program (program.bas), type one of this commands on the command line:

Linux bin ugbc.coco -O bin -o program.bin program.bas
Linux dsk ugbc.coco -O dsk -o program.dsk program.bas
Windows bin ugbc.coco -O bin -o program.bin program.bas
Windows dsk ugbc.coco -O dsk -o program.dsk program.bas

On this page you will find several examples that can be compiled. For Microsoft Windows users we suggest using UGBASIC-IDE, which allows you to download and compile programs and examples with just one click.

TRS-80 Color Computer 3 (more...)

In order to compile the program (program.bas), type one of this commands on the command line:

Linux ugbc.coco3 -O -o program. program.bas
Windows ugbc.coco3 -O -o program. program.bas

On this page you will find several examples that can be compiled. For Microsoft Windows users we suggest using UGBASIC-IDE, which allows you to download and compile programs and examples with just one click.

Thomson MO5 (more...)

In order to compile the program (program.bas), type one of this commands on the command line:

Linux k7 ugbc.mo5 -O k7 -o program.k7 program.bas
Linux bin ugbc.mo5 -O bin -o program.bin program.bas
Windows k7 ugbc.mo5 -O k7 -o program.k7 program.bas
Windows bin ugbc.mo5 -O bin -o program.bin program.bas

On this page you will find several examples that can be compiled. For Microsoft Windows users we suggest using UGBASIC-IDE, which allows you to download and compile programs and examples with just one click.

VIC-20 (more...)

In order to compile the program (program.bas), type one of this commands on the command line:

Linux prg ugbc.vic20 -O prg -o program.prg program.bas
Windows prg ugbc.vic20 -O prg -o program.prg program.bas

On this page you will find several examples that can be compiled. For Microsoft Windows users we suggest using UGBASIC-IDE, which allows you to download and compile programs and examples with just one click.

ZX Spectrum +2, ZX Spectrum 128K, ZX Spectrum 48K (more...)

In order to compile the program (program.bas), type one of this commands on the command line:

Linux tap ugbc.zx -O tap -o program.tap program.bas
Windows tap ugbc.zx -O tap -o program.tap program.bas

On this page you will find several examples that can be compiled. For Microsoft Windows users we suggest using UGBASIC-IDE, which allows you to download and compile programs and examples with just one click.

An integrated IDE*

* = available only for Microsoft Windows 7/8/10/11