6502.org
http://forum.6502.org/

opcodes from columns 7 and F - prefer the 'c02 or the '816?
http://forum.6502.org/viewtopic.php?f=10&t=2874
Page 1 of 1

Author:  BigEd [ Fri Feb 21, 2014 6:49 pm ]
Post subject:  opcodes from columns 7 and F - prefer the 'c02 or the '816?

Dr Jefyll wrote:
BigEd wrote:
An FPGA 6502 could also do ...
I like that idea. But by far the biggest gain comes from the BBSn/BBRn and SMBn/RMBn instructions, and we don't have a 6502 core that offers those -- yet. No doubt they could be added to an existing core. (Another project for your list, Ed? :wink: )

Another idea for the list, yes! First up would be the addition of the conventional opcodes for the C02 - the push and pull of X and Y, INC A and DEC A, the indirect zero page operations, BRA, JMP indexed indirect and so on.

I've said before that there are useful aspects of the 816 to be brought into play, to offer 24-bit addresses for data access, without tackling the enormous task of a full 816 core. Unfortunately, columns 7 and F contain some of those useful opcodes in the 816, and contain the zero-page bit-mode instructions in the 65C02. So that's two competing models...

What probably should apply here, though, is to step back from cycle counts and consider real elapsed time. Any FPGA CPU can run at 10MHz and up - generally limited by external memory speed, if there is external memory. So for bit-banged peripherals, as for interrupt latency, our level of anxiety about using extra cycles should be reduced by at least a factor of ten.

(It's also true that a fast FPGA CPU can output the system clock and do its own address decoding and clock-stretching to arrange that access to 1MHz peripheral chips is seamless. So long as there are a few free pins.)

Cheers
Ed

Author:  BigEd [ Fri Feb 21, 2014 7:08 pm ]
Post subject:  Re: opcodes from columns 7 and F - prefer the 'c02 or the '8

(As noted elsewhere, there are already two 65C02 cores in HDL which offer the bitwise instructions:
MichaelM wrote:

)

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/