Email or username:

Password:

Forgot your password?
7 comments
Vanja/Vanya

@neauoire So I've decided to continue working on it. Do you have an explanation of the encoding of instructions in uxn? I found wiki.xxiivv.com/site/uxntal_re, but I don't understand it. What I'm trying to do first is making an emitter for the opcodes before I start working on the language itself. (If just an emitter already exist for C, I'd be happy to use that)

Devil Lu Linvega

@vanja Ah yes, ok. So you're planning to target uxn, have you written uxntal before?

Devil Lu Linvega

@vanja okay perfect, each instruction is 1 byte long. I recommend that you pick a uxntal disassembler(Dexe, beetbug, etc..) and disassemble simple programs to see how they map to bytecode.

But generally, there's a couple of immediate opcodes(LIT, JMI, JCI, JSI) where their value is found after the opcode, and the rest is all postfix.

Vanja/Vanya

@neauoire what bits of each instruction signify the modifiers (2, keep mode, return mode), and which are the opcode itself?

Go Up