News for hackers. Stuff that matters.
Re:IBM PC 8088 replaced with a Motorola 68000 by ghaff on Friday May 12, 2023 @02:04PM (#35919782)
I'd add that I never programmed for the 68K but the 8088/8086 segment register model was a real pain for low-level programming. (https://en.wikipedia.org/wiki/X86_memory_segmentation) They were also little endian which is arguably less intuitive when you're twiddling bytes at a low level.
Re:IBM PC 8088 replaced with a Motorola 68000 by mordechai9000 on Friday May 12, 2023 @02:43PM (#35920404)
They figured out how to use 16 bits of register space to represent a 12 bit memory address. I understand there were reasons for doing it this way, but it was painful.
Re:IBM PC 8088 replaced with a Motorola 68000 by ghaff on Friday May 12, 2023 @02:58PM (#35920641)
20 bit but yes :-) It was doubtless a clever hack given the constraints they were operating under but still a pain for real mode assembly programming, especially if it was memory constrained. At one point I needed to separate out code from in-memory data store for a DOS file manager to support larger directory sizes and the segment register switching got really ugly.
Re:IBM PC 8088 replaced with a Motorola 68000 by mordechai9000 on Friday May 12, 2023 @03:49PM (#35921381)
Yes! Thank you, it used two 16 bit registers to represent a 20 bit address