uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 386b47761182e9933dff0137a99a410767e825bb
parent 6c3e46d5143904cc17623a4b12ed0545a73109cc
Author: neauoire <aliceffekt@gmail.com>
Date:   Mon, 17 May 2021 15:13:46 -0700

Link to 9front from README

Diffstat:
MREADME.md | 4++--
Mprojects/examples/devices/console.usm | 20++++++++------------
2 files changed, 10 insertions(+), 14 deletions(-)

diff --git a/README.md b/README.md @@ -4,7 +4,7 @@ An [8-bit stack-based computer](https://wiki.xxiivv.com/site/uxn.html), written ## Build -To build the Uxn emulator, you must have [SDL2](https://wiki.libsdl.org/) and [Portmidi](http://portmedia.sourceforge.net/portmidi/). +To build the Uxn emulator on Linux, you must have [SDL2](https://wiki.libsdl.org/) and [Portmidi](http://portmedia.sourceforge.net/portmidi/). ```sh ./build.sh @@ -12,7 +12,7 @@ To build the Uxn emulator, you must have [SDL2](https://wiki.libsdl.org/) and [P --cli # Run rom without graphics ``` -On 9front: +To build the Uxn emulator on the [9front](http://9front.org/) fork of Plan 9: ```rc mk diff --git a/projects/examples/devices/console.usm b/projects/examples/devices/console.usm @@ -1,23 +1,19 @@ ( dev/console ) -%RTN { JMP2r } - -( devices ) - -|10 @Console [ &pad $8 &char $1 ] +|10 @Console [ &pad $8 &char ] ( init ) |0100 ( -> ) - ,hello-word + ;hello-word &loop - ( send ) LDRk .Console/char DEO - ( incr ) #01 ADD - ( loop ) DUP ,&loop JCN - POP + ( send ) LDAk .Console/char DEO + ( incr ) #0001 ADD2 + ( loop ) LDAk ,&loop JCN + POP2 BRK -@hello-word "hello 20 "World! -\ No newline at end of file +@hello-word "Hello 20 "World! +\ No newline at end of file