|
|
|
|
|
by cmrdporcupine
1470 days ago
|
|
I'll defer to you I guess, as you seem to know more about this than me. The only thing is searching through the 6502.org forums I don't see a consensus on this?Plenty of people talking about the advantages of MVN/MVP for bulk transfers. I seem to recall doing the cycle counting myself at one point, too, and finding it advantageous. One neat trick (I remember reading about from Alan Cox I believe) if you have control over the hardware is to memory map I/O devices like serial input / output such that incrementing addresses starting at a given address all point to the same physical device/register. E.g. allocate 256 contiguous bytes in your memory map to point to the same thing. This way you can do bulk I/O transfers to/from memory using MVP/MVN instead of "get a byte, put a byte" instruction by instruction. |
|
https://forum.vcfed.org/index.php?threads/performance-of-lo-...
Port IO Read Speed : 219.39 KB/s
MMIO Read Speed : 310.77 KB/s
Some variants of XTIDE hardware also implement this, as does the free bios.