From 386b47761182e9933dff0137a99a410767e825bb Mon Sep 17 00:00:00 2001 From: neauoire Date: Mon, 17 May 2021 15:13:46 -0700 Subject: [PATCH] Link to 9front from README --- README.md | 4 ++-- projects/examples/devices/console.usm | 18 +++++++----------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 6a6e803..5e163f8 100644 --- 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 index 6e03cc0..1c91fb9 100644 --- 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