News for hackers. Stuff that matters.
Re:x86 assembly doesn’t have to be scary (2018) by Taniwha on Thursday October 07, 2021 @07:28AM (#28784870)
well except for the two sorts of registers
Re:x86 assembly doesn’t have to be scary (2018) by Joker_vD on Thursday October 07, 2021 @08:27AM (#28785338)
Three, starting with 68040.
Re:x86 assembly doesn’t have to be scary (2018) by a-priori on Thursday October 07, 2021 @09:59AM (#28786336)
And likely far more by now, had it become the PC instruction set architecture. The x86 instruction set was also simpler back in the late 70s, in the 8086 era when the Motorola 68000 was first released, than it is now.

Back then it only had the one register width (16-bit, e.g. "ax"), whereas now it has the 32-bit series (e.g. "eax") series and the 64-bit series (e.g. "rax"). It also now has SIMD, SSE/AVX, virtualization support, and other technologies. Back then it just had one operating mode (real mode), whereas now it has protected mode, long mode, system management mode, and a few other intermediate modes (e.g. "unreal mode").

So a lot of the complexity that x86 has now was introduced after that decision was made. It's definitely conceivable that the 68000 line would have developed similarly had it been chosen instead of x86 for the PC.

Re:x86 assembly doesn’t have to be scary (2018) by coldacid on Thursday October 07, 2021 @11:00AM (#28787200)
8086 let you address the upper and lower halves of the 16-bit registers as well, so don't trick yourself into thinking there was just one register width available in the sense that everything could only be treated as 16-bit words.
Re:x86 assembly doesn’t have to be scary (2018) by colejohnson66 on Thursday October 07, 2021 @11:49AM (#28787897)
Many 8 bit processors had the same “feature”. For example, the Z80’s 8 bit registers were internally just halves of a 16 bit register.