Skip to content
/ zuxn Public

A Zig implementation of the Uxn and Varvara ecosystem

License

Notifications You must be signed in to change notification settings

chmod222/zuxn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A mostly complete implementation of most of the components of a complete Uxntal and Varvara system in a library-first fashion.

zig build will compile three binary analogues to the reference implementations of uxnasm, uxncli and uxnemu:

  • uxn-asm: The Uxntal assembler
  • uxn-cli: Runs Uxn ROMs in a headless fashion
  • uxn-sdl: Runs Uxn ROMs with audio and video support in SDL

The tools support different arguments but are pretty basic. (see --help for each)

If compiled with -Denable_jit_assembly, uxn-cli and uxn-sdl will accept assemble passed .tal files and run the result directly, much like a bytecode interpreter.

All three major components (Uxn core VM, Varvara devices and assembler) are exposed as Zig modules for embedding in other environments. The modules are named as such:

  • uxn-core
  • uxn-varvara
  • uxn-asm

The Varvara audio, video and input devices are independant of external systems for audio and video and can be implemented in a way that makes sense for the embedded application. Generic device intercepts for input and output can be defined in addition to or as replacement for any given device.

Until a proper API documentation is available, the three produced binaries shall serve as usage examples.

About

A Zig implementation of the Uxn and Varvara ecosystem

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published