1 of 3 Getting that batch of 25 Friendly fZ80 machines out ate all my interest i...
tom jennings @tomjennings@tldr.nettime.org
1 of 3
Getting that batch of 25 Friendly fZ80 machines out ate all my interest in working on MP/M or related for a couple months, but decided to sort of force myself to push on to some of the backlog. This involved for starters a very close read of the MP/M II Programmer's Guide to figure out just how the hell .BRS/.RSP Resident System Processes work.
Six hours I read about 30 pages of manual, annotating my stupid small program (background clock and CPU load bargraph).
Holy crap. Its so succinct! OK that's the nice way to put it. The manual was clearly written by programmers deep into their shit. The design, the desired end result is fairly elegant, but the 8080 is a horror and impediment that few people I think ever put in this much effort to overcome.
DOS has it's TSR; "terminate stay resident", a very crude hack that puts (8086 relocatable) code up high, just under the bottom of the OS (remember its' copied CP/M: command interpreter, BDOS, BIOS) and moves the location 5 jump table jump up to hide under. Barbaric in the extreme. No one did this in CP/M because there wasn't enough memory. In DOS TSRs are bags on the side; though you can hook into the software interrupts to modify/extend systems calls (eg. the FOSSIL driver extended the primitive int 13h). Otherwise MSDOS has no knowledge or accommodation of TSRs.
Unix/linux has daemons, kernel-monolithic or dynamically loaded. Daemons are of course extend OS abilities in documented ways.
MP/M has RSPs; resident system programs (or processes; same acronym, different function! aargh). RSPs can be daemons (or anything). RSPs can provide services, and RSPs can use kernel services, can execute programs, talk to other RSPs, do things like SCHED, which is cron. RSPs are amazing.
1/3