Get started
This commit is contained in:
parent
9a9ea45dd4
commit
fb7816d80a
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
target/
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal 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
1
holey-bytes
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit c1b250874f87fab8533c61ac7254e0724cd35781
|
11
run.sh
Executable file
11
run.sh
Executable 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
13
src/vfs.hbasm
Normal 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:
|
Loading…
Reference in a new issue