diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..2f699e2 --- /dev/null +++ b/.build.yml @@ -0,0 +1,21 @@ +image: debian/stable +oauth: pages.sr.ht/PAGES:RW +environment: + SITE: rabbits.srht.site/dexe +sources: + - https://git.sr.ht/~rabbits/dexe +tasks: + - prepare: | + curl -fsS https://rabbits.srht.site/uxn/uxn-linux-amd64.tar.gz | tar -zx + - build: | + cd dexe + ../uxn/uxnasm src/main.tal ../dexe.rom + - upload: | + tar -czf out.tar.gz dexe.rom + acurl() { + set +x + curl -H "Authorization: Bearer ${OAUTH2_TOKEN}" "${@}" + set -x + } + acurl -fsS "https://pages.sr.ht/publish/${SITE}" -Fcontent=@out.tar.gz + acurl -fsS "https://pages.sr.ht/publish/${SITE}" -Fcontent=@out.tar.gz -Fprotocol=GEMINI \ No newline at end of file diff --git a/README.md b/README.md index e6ae965..0fad19d 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ You must have the [Uxn](https://git.sr.ht/~rabbits/uxn/) assembler and emulator. uxnasm src/main.tal bin/nasu.rom && uxnemu bin/nasu.rom ``` +If do not wish to assemble it yourself, you can download [left.rom](https://rabbits.srht.site/left/left.rom). + ## Controls - `arrows`, move selection diff --git a/src/main.tal b/src/main.tal index 77a20b3..863cfa8 100644 --- a/src/main.tal +++ b/src/main.tal @@ -171,7 +171,7 @@ BRK @on-console ( -> ) ( starting ) - ;&trap LDA ,&started JCN + [ LIT &trap $1 ] ,&started JCN #00 ;draw-filepath JSR2 ;path/name #0020 ;mclr JSR2 #01 ,&trap STR @@ -188,7 +188,6 @@ BRK #00 ,&trap STR BRK - &trap $1 @on-frame ( -> ) ( inactive ) @@ -1147,7 +1146,6 @@ RTN .dataview/x1 LDZ2 .Screen/x DEO2 .dataview/y2 LDZ2 INC2 .Screen/y DEO2 .selection/a LDZ #03 ;draw-byte JSR2 - ( depth1 ) #04 #00 &loop