6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 01, 2024 3:47 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Feb 21, 2014 6:49 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10971
Location: England
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


Top
 Profile  
Reply with quote  
PostPosted: Fri Feb 21, 2014 7:08 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10971
Location: England
(As noted elsewhere, there are already two 65C02 cores in HDL which offer the bitwise instructions:
MichaelM wrote:

)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 4 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: