Thanks for the answers and the links! You're very kind. I promise to read them thoroughly ASAP.
BigEd wrote:
A simple MUL can be dropped in, I think. Division seems to be difficult, in the sense that it's a multi-cycle operation and there's no drop-in hardware for it, so that's less likely unless someone pops up. A division-step instruction might be more likely.
Okay, no problem. For now I will use a little subroutine for division when needed. MUL would be more useful anyway, I guess (e.g. for calculating the pixel address inside a window with arbitrary size).
BigEd wrote:
So, adding the necessary states to handle JSR (zp, x) isn't something I'm likely to tackle.
Understandable. So no chances then for the 65816 instructions 'JMP (abs,x)' and 'JSR (abs,x)'?
Any hopes for 'BRA' and 'BSR'?
'PSH/PLL zp'?
Just kidding. Don't get me wrong, please, I admire your work and I can see the problem. Oh dear, I wish I was able to do a little bit of FPGA programming myself, but I'm too dumb for this. No experience at all. Wouldn't even now how and where to start.
My apologies for bugging you.
Arlet wrote:
The cycle count is identical to the NMOS 6502
Done that. How about the additional clock cycle on page boundary crossing (e.g. 'LDA abs, x' and also 'Bcc')? Still the same?
ElEctric_EyE wrote:
The next board I make ..
Wish I had one of those. Good luck with it!
Finally (?) there is one question I'd like to ask regarding the extended register set:
Can I assume for now that registers A, X, Y, and S correspond to r0, r1, r2, and r15 respectively?
I'd also like to add that I do not expect any specification or detail mentioned here or in other threads to be set in stone. This is a work in progress, and the good thing about FPGAs and emulators is that you can change them again and again.
So, for the next couple of days, I will be working on a new version of the 65org16 emulator, this time written in x86 assembly. (I've noticed the old one being too slow.) A resolution of 320x200x16 will function as a test output. In addition I've also started converting some basic standard kernel routines to 65org16, but I don't know yet how far I can get.
Thanks again for your help.
Miles
BigEd wrote:
Please consider posting something in the Introduce Yourself thread
Uhm, well, I'm usually rather shy. Let's see...