diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..a4c6524 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014 Antonio Maiorano + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..978ec33 --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ +# nes-disasm + +A command line disassembler for NES roms written in C++ + +# Example + + > nes-disasm "roms\Donkey Kong (JU).nes" + +Output: + + ; nes-disasm - Disassembler for NES roms + ; Author: Antonio Maiorano (amaiorano at gmail dot com) + ; Source code available at http://github.com/amaiorano/nes-disasm/ + + ; Input file: roms\Donkey Kong (JU).nes + ; PRG ROM size: 16384 bytes + ; CHR ROM size: 8192 bytes + ; Mapper number: 0 + ; Has SRAM: no + + $8000 207006 JSR $0670 + $8003 00 BRK + $8004 206406 JSR $0664 + $8007 00 BRK + $8008 207806 JSR $0678 + $800B 00 BRK + $800C 20B704 JSR $04B7 + $800F 00 BRK + $8010 20BC01 JSR $01BC + $8013 00 BRK + $8014 0108 ORA ($08,X) + $8016 08 .byte $02 + $8017 08 PHP + $8018 00 .byte $02 + $8019 00 BRK + $801A 0501 ORA $01 + $801C 00 BRK + ...