Skip to main content


Uxn, but pocket version.

I've had a project in mind for a few days, I wanted to see how much of Uxn I could do away with and still manage to bootstrap the language.

Uxn emulator(150 lines, 16kb):
http://wiki.xxiivv.com/etc/uxncli.c.txt
Uxntal self-hosted assembler(400 lines, 1.4kb):
http://wiki.xxiivv.com/etc/uxnasm.tal.txt
Uxntal self-hosted assembler binary:
http://wiki.xxiivv.com/etc/uxnasm.rom.txt

The emulator is capable of running the assembler and assembling most roms that do not use pre-processor runes.

http://wiki.xxiivv.com/site/uxn.html

This entry was edited (10 months ago)
in reply to Devine Lu Linvega

hmm, on line 136 shouldn't c be of type int? if eof is defined as -1, the comparison below will be always false.
in reply to Devine Lu Linvega

Took me a while to get how the keep bit works in uxncli, but that's pretty clever haha. Having fun following your work!
in reply to tomas

@tomas It allows for a lot of fun stuff, like the ( normalize ) line origedit pointed out in this thread.
in reply to Devine Lu Linvega

" ( normalize ) #20 GTHk [ JMP SWP POP ] "
"normalising" a character by reducing it to a space in case it's non-printable, and in such an inventive way?!
#20
in reply to origedit

@origedit 6 bytes to turn tabs and linebreaks into spaces, works really well! But, the null byte has to be caught a layer above ^__^

Lo, thar be cookies on this site to keep track of your login. By clicking 'okay', you are CONSENTING to this.