Need a small byte swapping test routine
Posted: 13 Mar 2020 17:59
Could some kind soul write a test routine in assembly to do by swapping which is what would happen in HD11 etc when used on hard drives ?
Reason is, I'm just curious as to how long it would take a 8MHz CPU to do the byte swapping on I assume 512 bytes of data ? versus the same test on a 32MHz boosted CPU...
This boils down to if a boosted CPU can do a reasonably quick job at byte swapping, there may actually be no need for us to develop a byte swapping function in hardware for our IDE boards...Then let users simply tick the byte swap box in the driver, and even though it is a lot slower, if we can gain speed back with a faster CPU, we could just do that instead. But this is why I need on sort of benchmark tool so I can do the comparison...
Reason is, I'm just curious as to how long it would take a 8MHz CPU to do the byte swapping on I assume 512 bytes of data ? versus the same test on a 32MHz boosted CPU...
This boils down to if a boosted CPU can do a reasonably quick job at byte swapping, there may actually be no need for us to develop a byte swapping function in hardware for our IDE boards...Then let users simply tick the byte swap box in the driver, and even though it is a lot slower, if we can gain speed back with a faster CPU, we could just do that instead. But this is why I need on sort of benchmark tool so I can do the comparison...