Will any 6502 work in a Vic?

Modding and Technical Issues

Moderator: Moderators

Post Reply
SparkyNZ
Vic 20 Enthusiast
Posts: 153
Joined: Tue Jan 18, 2011 2:23 am

Will any 6502 work in a Vic?

Post by SparkyNZ »

Hi. I just received a broken Vic and by swapping the chips I've determined that the 6502 CPU is dead.

Can somebody please tell me - would any (brand of) 6502 work in a Vic?

Thanks
User avatar
joshuadenmark
Big Mover
Posts: 1218
Joined: Sat Oct 23, 2010 11:32 am
Location: Fr-Havn, Denmark
Occupation: Service engineer

Post by joshuadenmark »

Ive bought one at ebay, was not original but worked fine :D

http://www.ebay.com/sch/sis.html?_kw=1+ ... 0584473522

Ebay search
Kind regards, Peter.
____________________________________________________
In need of a wiki logon - PM me
SparkyNZ
Vic 20 Enthusiast
Posts: 153
Joined: Tue Jan 18, 2011 2:23 am

Post by SparkyNZ »

joshuadenmark wrote:Ive bought one at ebay, was not original but worked fine :D

http://www.ebay.com/sch/sis.html?_kw=1+ ... 0584473522

Ebay search
Thanks Joshua. I ordered a couple from eBay lastnight. One of the auctions listed that the clone chip was compatible with CBM PET and other 8bit micros so I figured it must be OK. I'll reply to my own posting with the details once I receive the chips. I just wasn't sure if the chips were made with different types of transistors etc (e.g. TTL vs CMOS). I believe the "MOS" name of the CBM 6502 is the company but it scares me into thinkin 'CMOS technology' etc.
User avatar
joshuadenmark
Big Mover
Posts: 1218
Joined: Sat Oct 23, 2010 11:32 am
Location: Fr-Havn, Denmark
Occupation: Service engineer

Post by joshuadenmark »

Please let us know when your vic is up running.
Kind regards, Peter.
____________________________________________________
In need of a wiki logon - PM me
User avatar
eslapion
ultimate expander
Posts: 5458
Joined: Fri Jun 23, 2006 7:50 pm
Location: Canada
Occupation: 8bit addict

Post by eslapion »

My answer to your original question is no.

I suggest you visit the western design center for advice on compatibility with different versions and manufacturer's implementation of the 6502.

Some are CMOS, some are NMOS, some support DMA, most don't.
Be normal.
matsondawson
The Most Noble Order of Denial
Posts: 343
Joined: Fri May 01, 2009 4:44 pm

Post by matsondawson »

I think the overflow pin on the WDC one is different, and you have to make a slight change to get it to work.
Not to mention the loss of illegal instructions.
ruud
Vic 20 Devotee
Posts: 245
Joined: Wed Aug 04, 2004 11:26 pm

Post by ruud »

eslapion wrote:My answer to your original question is no.
I have to contradict this. If no illegal codes are used, all 6502 variants should work. When using my hardware debugger, I often replace the original 6502 by a WDC 65SC02 ot be able to see what is going on when the 6502 writes data to the bus.

And FYI: you can even use a 65816 but then you have to do a bit of soldering: http://www.baltissen.org/newhtm/02to816.htm.

Code: Select all

    ___
   / __|__
  / /  |_/     Met vriendelijke groet, Ruud Baltissen
  \ \__|_\
   \___|       URL: www.baltissen.org

User avatar
eslapion
ultimate expander
Posts: 5458
Joined: Fri Jun 23, 2006 7:50 pm
Location: Canada
Occupation: 8bit addict

Post by eslapion »

ruud wrote:
eslapion wrote:My answer to your original question is no.
I have to contradict this. If no illegal codes are used, all 6502 variants should work.
If used as is, the W65C02S WILL cause a short circuit on pin1.

This variant of the processor also supports external bus control and DMA. The original 6502 does not.
Last edited by eslapion on Tue Nov 15, 2011 9:29 pm, edited 1 time in total.
Be normal.
RJBowman
Vic 20 Enthusiast
Posts: 198
Joined: Tue Oct 25, 2011 7:50 pm

Post by RJBowman »

The so-called undocumented opcodes may not work on some clone chips. I don't know how widely used these opcodes are.
User avatar
GreyGhost
Vic 20 Nerd
Posts: 526
Joined: Wed Oct 05, 2005 11:10 pm

Post by GreyGhost »

If I understood correctly, even some of the standard opcodes act differently on different 6502's, with the setting of flags. You might end up with some programs needing modification.
Rob
User avatar
Mike
Herr VC
Posts: 4901
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Post by Mike »

GreyGhost wrote:even some of the standard opcodes act differently on different 6502's, with the setting of flags.
The CMOS variant of the 6502 fixed some bugs in the arithmetic instructions, after an ADC or SBC in decimal mode the N and V flag were unusable on the NMOS 6502 (they reflected the binary result). Furthermore, the D flag is cleared after a reset, and several page-related ideosyncracies, like missing page increments in ZP-(indirect)-indexed and indirect JMP, were fixed.

Nothing special to be concerned of, though. You'd avoid these cases on a NMOS 6502. Only problem might be when you'd use the fixed versions on a 65C02, and then try them on a 6502 and then ran into these cases by accident - that might give you a longer debugging session. :wink:
RJBowman wrote:I don't know how widely used these opcodes are.
Some time ago we had a similar discussion about the usefulness of the undocumented instructions, leading to the thread '65xx Opcode statistics, an example'.

Greetings,

Michael
SparkyNZ
Vic 20 Enthusiast
Posts: 153
Joined: Tue Jan 18, 2011 2:23 am

Post by SparkyNZ »

Hi Everybody. Just to recap on my original post.. I received my new chips yesterday. They're CM630P chips. I plugged it in and the Vic is working great again. Ran a few demos and games OK so thats good enough for me! :)
User avatar
joshuadenmark
Big Mover
Posts: 1218
Joined: Sat Oct 23, 2010 11:32 am
Location: Fr-Havn, Denmark
Occupation: Service engineer

Post by joshuadenmark »

Great :D one more vic waked up from the dead.
Kind regards, Peter.
____________________________________________________
In need of a wiki logon - PM me
User avatar
eslapion
ultimate expander
Posts: 5458
Joined: Fri Jun 23, 2006 7:50 pm
Location: Canada
Occupation: 8bit addict

Post by eslapion »

SparkyNZ wrote:Hi Everybody. Just to recap on my original post.. I received my new chips yesterday. They're CM630P chips. I plugged it in and the Vic is working great again. Ran a few demos and games OK so thats good enough for me! :)
The W65C02S caused problems when loading and saving data to datasette and floppy drives.

If these worked fine with your chips then everything should be ok.
Be normal.
Post Reply