Go to file
~d6 2899c45b9f Merge remote-tracking branch 'origin/d6/multiprocess' into d6/multiprocess 2024-01-15 18:47:06 -05:00
etc Fixed issue drawing sprites 2023-11-12 12:34:02 -08:00
src update spec to add version 2023-12-20 10:11:06 -05:00
test fix help typo 2024-01-15 18:46:56 -05:00
.build.yml Updated CI 2023-08-25 10:17:36 -07:00
.clang-format Added Fn keys controls 2022-04-05 20:06:42 -07:00
.gitignore wip: make and xclock tests work 2023-12-01 12:19:26 -05:00
LICENSE Init 2022-03-26 17:23:52 -07:00
README.md Housekeeping 2023-11-11 09:50:19 -08:00
console.txt update spec to add version 2023-12-20 10:11:06 -05:00
makefile Made a boundary testing file 2023-11-12 09:19:30 -08:00

README.md

Uxn11

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.

Building

Graphical

All you need is X11.

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/uxn11.c -o bin/uxn11 -lX11

Terminal

If 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/uxncli

If do not wish to build it yourself, you can download linux binaries for uxnasm, uxncli and uxn11.

builds.sr.ht status

Usage

The first parameter is the rom file, the subsequent arguments will be accessible to the rom, via the Console vector.

bin/uxnemu bin/polycat.rom arg1 arg2

Devices

The file device is sandboxed, meaning that it should not be able to read or write outside of the working directory.

  • 00 system
  • 10 console(+)
  • 20 screen
  • 80 controller
  • 90 mouse
  • a0 file
  • c0 datetime

Emulator Controls

  • F2 toggle on-screen debugger
  • F4 load boot.rom, or reload rom

Buttons

  • LCTRL A
  • LALT B
  • LSHIFT SEL
  • HOME START

Need a hand?

The following resources are a good place to start:

Contributing

Submit patches using git send-email to the ~rabbits/public-inbox mailing list.