add list of shell commands

This commit is contained in:
husky 2025-09-08 21:04:33 -07:00
parent 4c299a4491
commit a9e9586509

View file

@ -29,7 +29,7 @@ LBOS_ARCH=riscv32 cargo build --release --target riscv32imac-unknown-none-elf --
cd .. cd ..
# the following is required to convert the ELF output to the DDI format that lbos uses # the following is required to convert the ELF output to the DDI format that lbos uses
cd makeddi cd makeddi
run -- ../turntable/target/riscv32imac-unknown-none-elf/release/turntable ../turntable/target/riscv32imac-unknown-none-elf/release/TURNTBL.DDI cargo run -- ../turntable/target/riscv32imac-unknown-none-elf/release/turntable ../turntable/target/riscv32imac-unknown-none-elf/release/TURNTBL.DDI
cd .. cd ..
``` ```
### EXAMPLE.DDI ### EXAMPLE.DDI
@ -39,7 +39,7 @@ LBOS_ARCH=riscv32 cargo build --release --target riscv32imac-unknown-none-elf --
cd .. cd ..
# the following is required to convert the ELF output to the DDI format that lbos uses # the following is required to convert the ELF output to the DDI format that lbos uses
cd makeddi cd makeddi
run -- ../example/target/riscv32imac-unknown-none-elf/release/example ../example/target/riscv32imac-unknown-none-elf/release/EXAMPLE.DDI cargo run -- ../example/target/riscv32imac-unknown-none-elf/release/example ../example/target/riscv32imac-unknown-none-elf/release/EXAMPLE.DDI
cd .. cd ..
``` ```
@ -68,6 +68,10 @@ qemu-system-riscv32 -machine virt -bios none -drive if=none,format=raw,file=/dev
(note that this will take over your terminal and steal CTRL+C, so you'll need to kill it by closing the terminal or (note that this will take over your terminal and steal CTRL+C, so you'll need to kill it by closing the terminal or
manually killing the process) manually killing the process)
in the shell you can currently do two things:
- `ls` will list files in the root directory
- `<file>` will run the program `<file>` in the root directory, always capitalize your file name!
## developing programs ## developing programs
currently, the best way to program is to use rust and link to the liblbos library included in this repo, currently, the best way to program is to use rust and link to the liblbos library included in this repo,
you should be able to using something like you should be able to using something like