Here's the script!!
// "cd" to env
ci= #1
// Open "DOS C:" root DB, and "cd" to it
open \06\80\FB\7D\06\B8\DF\67\80\00\00\00\00\00\00\00\00DOS\20C: #0 #0 #0 #0 #1
ci= $r
// Open the file "test" inside the DB, and "cd" to it
open \04\00\00\00\00\00\00\00\80\00\00\00\00\00\00\00\00test #0 #0 #0 #80000000 #1
ci= $r
// Read 10 bytes from the beginning of the file
read #0A #0 #0
read #10 #0 #0
// Close the file
close
...a bit more complicated than running $
hd test, but the debug shell is basically just a CLI interface to the syscall interface, for now. A future improved shell will not require you to enter so many magic numbers....The Not Implemented crash which happened when I closed the file happened because the "host db" process which serves the "DOS C:" root (the external host filesystem) became the sole owner of the file the shell process opened, and I haven't written the appropriate callback for that event.
#OSDev #FoundationProject



