An emulator for the Uxn stack-machine, written in ANSI C. The emulator contains a few linux specific utilities in the Console device to allow for it to interface with the unix systems.
For your convenience a Makefile is provided. You can run make install to build and install the files.
By default, files are installed into ~/.local but this can be overridden using PREFIX:
# installs files into ~/.local/bin and ~/.local/share
$ make install
# installs files into /opt/uxn/bin and /opt/uxn/share
$ make PREFIX=/opt/uxn installAll you need is a tty or pts terminal.
gcc -Os -DNDEBUG -g0 -s src/uxn.c src/devices/system.c src/devices/console.c src/devices/screen.c src/devices/controller.c src/devices/mouse.c src/devices/file.c src/devices/datetime.c src/uxntui.c -o bin/uxntui -lX11If you wish to build the emulator without graphics mode:
gcc -Os -DNDEBUG -g0 -s src/uxn.c src/devices/system.c src/devices/console.c src/devices/file.c src/devices/datetime.c src/uxncli.c -o bin/uxncliIf do not wish to build it yourself, you can download linux binaries for uxnasm, uxncli and uxntui.
The first parameter is the rom file, the subsequent arguments will be accessible to the rom, via the Console vector.
bin/uxntui bin/polycat.rom arg1 arg2A manual page is provided documenting the Uxntal language:
man ./doc/man/uxntal.7After running make install the man page should be found by man uxntal.
The file device is sandboxed, meaning that it should not be able to read or write outside of the working directory.
00system10console(+)20screen80controller90mousea0filec0datetime
F1toggle zoomF2toggle debuggerF3quitF4rebootF5reboot(soft)
LCTRLALALTBLSHIFTSELHOMESTART
The following resources are a good place to start:
Submit patches using git send-email to the ~rabbits/public-inbox mailing list.