Get started

This commit is contained in:
Egggggg 2023-07-12 02:17:00 -04:00
parent 9a9ea45dd4
commit fb7816d80a
5 changed files with 29 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
target/

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "holey-bytes"]
path = holey-bytes
url = ssh://root@git.ablecorp.us:20/AbleOS/holey-bytes.git

1
holey-bytes Submodule

@ -0,0 +1 @@
Subproject commit c1b250874f87fab8533c61ac7254e0724cd35781

11
run.sh Executable file
View file

@ -0,0 +1,11 @@
# exit if anything fails
set -e
INPUT=$(realpath $1)
mkdir target
cd holey-bytes/hbasm
cat $INPUT | cargo run > ../../target/out
cd ../hbvm
cat ../../out | cargo run

13
src/vfs.hbasm Normal file
View file

@ -0,0 +1,13 @@
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
fsdata: