News for hackers. Stuff that matters.
Re:How the Atari ST Almost Had Real Unix (2011) by jacquesm on Friday November 27, 2015 @12:17PM (#10638043)
So essentially he re-invented segmented memory for memory protection purposes. Neat hack!

There was a brown box at the time, iirc by Torch (?) that ran a version of Unix on a 68K. Does anybody know which machine that was?

The 6809 OS that was 'unix like' referenced in the comments is about OS/9.

https://en.wikipedia.org/wiki/OS-9

Which is a really neat little OS that you can run on the TRS-80 CoCo and the UK clone of it called the 'Dragon 32'.

Re:How the Atari ST Almost Had Real Unix (2011) by kabdib on Friday November 27, 2015 @02:49PM (#10638595)
I knew about segmented memory. But base/bounds was too expensive and slow.

The trick was to make it work without requiring an adder -- and subsequent carry propagation delay -- in the data path. Thus, "one gate delay" and simple replacement of address lines, and a simple "all zeros or all ones" check on the bounds, rather than a numeric comparison.

Re:How the Atari ST Almost Had Real Unix (2011) by jacquesm on Friday November 27, 2015 @03:19PM (#10638696)
The reason I call it 'segmented memory' is that that is more or less exactly the same but this does not have the addition penalty. Super neat :)

I ran into a related problem, I had a need to drive a whole pile of IO and only an 8 bit centronics port to work with (on the ST as well). So I ended up making a little demultiplexer using 4 bits of the 8 as address and the remaining 4 as data. The strobe was used to latch the data. Not super but it worked well enough to let the 68K drive stepper motors in real time near their maximum working frequency (30K steps / second or so).

The ST was a fascinating machine, lots of ports, relatively cheap and with all kinds of limitations that continuously drove the users to creative hacks. I loved that time. Thanks a ton for all your work.

Oh, one more for the road: we had a product that was copied quite frequently and obviously wanted to make that a bit harder. There was no budget for a dongle so in the end I looped one of the 8 bits of the port back to an input. If that wire wasn't present the software would exit with an 'out of memory' error :) Threw the copyists for a loop because all I did on not finding the wire was allocate all the remaining memory which would then cause a TOS Bomb on the next memory allocation, which could happen just about anywhere. Nasty little trick.

Re:How the Atari ST Almost Had Real Unix (2011) by arethuza on Friday November 27, 2015 @02:48PM (#10638592)
If it was a "brown box" maybe it was a Cromemco?

https://en.wikipedia.org/wiki/Cromemco

Re:How the Atari ST Almost Had Real Unix (2011) by jacquesm on Friday November 27, 2015 @03:12PM (#10638678)
No it most resembled a cube each side about 30 cm or so. It's ages ago and my memory about this is hazy, I saw the machine exactly once. Now I really want to find out.

Edit: Ah, got it:

http://chrisacorns.computinghistory.org.uk/docs/Torch/Torch_...

Indeed, the Torch Unicorn, Unix on a 68000. Makes you wonder what they did for MMU, apparently it ran Unix System 3

Re:How the Atari ST Almost Had Real Unix (2011) by arethuza on Friday November 27, 2015 @03:23PM (#10638713)
I remember reading about them in what was probably "PC World" - first time I'd read about Unix or seen C code. I was amazed that you could program without line numbers... :-)