The M6800 had a few illegal opcodes, including the (in)famous HCF
(Halt and Catch Fire). The following illegal opcodes were revealed in BYTE Magazine, December 1977:
$14
:NBA
$87
:STAA
immediate$C7
:STAB
immediate$8F
:STS
immediate$CF
:STX
immediate$9D
/$DD
:HCF
In addition, this article reveals these additional illegal opcodes:
$15
:NOP
$CD
/$ED
:HCF
with slightly different behavior$FD
:HCF
but slower
Okay, that's all well and good. I only listed them all because the first article I linked to, from BYTE Magazine in December 1977, says the following:
Some of those codes seem to be just NOPS: they do nothing. Others change the flags in the condition code register according to some pattern that is, as yet, undeciphered.
What are these additional illegal opcodes on the M6800, which are not listed above? And has someone deciphered their flag changing patterns in the intervening 42.5 years?
JSR $0040
into anHCF
(or aJSR $40
as it's known on the 6803). It's just curiousity, albeit perhaps a morbid curiosity.