Hi Everyone, here is my 2 days work of creating CyborgOS - ok, technically it’s years of planning - but now it came together in 2 days.
It wouldn’t have been so easy without NTC BASIC for which it is developed in. If you have tried it a day ago - it ran like a dog, now it hums. I had to come up with a novel directory mechanism for now - and I’m still using AMSDOS / UNIDOS ROMs - not terrible - but it means this might be the last model that works on a 128kb machine. Already I had to reduce the memory lists that support 4gb to 3gb and remove the double buffering from CyborgOS to cater for a single 64kb task on a 128kb computer. It may hang around if I separate builds, but I don’t see the 128kb version being the ultimately platform. Time for everyone to upgrade, get 512kb RAM, or… 1mb, or 4mb!
Currently you can build CP/M programs using NTC BASIC and run them from in there. Very limited BDOS (input output, no real filesystem yet), BIOS coming maybe… (likely in the 320kb+ version).
I
Full UniDOS support now - it’s a requirement! Floppy drives not supported in the normal sense - but the utility ‘floppy’ is provided to let you transfer disc images to mass storage.
CP/M programs now gaining more compatability - most things run, with the odd bug here and there (system bugs, not per application) which I am addressing, like… files or keys, or display.
Nothing beats debugging CP/M programs on the same computer you are running them on!
If you wanted the best CPC/CPM system on CPC, including WinAPE correct behaviour at 10x performance… run 20 copies of BBC BASIC at the same time? or something else? I’m sure it will be much better in a few more days. This is day 3. For those who want to learn how to code a hypervisor in BASIC with inline assembler, full source is there, it’s really easy to understand. I’ve still got full double-buffer capability in main memory too - trying hard to keep it, many enhancements gobble a bit of main memory - but I’m not limited with drivers, they go sideways.
Today introduces internet access with M4 Card as well as a mini NeuralNet and Decision Tree based AIs. You can play with Pet (Tamagotchi style virtual pet) and Ratbox (a box full of rats). These are driven by the decision tree. The introduction of services with named ports allows the services with a model to run in a slot and application in other slots to use it - examples how to code a bridge between a real-world I/O board and the decision tree models is explained so you can run your greenhouse on your CPC for example.
Web addresses with a port above 32767 showed as negative after a redirect, e.g. http://host``:-29973/. The connection itself was always right; only the address shown was wrong. Fixed on both the CPC and the Next.
COPY and ERA printed A:: its files can't be listed (UniDOS, or a RAM disc). They now say the same as DIR: A: its files can't be listed (UniDOS's drives and RAM discs can).
Testing
CyborgOS now has test scripts that check every build:
CPC: the seven disc images are installed the way INSTALL.BAS does it, CyborgOS is booted, and 40 tests are run, each checking the screen against a known good one. They cover DIR, PS, MEM, HELP, RAM discs (copy, rename, delete), running and killing tasks, the RAT services, and the network through the M4 (NET, IPCONFIG, NETSTAT, GETs, redirects, timed tests, failures). They also check that the YING / YANG web browsers fetch their pages.
Next: the card image is booted in an emulator with a stand-in ESP wifi module that makes real connections. NET ESP, IPCONFIG, NETSTAT, NET SET, GETs, redirects, NET TEST, the failure cases and YING all pass.
The builder: the CyborgOS Builder page is tested start to finish, from opening the folder to the finished disc images, with no errors.
The real Next ESP hasn’t been tested yet. If you have a Next, I’d like to know what AT+GMR reports for your ESP’s firmware.
Thanks to the 1984 CPC Emulator I was able to test enhancements a LOT faster than on my real CPC - so… lots of enhancements to CyborgOS including support for MSX 2 as well as CPC-CPLINK and CPC-CPLINK2 cards (the latter I don’t have a real one to test).