miniforth icon indicating copy to clipboard operation
miniforth copied to clipboard

Feature request: automatic `load` on start.

Open sirocyl opened this issue 4 years ago • 0 comments

Another tricky one, but the premise is simple - load and execute one Forth block without any user intervention on boot.

There's quite a bit that could be done with this, including making the environment feel more like an operating system proper.

If the sector it loads is empty, it does nothing, and you're back to the interpreter, as usual. If this behavior is not desirable, the code could possibly be commented out/removed prior to build.

I noticed that 80 (the current disk number) is on the stack when the interpreter is presented - meaning a load command with no arguments will do 80 load. So, I use this in a bit of a hack, where I renamed the bootsector load word to forth; at block 80, is only 80 1 forth; and in block 1, I had changed the load word copy, so that it copies forth over to load. Now, you only type forth to start the rest of the system. :)

sirocyl avatar Oct 18 '21 00:10 sirocyl