Login
Back to forumReply to this topicGo to last reply

Posted By

SVS
on 2016-02-20
13:52:56
 6502 code $x2

Since ever I wondered why all the executing codes, of 6502 family, with "2" as second nibble are jamming the processor. For example: $02, $12, ... $82, $92 etc.
The only exception to this rule is $A2 (LDX).

Who know the mystery?

Posted By

Doug
on 2016-02-21
18:55:49
 Re: 6502 code $x2

Hi,

Best article I've read on it: http://www.pagetable.com/?p=39

I used a lot of unlisted op codes in the past to obfuscate code. Some were like multibyte NOPs, which confused disassemblers! Others did 'odd' but useful stuff. This article gives a really good explanation of why.

Doug

Posted By

gerliczer
on 2016-02-22
02:49:49
 Re: 6502 code $x2

Thanks a lot, Doug. I wanted to recommend this article to SVS but I couldn't find it.

Posted By

SVS
on 2016-02-22
06:49:09
 Re: 6502 code $x2

Thus they are so called KIL opcodes! Very interesting, thank you.



Back to topReply to this topic


Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon