News for hackers. Stuff that matters.
Re:KolibriOS – operating system written entirely in assembly... by monocasa on Wednesday April 15, 2020 @02:35AM (#22875175)
Here's a 6502 instruction that has undefined behavior, because the microsequence connects circuits together in an invalid way causing analog effects that can change even run to run of the same processor.

http://visual6502.org/wiki/index.php?title=6502_Opcode_8B_%2...

Re:KolibriOS – operating system written entirely in assembly... by dkersten on Wednesday April 15, 2020 @08:46AM (#22877052)
It looks like that’s not undefined behaviour, but using a non-existent and undefined opcode, which happens to “do something” because the cpu attempts to execute the bits anyway (it doesn’t mask the unused opcodes into no ops or errors). Later variants of the 6502, like the WDC 65C816, did away with this (I believe, either using the opcodes for something defined, or making them no ops, although I’m unsure)
Re:KolibriOS – operating system written entirely in assembly... by dan_hawkins on Wednesday April 15, 2020 @07:15AM (#22876454)
"Of all the unsupported opcodes" - I'm not sure it's a good example.