Home | Forums | What's new | Resources | |
68k - 65c816 performance |
patroclus02 - May 26, 2006 |
antime | May 26, 2006 | |||
That's about what I expected. You'll get similar results comparing the 6502 and Z80 processors. |
patroclus02 | May 27, 2006 | |||
Example of this sequence: (Add with carry from memory to a register, then update memory location) SNES 65c816 (supposing one operand is already in acumulator) ADC #$xxxxxx STA #$xxxxxx GENESIS 68k (Supposing one operand is already in Dn register) ADD.w #$xxxxxx, Dn MOVE.W Dn, #$xxxxxx As far as I know, 68k can't add two values stored in memory, one of them must be in a register. As far as I know, 65c816 can only add to accumulator. Is it clearer now? Maybe what you were asking me is about the detail step-by-step exacution of the instructions?? |
Mask of Destiny | May 29, 2006 | |||
Your comparison isn't terribly fair because you're programming the 68K as if it was a 65c816. It's rare to use absolute long addressing on the 68K, using register indirect (An) or PC relative addressing. Furthermore since the 68K has 8 data registers it's uncommon to store a value back to memory after doing just a single operation on it. Also assuming that the source and destination address is the same and that you have no desire to update Dn you could just do: add.w Dn, #$xxxxxx Which I believe only takes a total of 16 cycles instead of 32 with the sequence you selected. For very simple operations on relatively large non-sequential set of memory locations the 65c816 might win out, but for any reasonably complex algorithm the 68K will kick 65c816 butt (witness the lack of games like Zero Tolerance or that Brazillian Duke3D game on the SNES without an extra processor in the cart). You really need to compare the implementation of an actual algorithm on the two processors to get a feel for the pros and cons of each. A simple operation like the example you gave has too many unknowns. |
Druid II | May 30, 2006 | ||||
Holy shit I'm seeing a ghost. |
Mask of Destiny | May 30, 2006 | ||||
Hmm??? I don't think I've died yet.... |
Druid II | May 30, 2006 | |||
Yeah but I haven't seen you post since AGES. I remember you were deving a bunch of interesting stuff back then, when you were a regular at the Sonic Cult too. |