x86 opcodes make more sense in octal.
In a 1992 alt.lang.asm post, Mark Hopkins shows that each opcode byte reads as three octal digits inherited from the 8080 and Z80. In 0P0 to 0P5, one digit picks add, or, adc, sbb, and, sub, xor or cmp, and the xrm byte splits into register and addressing mode. Only the condition codes break the pattern. A neat mental model for reading disassembly.
gist.github.com/seanjensengrey/…
Assembly
Follow from the Fediverse
Follow #assembly from Mastodon or any other Fediverse app and its public posts arrive in your timeline. No vutuv account needed.
@assembly@tags.vutuv.de
The most endorsed users with this tag
Posts with this tag
2 posts
Filters
Why is x86 little-endian? Because the Datapoint 2200 terminal, whose design became the 8008, added numbers one bit at a time. Gustavo Pezzi walks through x86 from the 4004 to the 486: why the parity flag exists, why BX is the memory pointer, and why the 8086 aimed for source compatibility with the 8080. A nice reminder that backward compatibility shapes an ISA for decades.
pikuma.com/blog/…