-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
... |