I’ve now implemented the first useful program – a very simple version of “ls”. It’s not much, but it’s a start!
Interesting how many bugs come to light when doing something like this. A particularly nasty one was the situation when a memory allocation was called for with a requested size of zero (of course this should never happen, so a few more checks are needed). The result was that the first memory entry in the list was used (even though it was already allocated elsewhere) and susequently deallocated, with unpredictable results. That was quite a tough one to track down as it didn’t show up immediately. As always, without SimNow I don’t know how I’d ever have found it.
When I have the energy I’ll try to document this latest version and upload it to the web site as I think it represents a significant step.