This commit is contained in:
Egggggg 2023-07-12 06:47:49 -04:00
parent fb7816d80a
commit 62cc658592
2 changed files with 10 additions and 9 deletions

4
run.sh
View file

@ -3,9 +3,9 @@ set -e
INPUT=$(realpath $1) INPUT=$(realpath $1)
mkdir target mkdir -p target
cd holey-bytes/hbasm cd holey-bytes/hbasm
cat $INPUT | cargo run > ../../target/out cat $INPUT | cargo run > ../../target/out
cd ../hbvm cd ../hbvm
cat ../../out | cargo run cat ../../target/out | cargo run

View file

@ -1,13 +1,14 @@
jmp r0, write jmp r0, write
write: write:
li r8, 64 li r8, 64
li r9, 32 -- ctrl-a ctrl-c ctrl-v
li r10, 16 brc r9, r8, 1
li r11, 8 brc r10, r8, 2
li r12, 4 brc r12, r8, 4
li r13, 2 brc r16, r8, 8
li r14, 1 brc r24, r8, 16
st r8, r0, fsdata, 6 li r8, 32
fsdata: fsdata: