Concatenative topics
Concatenative meta
Other languages
Meta
Tal or Uxntal is a stack-based assembly language designed for the Uxn virtual machine. There are 256 instructions designed to work within a 16-bit space. The Uxn specification provides Tal with a 256 byte data-stack and 64kb of RAM. The language even features support for anonymous functions.
@fib ( num* -- numfib* ) #0001 GTH2k ?{ POP2 JMP2r } SUB2k fib STH2 INC2 SUB2 fib STH2r ADD2 JMP2r
@paint-sprite ( x* y* -- ) .Screen/y DEO2 ( set y position ) .Screen/x DEO2 ( set x position ) #16 .Screen/auto DEO ( set length 2 with auto y and addr ) ;23x-icns .Screen/addr DEO2 ( set addr ) #01 .Screen/sprite DEOk DEOk DEO ( draw 3 rows of 1-bit sprites ) JMP2r @23x-icns ( 0 ) ( 1 ) ( 0 ) 0010 2847 2810 0001 0000 00e0 2040 8000 ( 1 ) 0204 080f 0000 0001 0000 00e0 2040 8000
Uxn is a small stack-based computer with an implementation-first design. It is specialized for building small, low-energy, audio-visual applications. The specification for Uxn fits onto a single page, and its implementation is 100 lines of C. Finally, it powers the personal computing stack called Varvara.
This revision created on Tue, 5 Sep 2023 15:46:08 by CapitalEx (Fix sentence collision)