gaming
This commit is contained in:
parent
fb7816d80a
commit
62cc658592
4
run.sh
4
run.sh
|
@ -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
|
|
@ -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:
|
Loading…
Reference in a new issue