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)
mkdir target
mkdir -p target
cd holey-bytes/hbasm
cat $INPUT | cargo run > ../../target/out
cd ../hbvm
cat ../../out | cargo run
cat ../../target/out | cargo run

View file

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