Klarth
Micro-optimizing a Z80 emulators' pipeline. **Unsafe code**
I'd try to skip the shift + or in favor of a single 2-byte read. I'm assuming these registers are contiguous in the array. Then all you need to do is use
BinaryPrimitives
to ensure the correct endian.259 replies
Micro-optimizing a Z80 emulators' pipeline. **Unsafe code**
You can't do this across the entire software being emulated, but you can for stretches if you have good detection. Software also tends to codegen in RAM, so you need to ensure that it's the same when you rerun cached x64 output.
259 replies