Sdlbasic Runtime


Certified Guru
Jan 8, 2009
I have build this runtime on gp2x and now for Wiz.
You can download at this link
Please test and let me know if work and/or need some other libs to run.

a shot from the gp2x version:

Here the readme:

sdlBasic Runtime version 0.8 GP2X/WIZ Edition by Farox

sdlBasic is a small, efficient and multiplatform basic interpreter aimed to game creation using the power of SDL library,
it was inspired by the old and glorious AMOS.
sdlBasic is open source software.
This means anyone is welcome to download it at no charge, including the source code if you need to make special changes.
Developers can get involved and help make sdlBasic even better.

It runs on Linux, windows (9x and nt-XP based), macOSX, FreeBSD, OpenBSD, MorphOS, AmigaOS, GP2X F100/F200, WIZ.

The basic interpreter come from wxbasic by David Cuny ("") distribuited under lGPL.
The graphic system is based upon SDL graphics libraries family("")distribuited under GPL.

This software is subject to lGPL license and is free as every program used to create it.

For sdlBasic commands and syntax list i suggest to read full documentation for more details.

Authors: David Cuny <> (wxbasic)
Roberto Viola <> (sdlbasic)

I (Farox) have recompiled the latest version 0.8 of this package available at .

Changes from the last version from __vroby__(version 0.7) :

include fix done by gersen also available on
10-11-09 Exit sub and Exit function now work. Fix to eval.c
09-11-09 Funtion Atan2 added. Additions to builtin.h and builtin.c

Farox work:

Recompilation on latest SDL version 1.2.11 (by senorQuack) on gp2x, before was recompiled with 1.2.9
Compiled with standard GPH toolchain on WIZ.

Fixed some #defines in order to compile a lite version with base feature (no SOCKET, MPEG, SQLITE support) and
an advanced version with SOCKET and SQLITE support for the gp2x.
I wasn't able to build a version with MPEG support on gp2x (sorry).

On wiz the base version have MPEG support, and the advanced have added the SQLITE feature.
I wasn't able to build a version with SOCKET support on wiz, due to lack of SDL_net library (sorry).

Compiled all (.a static) libs and runtime with this option on gp2x:


on WIZ i have compiled all the (.so shared) library and runtime with:
-ffast-math (exept for where fast-math is not supported i think)
using -msoft-float give some compilation error on wiz like for example
(ERROR: obj\unzip.o uses FPA instructions, whereas bin\ does not) i have dropped it.

I have also added a dir with the libs if needed to run on wiz .
This dir is named "extra_libs_for_wiz".I don't know if you need also the SDL or any other libs to run.

Also have adapted some of the available examples to run on GP2X console (also for Wiz but is not tested ).

On the archive you will find under the gp2x/ (or Wiz/ in the wiz version of this package)) dir :

directory BIN/ where you find the runtime sdlBrt (with base feature) and a new directory SQLITE_NET/ where you find
the runtime version with SQLITE and SOCKET support added .For normal task use the minimal version and use only
the advanced if you need to test SQLITE and SOCKET feature.
For the Wiz version under MPEG_SQLITE/ dir you can find the advanced version. The MPEG feature is present
also on the base version, on the advanced i have added the SQLITE support.

directory SHARE/ where is stored the fonts needed to execute the runtime.
Note that the runtime works well also if you place the font directly in the examples directory.

directory DOC/ where are all the docs that are also available online. This dir is not needed to execute the runtime.
Look here if you want to port/code something.

others directory .. this dirs contains all the examples adapted to run on gp2x/wiz.
In order to execute SQLITE test (for gp2x) and MPEG test (for Wiz) you have to change the
sdlBrt runtime with the advanced version, or copy directly on the example dir.
You may need to change the *.gpe file to run it.

Copy the entire structure contained inside GP2X/WIZ dir on SD card as is (you can omit to copy the DOC dir if you need space).

Please report if WIZ version is working and/or need some other libs to run.

Links to check: new page dedicated at sdlBasic. “Unofficial“ Page on Official page by __vroby__ but seems abandoned or no more mantained. where to find many sdlBasic stuff and examples.

Unfortunately it didn't work on Wiz (reported by a Wiz user on italian forum ).