4 ms·
But it has fewer pixels to play with and video and audio hardware that has at least ten times the power of that of a 128k Macintosh :-) I would like to see a d
by Someone 11y ago
But it has fewer pixels to play with and video and audio hardware that has at least ten times the power of that of a 128k Macintosh :-)
I would like to see a description of that multi-tasking solution. A simple way to do it that I see is to give each of those 16 processes 16 bytes of stack space, but that would be very tight. You would have to carefully count your stack depth in every subroutine. An alternative is to go for a software stack, but that is slow.
- rbanffy 11y agoLike many computers of the time, the Ataris accessed more than 64K of memory by switching banks. Depending on how the banks are selected (size and whether a bank can appear at any address or not, be writable) doing multitasking can be actually easy.
- Someone 11y agoNice idea, but reading http://www.atariarchives.org/mapping/appendix16.php http://www.atariarchives.org/mapping/appendix16.php, that doesn't work for swapping the stack. Bank switching switches in a 16k block at the access window starting at $4000.
- flashjazzcat 11y agoAs already noted, the Atari's banking window is outside of the stack area. IIRC, André Fachat's Geck/OS optionally makes use of an enhanced MMU which bank switches the stack area, but we have no such mechanism on the Atari. What I came up with is a hybrid stack segmentation/caching approach. Even when copying is required, stack frames are typically very shallow, so the fixed stack isn't quite as burdensome as supposed.
- rbanffy 11y agoLooks interesting. Is the code available somewhere? It certainly sucks it's not possible to map any 16K bank to any 16K segment (shouldn't be too difficult) but I guess nobody was thinking about multitasking and memory protection when those computers were designed.
- flashjazzcat 11y agoI'm not releasing the kernel or graphics library code for the moment (it's not finished, for one thing), but application sources will be available and drivers, etc, will all be open-source. The fixed 16KB banking window is a pain in one respect, namely that applications (which themselves are relocated into the banking window) cannot directly access MALLOCed RAM. Of course there are ways around this, but I was a little envious of the more flexible banking schemes on some of the Z80 platforms described in the SymbOS developer docs. But it's also fun working around the Atari's limitations.