mirror of https://git.sr.ht/~rabbits/drifblim
Added build script
This commit is contained in:
parent
1ff8fc3278
commit
38a50065b4
|
@ -0,0 +1,21 @@
|
|||
image: debian/stable
|
||||
oauth: pages.sr.ht/PAGES:RW
|
||||
environment:
|
||||
SITE: rabbits.srht.site/drifblim
|
||||
sources:
|
||||
- https://git.sr.ht/~rabbits/drifblim
|
||||
tasks:
|
||||
- prepare: |
|
||||
curl -fsS https://rabbits.srht.site/uxn/uxn-lin64.tar.gz | tar -zx
|
||||
- build: |
|
||||
cd drifblim
|
||||
../uxn/uxnasm src/main.tal ../drifblim.rom
|
||||
- upload: |
|
||||
tar -czf out.tar.gz drifblim.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
|
12
README.md
12
README.md
|
@ -1,20 +1,16 @@
|
|||
# Drifblim
|
||||
|
||||
[Drifblim](https://wiki.xxiivv.com/drifblim) is a uxntal assembler, written in [Uxntal](https://wiki.xxiivv.com/site/uxntal.html).
|
||||
[Drifblim](https://wiki.xxiivv.com/drifblim) is a uxntal assembler, written in [Uxntal](https://wiki.xxiivv.com/site/uxntal.html). It's meant to be as simple an assembler as I could possibly make it. The goal would be for it to be in the 1kb range. It will not support macros and includes.
|
||||
|
||||
## Build
|
||||
|
||||
You must have the [Uxn](https://git.sr.ht/~rabbits/uxn/) assembler and emulator.
|
||||
|
||||
```
|
||||
uxnasm src/main.tal bin/drifblim.rom && uxncli bin/drifblim.rom etc/hello.tal
|
||||
uxncli bin/drifblim.rom src/drifblim.tal
|
||||
uxncli bin/drifblim.rom etc/move.tal
|
||||
uxnemu etc/move.rom
|
||||
```
|
||||
|
||||
If do not wish to assemble it yourself, you can download [drifblim.rom](https://rabbits.srht.site/drifblim/drifblim.rom).
|
||||
|
||||
## Goal
|
||||
|
||||
```
|
||||
a001 1294 8018 1721 9480 f70d 22a0 010f
|
||||
1700 4865 6c6c 6f20 576f 726c 6421 00
|
||||
````
|
12
build.sh
12
build.sh
|
@ -20,8 +20,12 @@ then
|
|||
~/Applications/butler push bin/drifblim.rom hundredrabbits/drifblim:uxn
|
||||
fi
|
||||
|
||||
rm -rf etc/move.sym
|
||||
rm -rf etc/move.rom
|
||||
rm -rf etc/*.sym
|
||||
rm -rf etc/*.rom
|
||||
|
||||
echo "Running.."
|
||||
uxncli bin/drifblim.rom etc/move.tal && uxnemu etc/move.rom
|
||||
echo "Assembling Drifblim.."
|
||||
uxncli bin/drifblim.rom src/drifblim.tal
|
||||
echo "Assembling Hello, from Drifblim.."
|
||||
uxncli bin/drifblim.rom etc/move.tal
|
||||
echo "Running Hello.."
|
||||
uxnemu etc/move.rom
|
||||
|
|
|
@ -4,11 +4,6 @@
|
|||
|0010 @Console &vector $2 &read $1 &pad $5 &write $1 &error $1
|
||||
|00a0 @File &vector $2 &success $2 &stat $2 &delete $1 &append $1 &name $2 &length $2 &read $2 &write $2
|
||||
|
||||
%EMIT { #18 DEO }
|
||||
%DEBUG { ;print/byte JSR2 #0a EMIT }
|
||||
%DEBUG2 { ;print/short JSR2 #0a EMIT }
|
||||
%PRINT { ;print-str JSR2 #0a EMIT }
|
||||
|
||||
|0000
|
||||
|
||||
@src $40
|
||||
|
|
Loading…
Reference in New Issue