6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Oct 05, 2024 7:31 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Broken opcode?
PostPosted: Fri Oct 29, 2021 11:41 pm 
Offline

Joined: Sun Oct 03, 2021 2:17 am
Posts: 114
I've heard the 6502 was originally supposed to have an additional opcode, but when they made it the silicon was bugged, so they advertised the chip as having one less opcode. Can anyone identify what this opcode is or what it does/was supposed to do?


Top
 Profile  
Reply with quote  
 Post subject: Re: Broken opcode?
PostPosted: Sat Oct 30, 2021 12:16 am 
Offline
User avatar

Joined: Sun Jun 30, 2013 10:26 pm
Posts: 1948
Location: Sacramento, CA, USA
The ROR instructions didn't work properly on the initial silicon, and were left out of the earliest data sheets (how can it be broken if it's undocumented?). Within a few months, ROR was fixed and officially added to the repertoire, and the rest is history.

_________________
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some VTL02C on it and see how it grows on you!

Mike B. (about me) (learning how to github)


Top
 Profile  
Reply with quote  
 Post subject: Re: Broken opcode?
PostPosted: Wed Nov 03, 2021 8:35 am 
Offline

Joined: Sun Oct 03, 2021 2:17 am
Posts: 114
Ok thanks, so all the opcodes that were designed in function correctly; that's what I was trying to figure out.


Top
 Profile  
Reply with quote  
 Post subject: Re: Broken opcode?
PostPosted: Wed Nov 03, 2021 1:53 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
jeffythedragonslayer wrote:
so all the opcodes that were designed in function correctly
LOL! Well, no! The ROR issue was simply the most serious problem on the NMOS chip, and it got fixed promptly. But the NMOS '02 retained several other idiosyncracies, some of which can be considered bugs. Probably the most notable is the jump indirect instruction (opcode $6C), which in some circumstances behaves in a way that's unexpected and/or undesired by most people.

When the CMOS chip (65C02) was released, there were numerous changes, most of them minor. But even the 'C02 has a subtle quirk or two remaining.

-- Jeff


Attachments:
65C02 enhancements.gif
65C02 enhancements.gif [ 39.3 KiB | Viewed 304 times ]

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: