https://github.com/dkogan/pic-decompiler
Decompiler for PIC16 binaries
https://github.com/dkogan/pic-decompiler
Last synced: 11 months ago
JSON representation
Decompiler for PIC16 binaries
- Host: GitHub
- URL: https://github.com/dkogan/pic-decompiler
- Owner: dkogan
- License: other
- Created: 2011-02-18T06:37:11.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2011-02-18T06:38:07.000Z (over 15 years ago)
- Last Synced: 2025-05-01T03:36:05.546Z (about 1 year ago)
- Language: Perl
- Homepage:
- Size: 129 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
This is a simple decompiler for 8-bit PIC microcontrollers. It takes in a
disassembled listing generated by gpdasm. It reads the header file supplied by
gputils (currently hard-coded for the PIC16F876a). Further,
addExtraRegisterMappings() establishes redundant register mappings not defined
in the header. The decompiler then traces the execution flow, expands the
program and data addresses, taking into account PCLATH and banking. It detects
functions and marks up execution branches. The output is another listing that is
hopefully much easier to read than the original.
The whole program is very immature and has many shortcomings (and likely
bugs). It IS mature enough to be generally useful, though.