Let me try to rephrase this topic to see if I've understood everything:
If you're thinking of building a 65c02 SBC computer, use a 65816 instead, seriously, you'll thank me later. Even if you never, ever switch into native mode and only stick with 64k forever:
1. You get all the additional 65c02 instructions in emulated mode -- not only the original 6502 instructions (I think this might be a common misunderstanding). That's stuff like BRA, STZ and JMP (abs,X). So you can, if you really, really want to, just use it as a 65c02. This means you can use all the "normal" assemblers, too. Put a sticker over the chip and nobody needs to ever know it's not a 65c02!
2. However, you get a whole bunch of instuctions from the 65816, too,
even in emulation mode, stuff like TXY, TYX, and XBA. The last one is especially interesting, because
even in emulation mode, you get an extra register named "B" you can swap with A. The zero page (now "direct page") can be relocated and you have extra stack relative addressing modes. Note that normal assemblers don't support these out of the box, but I'm sure this is something you can fix with macros.
For the record, the relevant part
Programming the 65816 by Eyes and Lichty starts on page 58:
Quote:
It is important to realize, however, that 6502 emulation mode goes far beyond emulating the 6502. It embodies all the addressing mode and instruction enhancements of both the 65C02 and the 65802/65816; it has a fully relocatable direct page register; it provides the stack relative addressing modes; and in the 65816’s emulation mode, it can switch between banks to use 24-bit addressing.
The drawback is that the
hardware side needs a bit more work,
even in emulation mode (er, could somebody confirm that?). You should include a bus tranceiver such as the 74x245 (see
viewtopic.php?f=4&t=2438) for the data bus and a 74x373 latch for the addition byte of the address bus, and connect them to PHI2. You should also deal with VDA/VPA at higher clock speeds (or is that at all speeds? I admit I'm still confused after reading various topic posts). Some of the pins are different.
What would be great would be a reference design of a most basic 65816 system, however simple, something like Garth's famous complete 6502-schematic (
http://wilsonminesco.com/6502primer/pot ... ml#BAS_CPU). Even if none of the 16/24-bit functions are used, it would provide a starting point for 65816 designs like the current schematic does for 6502/65c02 systems.