https://github.com/devinacker/swizzle
small utility for reordering address/data bits in ROM images
https://github.com/devinacker/swizzle
Last synced: 3 months ago
JSON representation
small utility for reordering address/data bits in ROM images
- Host: GitHub
- URL: https://github.com/devinacker/swizzle
- Owner: devinacker
- License: mit
- Created: 2023-07-23T21:00:24.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-23T21:02:28.000Z (almost 3 years ago)
- Last Synced: 2025-04-19T09:21:07.907Z (about 1 year ago)
- Language: C
- Size: 2.93 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING.txt
Awesome Lists containing this project
README
`swizzle` is a utility for reordering (swizzling) the address and/or data bits of a ROM image.
Usage: `swizzle [options] in_path out_path`
Supported options:
* `-h` / `--help` - show this information and exit
* `-a` / `--addr ` - specify address bit order (optional)
* `-d` / `--data ` - specify data bit order (optional)
* `-w` / `--word ` - specify number of bytes per word (default 1, max 4)
* `-b` / `--big` - use big-endian byte ordering
`` is a comma-separated list of 0-based bit indexes (comma separated, most significant first).
Example: to reverse the order of bits in each byte:
`swizzle -d0,1,2,3,4,5,6,7 in.bin out.bin`