A disassembler and (eventually, hopefully) assembler for the Microchip PIC instruction set, written in Swift.
Very experimental, incomplete, and untested. Currently only the disassembler is functional. And I only support the PIC10F20x instruction set for now.
The executable is called "picob".
$ swift run picob disassemble <path-to-hex.hex>
If you don't have a .hex file at hand, you can pass the --sample
flag to disassemble a hardcoded sample file:
$ swift run picob disassemble --sample
$ swift run picob --help
OVERVIEW: PIC instruction set assembler
USAGE: picob <command>
OPTIONS:
--version, -v Print version information and exit
--help Display available options
SUBCOMMANDS:
disassemble Disassemble a .hex file
Ole Begemann, oleb.net.
MIT. See LICENSE.txt.