News for hackers. Stuff that matters.
Re:x86 finds its way into the iPhone by Dylan16807 on Friday September 14, 2018 @04:18PM (#17990587)
But do any self-synchronizing instruction sets exist? (And are in commercial silicon?) It seems like it would be very annoying for density and constant-encoding reasons with 8 bit code units, and none of the variable 16/32 bit encodings I can name do it either.
Re:x86 finds its way into the iPhone by dezgeg on Saturday September 15, 2018 @03:57AM (#17993461)
The PIC18 instruction set has this property. Most instructions take up a single 16-bit instruction word, but the few ones that take up 2 words all have the 0b1111 in the high bits of the second word, which would execute as a NOP if branched into.

This encoding is presumably a consequence of the instruction set containing conditional skip instructions. That is, the skip instructions don't have to parse the instruction stream for 2-word instructions but can always just skip a single instruction word and let the second word execute as a NOP.