diff options
| author | Anghelo Carvajal <anghelo.carvajal.14@sansano.usm.cl> | 2021-01-14 17:14:33 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-14 15:14:33 -0500 |
| commit | 9c2ad0c60bc565cfc9f7d675c76b1984ba66e738 (patch) | |
| tree | 8d292f2412b43675f4c0fac035e80c50e0be3a39 /src/code | |
| parent | 65e956a272a63d193fcefa916d95d5fe791ec072 (diff) | |
fixbaserom.py: Add support to v64 format and improve performance (#629)
* Add byte swap for v64 files
Signed-off-by: angie <angheloalf95@gmail.com>
* Reduce `len` function calls
Signed-off-by: angie <angheloalf95@gmail.com>
* Optimze a bit the byte-swapped v64 format
Signed-off-by: angie <angheloalf95@gmail.com>
* Strip the overdump before doing the byte-swap
The previous way wasted time by byte-swapping data that would be discarded anyway.
Signed-off-by: angie <angheloalf95@gmail.com>
* Swap twice the bytes per cycle to improve performance
Signed-off-by: angie <angheloalf95@gmail.com>
* Read and write 16 bytes at a time and specify explicit endianness
Reading more bytes per cycle allow to speed up the swapping proccess
Signed-off-by: angie <angheloalf95@gmail.com>
* Add v64 compatibility in the Readme
Signed-off-by: angie <angheloalf95@gmail.com>
* Read whole file as little endian and write it as big endian without the loop
Signed-off-by: angie <angheloalf95@gmail.com>
Diffstat (limited to 'src/code')
0 files changed, 0 insertions, 0 deletions
