Re:Weird things I learned while writing an x86 emulator
by Sniffnoy on Friday February 03, 2023 @04:11AM
(#34638983)
Thanks, I saw that, but I was hoping for explicit examples.
Re:Weird things I learned while writing an x86 emulator
by woodruffw on Friday February 03, 2023 @04:18AM
(#34639039)
Figure 6 has examples (in the context of instruction generation). But note that those instructions are “nonsense,” in the sense that they’re guaranteed to either #UD at 15 bytes or well before then.
Re:Weird things I learned while writing an x86 emulator
by Sniffnoy on Friday February 03, 2023 @04:30AM
(#34639130)
Ah, thanks, I missed that! Kind of disappointing that it doesn't give the instructions' dissassembly (so to speak -- obviously as you point out in reality they are nonsense), but I suppose I can sit down and figure that out myself. :)
(There may be even longer valid productions; my analysis was pretty naive. But 26 is already substantially longer than the limit!)