General Category > LisaList2

WDC 65C22 vs. MOS 6522

<< < (2/2)

stepleton:
I don't know if it includes illegal instructions (I would be surprised if it did!), but you can find the source code for the 88 I/O ROM on Bitsavers:

http://bitsavers.org/pdf/apple/lisa/firmware/ROM88/
http://bitsavers.org/pdf/apple/lisa/firmware/IO_ROM_88_Listing_Dec83.pdf

patrick:
On the 6504, /IRQ is on pin 3, while the 6507 uses this pin as the RDY input. On the Lisa I/O board, /IRQ is not used and pin 3 is terminated with a pullup resistor. Therefore both 6504 and 6507 will work.

All 650x derivatives use the same chip. On the 28-pin variants, some pins are simply not connected. It would be easy to develop an adapter board that allows the use of a 6502 instead. But who needs something like that? I have made adapter boards for the Z8 (with UB8820M) and for the COP421 (with COP402). These parts have internal ROM and are therefore not so easy to replace, but even those no one has needed yet. They just break very rarely.



--- Quote from: blusnowkitty on April 22, 2022, 02:16:43 pm ---I did a quick bit of research and, at least according to the Atari guys there appears to be no reason why you couldn't use a full-blown vintage 6502 in place of a 6507. Things get more interesting by the time we get to the 65C02 (and by extension, the modern WDC parts) - I don't speak 6502 assembly, but according to the Atari guys code that uses illegal opcodes on a vintage 650x will no longer function on the 65C02. Another page I found said that illegal opcodes simply NOP in the 65C02, and some instructions may take an extra cycle or two to complete now.
--- End quote ---

The I/O ROM for the floppy controller does not use illegal opcodes. So I see no reason why a 65C02 (or 65C04 if there is such a thing) should not work.

You (or the Atari guys) are right -- the CMOS devices replaced the illegal opcodes (which are actually just overlays of two legal opcodes because the instruction decoding is incomplete) with either additional opcodes or NOPs. Unfortunately, there were different implementations of the 65C02 with different sets of additional opcodes. Therefore you have to know exactly which controller type is installed if you want to use them.
http://www.6502.org/tutorials/65c02opcodes.html

blusnowkitty:

--- Quote from: patrick on April 23, 2022, 08:01:19 am ---It would be easy to develop an adapter board that allows the use of a 6502 instead. But who needs something like that? I have made adapter boards for the Z8 (with UB8820M) and for the COP421 (with COP402). These parts have internal ROM and are therefore not so easy to replace, but even those no one has needed yet. They just break very rarely.
--- End quote ---

True, I see things more as a case of having and not needing than needing and not having. We've all seen just how bad leaky NiCd batteries can get, who's to say if things sit around long enough it won't rot the pins off other ICs? MOS-fabbed parts haven't stood the test of time either, if you look at how many Commodore computers have dead MOS chips (did Apple ever use MOS-fabbed ICs though? I think I've only seen Synertek or Rockwell). I also don't like the idea of condemning one vintage machine to ewaste to fix another (I suppose if the other machine had extensive physical board damage...), and 6504/6507s aren't exactly common on eBay US right now.

patrick:
Here you are. I have placed the 6502 symmetrically onto the 28pin socket. This should work both for the Lisa I/O board and the Atari 2600. There is a solder jumper on the bottom to select either RDY (6507) or /INT (6504) for pin 3. Besides that, there are two pullup resistors for /NMI and /SO. The 28 pin parts have these lines internally directly connected to VDD, but this gives more flexibility in case someone needs these signals.

Send the zip file to your favourite Chinese PCB supplier, like JLCPCB or Elecrow. Note that this design has been reviewed a couple of times, but it has not been tested yet.

Navigation

[0] Message Index

[*] Previous page

Go to full version