~rabbits/uxn5

Varvara Ordinator, written in Javascript(HTML5)
Add save button for URL-encoded ROMs
Fixed issue with screen on mobile

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~rabbits/uxn5
read/write
git@git.sr.ht:~rabbits/uxn5

You can also use your local clone with git send-email.

#Uxn5

An emulator for the Uxn stack-machine, written in Javascript. Check out a live demo at rabbits.srht.site/uxn5

#Usage

Include the uxn core in your <head> tag:

<script src="src/uxn.js"></script>

Include the boot sequence in your website, and evaluate a program:

<script type="text/javascript">
	const uxn = new Uxn()
	uxn.load(program).eval(0x0100)
</script>

#Example

An example html page can be found in uxnemu.html.

To run a rom in this environment, execute:

uxncli bin/format-js.rom [your-rom.rom] > bin/roms.js

Then open uxnemu.html in a web browser.

#Devices

  • 00 system(missing)
  • 10 console(complete)
  • 20 screen(complete)
  • 30 audio(missing)
  • 80 controller(partial)
  • 90 mouse(complete)
  • a0 file(missing)
  • c0 datetime(partial)

#Tests

Build and run tests with reference emulator:

uxnasm etc/tests.tal bin/tests.rom && uxncli bin/tests.rom

Format tests for Javascript:

uxnasm etc/format.tal bin/format.rom && uxncli bin/format.rom bin/tests.rom > etc/program.js

#Need a hand?

The following resources are a good place to start:

You can also find us in #uxn on irc.esper.net.

#Contributing

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