
                             R o c k N E S 
                  NES videogame emulator and .NSF player
                              for Windows
                         ---------------------
                           1998-2016 Zepper
                           version 5.25 32bit
                           July 22nd 2016
                         ---------------------


                              U S E R ' S
                              M A N U A L


                        (use a monospaced font)

                      http://rocknes.web.fc2.com
                          fx3rnes@hotmail.com

         +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
         |  #NESdev forum - topic for feedback and comments:   |
         |  http://forums.nesdev.com/viewtopic.php?f=3&t=14097 |
         +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+

   LICENSE AGREEMENT [january 2010, last update on march 2016]

   * You're NOT allowed to hack/modify RockNES for _whatever_ purpose.
   * RockNES is freeware, targeted for home use.
   * It can be distributed freely, provided that no changes were made in the
 original package.
   * Be aware that most popular NES games are still copyrighted with 
 all rights reserved. In most cases, distributing ROM images of such games
 infringes copyright. Please, do NOT distribute the RockNES software along
 with infringing ROMs, including any hardware BIOS.
   * No warranty. Use it at your own risk.
   * The official package contains only the following files:
       +---------------------------------------------------------------+
       | RockNES.exe -- The NES emulator.                              |
       | rocknes.txt -- This document.                                 |
       | oldnews.txt -- Log of updates.                                |
       | alleg44.dll -- Allegro library, http://alleg.sourceforge.net/ |
       | zlib1.dll   -- zLib library, http://zlib.net/                 | 
       +---------------------------------------------------------------+
   
   * If you disagree with these terms, DELETE THIS SOFTWARE NOW!


 What's new for version 5.25 (07/22/2016)
 ----------------------------------------
 - Reworked APU sound output mixing, added a high-pass filter for true signed samples.
 - Added an easy sound sample interpolation (more bass).
 - Fixed an obscure bug restoring APU savestates.
 - Fixed a few color styles by using a non-linear algorithm.
 - Fixed NSF visualizer in scanlined modes.
 - Other cosmetic changes and minor fixes.
 - Documentation updated.

   * Read "oldnews.txt" for the full history of updates.
 
 ---------------------------------------------------------------------------
   = KNOWN EMULATION PROBLEMS =

 - The motion blur effect shouldn't be enabled in scanlined modes.
 - The .NSF player always runs at 60Hz.
 - A few .NSF don't return from the INIT routine, causing a deadlock.
 - Famicom Disk System support is partial and mostly incomplete.
 - Sound skipping.
 - Old NES demos may stop execution due to the non-zero values in the RAM on power up.
 - There's a small chance of a deadlock while playing .NSF files.

   = NOTICE! =

 - No plans for PAL games (50Hz) and any other NES hardware or input devices.
 - No plans for NES 2.0 header, as it requires a major emulator rewrite.
 ---------------------------------------------------------------------------


 Table of contents
 
 1. Description
     Notes.
     First run.
     NES memory overview.
     Supported features.
     Unemulated hardware/features.

 2. Player controls
     Hotkeys and shortcuts.

 3. Using the GUI
     Screen sizes and modes.
     Audio options.
     Playing NSF music files.
     Palettes and color styles.
     NES memory dumping.

 4. NES header format
     The iNES format/header issue.

 5. VS System

 6. Famicom Disk System

 7. The PRG ROM disassembler

 8. CREDITS (no special order)

 [==========================================================================]

 1. Description
 --------------

 	RockNES emulates the Nintendo Entertainment System videogame, also known
 as "NES". Compiled and tested under Windows 7 only, it's fully coded in C, uses
 the Allegro library (audio, video and PC input devices), plus the zLib library
 for loading compressed files.
 	Compiled using Orwell's Dev-C++ UI with GCC 4.8.1 32bit.


	   NOTES
           -----

 - There's no benchmark for a minimal PC hardware requirement. Modern PCs should
 run it without problems. No need of a powerful video card.
 - The configuration file "rocknes.ini" is loaded on startup and auto generated
 when closing RockNES. If you experience annoyances, delete the file and restart.
 - Compressed files are supported, even for loading your saved progress.
 - Certain ascii characters on file names (accents like ,, and more) are NOT
 supported.
 - RockNES can start a game from the command prompt, but no command line switches
 are available.


           First run
           ---------

	When the GUI bar appears, pick an option! 
	Usually you go to [Game]->Load...
 	Files must bring a valid header of 16 bytes.
        The supported files are:

           .NES -- defaults for NES/Famicom games.
           .FDS -- defaults for Famicom Disk System games.
           .NSF -- ripped music code.

         +-----------------------+
         |  NES memory overview  |
         +-----------------------+

          CPU 
          $0000-$07FF: RAM.
          $0800-$1FFF: Mirrors of $0000-$07FF.
          $2000-$2007: PPU registers.
          $2008-$3FFF: Mirrors of $2000-$2007.
          $4000-$4017: APU registers, except $4014 (OAM DMA) and $4016 (inputs).
          $4018-$5FFF: Usually assigned by the cartridge, mapper controlled.
          $6000-$7FFF: Usually PRG RAM or backed battery data.
          $8000-$FFFF: Usually PRG ROM banks.

          PPU
          $0000-$1FFF: CHR RAM or CHR ROM pages.
          $2000-$2FFF: Nametable data.
          $3000-$3E1F: Mirrors of $2000-$2FFF.
          $3F00-$3F1F: Palette (not RGB values).
          $3F20-$3FFF: Mirrors of $3F00-$3F1F.


         +--------------------+
         | Supported features |
         +--------------------+

   - 6502 CPU + APU + PPU emulation, under the NTSC defaults.
   - Unofficial CPU opcodes.
   - A few unofficial CPU opcodes (NOPs).
   - Joypads 1 and 2.
   - Konami VRC6 sound expansion.
   - Partial VS System support.
   - Backed battery / PRG RAM.
   - Partial Famicom Disk System support, emulated as mapper 20.
   - NSF music files are emulated as mapper 256.
   - Supported mappers: 0,1,2,3,4,5,7,9,10,11,13,15,16,18,19,20,21,22,23,24,25, 
 26,32,33,34,40,41,42,43,44,46,48,57,58,64,65,66,67,68,69,70,71,72,73,75,76,78,
 79,83,85,86,88,89,90,91,92,93,94,97,99,101,110,113,117,118,119,151,160,180,184,
 187,189,211,225,226,227,228,229,230,231,232,233,234,235,240,243,246,255,256.
   - Joypad data logging for replays.
   - Ability to save/load your progress anytime (also known as "savestates").
   - Complete user's interface (GUI) and configuration file "rocknes.ini".
   - CPU and virtual cartridge data (PRG/CHR) modifying.
   - Sound recording in WAV format.
   - CPU 6502 disassembler.
   - Stereo sound output.
   - Famiclone-style sound output.
   - Various game screen upscalers 2x, 3x, 4x, and 4.5x, within stretched,
 interpolated, pixelated and scanlined modes.
   - Screen triple buffering in full screen and vertical retrace sync.
   - Motion blur screen filtering.
   - PPU/CPU memory dumping.
   - Palette RAM viewer.

        
         +-------------------------------+
         | Unsupported hardware/features |
         +-------------------------------+

   - PAL emulation (50hz).
   - Famicom, Dendy and other hardwares.
   - Zapper, Power Pad and other input devices.
   - 3rd and 4th joypad.
   - VS Dualsystem/Playchoice-10 upper monitor, requires z80 CPU emulation.
   - Sound expansions like MMC5, VRC7 or Namco N109.
   - MMC5 split screen mode, used only by the game "Uchuu Keibitai SDF".
   - Game Genie codes.

 
 [==========================================================================]

 2. Player controls
 ------------------

 > Default settings:

    player 1 -> Input device is KEYBOARD.
    player 2 -> No input device.

   [KEYBOARD]
    D-pad + = Keyboard arrows.
    B       = Z key.
    A       = X key.
    SELECT  = Tab key.
    START   = Enter key.


   [JOYSTICK SETUP]
    D-pad + = joystick D-pad.
    B       = button 2.
    A       = button 1.
    SELECT  = button 3.
    START   = button 4.

        <<--------------------------------------------------------->>
           Hotkeys

  GUI call
  ========
  <ESC> Swap to GUI. 
  While in the GUI, the following shortcuts can be used:
  		*ctrl+X or <F11> to quit to OS;
  		*ctrl+L to load a ROM.


  Full screen and fast forward
  ============================
  <TILDE> fast forward *if your PC is fast enough for it*.
  <Alt>+<Enter> switches between fullscreen and windowed mode.


  Frames per second visibility
  ============================
  <F1> toggles FPS display (Frames Per Second).


  Savestates
  ==========
  <F2> save state.
  <F3> slot select, up to 15 (extensions rs0, rs1, rs2... rsa, rsb... rsf).
  <F4> restore state.


  RESET
  =====
  <F5> soft reset, press shift+<F5> for hard reset.

 
  Famicom Disk System keys
  ========================
  <F6> disk swap (Famicom Disk System only).
  <F7> disk insert/eject (Famicom Disk System only).
  <F8> in$ert coin (VS System only).


  Gameplay recording/screenshot keys
  ==================================
  <F9> movie recording.
 <F10> movie play.
 <F11> quit to OS with no mercy.
 <F12> screenshot (PPU output). 
    shift+<F12> to snap off the entire Windows desktop.


  Screen size and mode selection
  ==============================
  <1>  reset to the original size (256x240).
  <2>  cycle between 1x, 2x, 3x, 4x and 4.5x modes.
  <3>  cycle between normal,interpolated,scanlined and pixelated modes.
  <4>  toggles normal->stretched modes.
  <5>  changes the color style. 
    shift+<5> to go backwards.    

 [==========================================================================]

 3. Using the GUI
 ----------------

 Note! The symbol > denotes a submenu for it.


       [ |!|  Game   CPU   Misc   Options   ?  ]
         +-----------------------+ 
 short   | Load another game     | same of Load ROM.
  cuts   | Restart the game      | same of Soft RESET.
         +-----------------------+ 
         | Set screen size...   >| shortcuts for most used modes.
         | Save state            | Saves your progress anytime.
         | Restore state         | Restore your progress.
         | View game information | same of view header.
         | Quit!                 | Close the program.
         +-----------------------+


       [  !  |Game|  CPU   Misc   Options   ?  ]
             +----------------+ 
             | Load...        | File select (NES,NSF,FDS,ZIP,GZ).
             | Header info    | View header.
             +----------------+
             | Take screenshot| Screenshot saved as bitmap (BMP).
             | Audio recorder | WAV files at 48000hz, 16bit.
             | Quit           | Close the program.
             +----------------+


       [  !   Game  |CPU|  Misc   Options   ?  ]
                    +------------------+
                    | Reset            | Soft reset.
                    | Hard reset       | Hard reset, power off->on.
                    +------------------+
                    | Save state       | Save your progress.
                    | Restore state    | Restore your progress.
                    +------------------+
                    | PRG disassembler | PRG ROM disassembler and CPU state.
                    | Set address...   | An alternate interface.
                    +------------------+
                    | View CPU state   | Registers and banks.
                    | Memory dump...  >| Saves NES memory to disk, see below!
                    +------------------+

       +-------------+ 
       | RAM         |  (*.ram) NES RAM memory $0000-$07FF.
       | $6000-$7FFF |  (*.wrm) Usually PRG RAM or backed battery data.
       | $8000-$FFFF |  (*.p8f) PRG ROM data.
       |_____________| 
       | PRG ROM     |  (*.rom) PRoGram ROM data (cartridge).
       | CHR ROM     |  (*.chr) CHaRacter ROM data (cartridge).
       |_____________|
       | CHR RAM     |  (*.ppu) Character RAM data (PPU).
       |_____________|
       | Palette RAM |  (*.plt) Color look-up table $3F00-$3F1F, 32 bytes long.
       | Nametables  |  (*.nam) Tiles and color attributes, 4 x $400 bytes.
       | Sprites     |  (*.oam) Also known as sprite RAM, 256 bytes long.
       +-------------+


       [  !   Game   CPU  |Misc|  Options   ?  ]
                          +----------------------+
                          | Video resolution... >| sets the screen size.
                          +----------------------+
                          | Movie...            >| movie stop, play, status.
                          | Palette...          >| .PAL files and colors.
                          +----------------------+
                          | PRG ROM patching     | Modify any PRG ROM value.
                          | PRG ROM corruption   | Corrupts a portion of memory.
                          | CPU value modifier   | Modify any CPU value.
                          +----------------------+


       [  !   Game   CPU   Misc  |Options|  ?  ]
                                 +------------------+
                                 | Input devices... | Input device select.
                                 | Audio settings   | Sound options.
                                 +------------------+
                                 | Screen size      | Select game screen size/mode.
                                 | Buffering method | Normal or triple buffering.
                                 +------------------+
                                 | Set directories  | Configure directories.
                                 | General settings | A couple of other options.
                                 +------------------+
 

       [  !   Game   CPU   Misc   Options  |?| ]
                                           +------------------+ 
                                           | System info      | Video/audio/inputs.
                                           | Video info       | Video context.
                                           +------------------+ 
                                           | About RockNES... | Version info and copyright.
                                           +------------------+ 

        <<--------------------------------------------------------->>
           Screen sizes and modes

 - A blitter is a screen upscaler with optional filtering. The original NES PPU has
 only 256x240 pixels, but in old TVs, only 256x224 pixels are visible. That's because
 of overscan effect and the own TV borders.
 - The triple buffering mode minimizes the screen tearing effect/flickering. It always
 requires fullscreen, you can't switch to a windowed mode.
 - Available upscalers are listed below.

  0 - ORIGINAL 256x240 
  1 - ORIGINAL 256x240 INTERPOLATED 
  2 - 2x SIZE 512x480 
  3 - 2x SIZE 512x480 INTERPOLATED
  4 - 2x SIZE 512x480 SCANLINED 
  5 - 2x SIZE 512x480 PIXELATED 
  6 - 2x STRETCHED 640x480 
  7 - 2x STRETCHED 640x480 SCANLINED 
  8 - 2x STRETCHED 640x480 PIXELATED 
  9 - 3x SIZE 768x720 
 10 - 3x SIZE 768x720 INTERLACED
 11 - 3x SIZE 769x720 SCANLINED
 12 - 3x SIZE 768x720 PIXELATED
 13 - 3x STRETCHED 960x720
 14 - 3x STRETCHED 960x720 SCANLINED
 15 - 4x SIZE 1024x960 
 16 - 4x SIZE 1024x960 INTERPOLATED 
 17 - 4x SIZE 1024x960 SCANLINED 
 18 - 4x SIZE 1024x960 PIXELATED 
 19 - 4x STRETCHED 1280x960 
 20 - 4x STRETCHED 1280x960 SCANLINED 
 21 - 4.5x SIZE 1152x1080 
 22 - 4.5x SIZE 1152x1080 SCANLINED FULL 
 23 - 4.5x SIZE 1152x1080 SCANLINED HALF 
 24 - 4.5x STRETCHED 1440x1080 
 25 - 4.5x STRETCHED 1440x1080 SCANLINED

 
                      AVAILABLE MODES
 -------+------------+---------------+
  SIZE  | RESOLUTION | S | I | L | P |
 =======+============+===+===+===+===+
   1x   |  256x240   |   | X |   |   |
   2x   |  512x480   | X | X | X | X |
   3x   |  768x720   | X | X | X | X |
   4x   | 1280x960   | X | X | X | X |
  4.5x  | 1152x1080  | X |   | X |   |
 ====================================+
 S = stretched mode (4:3).
 I = interpolated (even/odd lines, 2 frames).
 L = scanlined.
 P = pixelated.


        <<--------------------------------------------------------->>
           Audio options

 [x] Sound output...........: enable/disable sound output.
 [ ] Use stereo mode........: enables stereo mode.
 [ ] Use famiclone style....: swaps pulse waves duty cycles to sound like famiclones.
 [ ] Use unsigned samples...: use unsigned samples, no high-pass filtering is applied.
 [ ] Use interpolation......: an easy sound sample interpolation, more bass.

 
        <<--------------------------------------------------------->>
           Playing NSF music files

 - NSF is a piece of sound music code, usually ripped from .NES files or created by a
 music sequencer like Famitracker.
 - During the playback, coloured circles are drawn in the screen.

     +-----------------------------+
     | dark blue..: pulse wave #1  |
     | light blue.: pulse wave #2  |
     | red........: triangle wave  | normal APU
     | white......: noise wave     |
     | green......: DMC playback   |
     +-----------------------------+
     | dark pink..: VRC6 square #1 |
     | light pink.: VRC6 square #2 | VRC6 sound
     | orange.....: VRC6 sawtooth  |
     +-----------------------------+


 ** KEYS:

     keyboard arrows: change tracks, <-PREVIOUS, ->NEXT
     ENTER..........: plays the current track.

 ** NOTEs: a) You can use savestates. :)
           b) There's no way of stopping a track. :(


        <<--------------------------------------------------------->>
           Palettes and color styles

 - RockNES has a 16bit RGB palette created from the Playstation (PSX) game
 "Rockman Complete Works". The missing entries were filled up from a palette
 provided by Chris Covell. However, the #nesdev palette is now the default
 since it looks _much_ better and it's more accurate.
 - Enable this option in [Misc]->General settings.
 - Here's the palette submenu.


 [  !   Game   CPU  |Misc|  Options   ?  ]
                    +-----------------------+
                    | Video resolution...  >| 
                    | Movie...             >+---------------------+
                    | Palette...           >| Load palette        |
                    |_______________________| Save palette        |
                    | PRG ROM patching      | Set default palette |
                    | PRG ROM corruption    |_____________________|
                    | CPU value modifier    | Color style         |
                    |_______________________|_____________________|
                                            | VS palette tables   |
                                            | VS RGB palettes     |
                                            |_____________________|
                                            | View palette RAM    |
                                            |_____________________|


 - RGB palette files must be 192 bytes long, and 3 bytes compose a RGB value, so
 we have 64 RGB entries. Color emphasis palettes are auto generated! No need
 of storing them together with the palette file.


 * COLOR STYLE *
 ***************

 => You can change the game color style!
 
     0. Default colors.........: Normal palette.
     1. Red, green and blue....: shades of red, green and blue only.
     2. Game Boy (green).......: Game Boy green scale.
     3. Game Boy (green)(alt)..: Game Boy alternate green scale.
     4. Game Boy (green)(alt+).: adds brightness correction.
     5. Game Boy (alt).........: Game Boy 4 colors - black, green, blue and white.
     6. Game Boy (alt+)........: adds brightness correction.
     7. Game Boy (grayscale)...: Game Boy 4 shades of gray.
     8. Black & white..........: 2 colors.
     9. Black & white+.........: black, white and gray.
    10. Red emphasis mania.....: deemphasis green and blue.
    11. Green emphasis mania...: deemphasis red and blue.
    12. Blue emphasis mania....: deemphasis red and green.
    13. Grayscale..............: monochrome.
    14. Grayscale (alt)........: monochrome with brightness correction.
    15. Grayscale (alt)(neg)...: negative monochrome.
    16. Sepia..................: reddish-brown color.
    17. Sepia (neg)............: the negative color of sepia (blue+white).
    18. Mushroom...............: shifted colors.
    19. Royal Yellow...........: shades of yellow.
    20. Navy Blue (Crayola)....: shades of blue.
    21. Spanish Red............: shades of red.
    22. Plant Green............: shades of green.
    23. Magenta Mask...........: shades of magenta.

 => These options are located at GUI [Misc] -> Palette... -> Color style.
 => Press key 5 to cycle through them. Use +alt to go backwards.


 [==========================================================================]

 4. .NES file header format
 --------------------------

 > It's composed by 16 bytes at the beginning of file.
 Here's an easy description.

    +--------+------+------------------------------------------+
    | Offset | Size | Contents                                 |
    +--------+------+------------------------------------------+
    |   0    |  4   | NES + $1A                                |
    +--------+------+------------------------------------------+
    |   4    |  1   | Number of 16kib PRG ROM banks.           |
    +--------+------+------------------------------------------+
    |   5    |  1   | Number of 8kib CHR ROM banks.            |
    +--------+------+------------------------------------------+
    |   6    |  1   | Control [lower byte]                     |
    |        |      |   %mmmmVTSM                              |
    |        |      |    |  ||||+- 0=Horizontal mirroring      |
    |        |      |    |  ||||   1=Vertical mirroring        |
    |        |      |    |  |||+-- 1=Backed battery            |
    |        |      |    |  ||+--- 1=Trainer data (512 bytes)  |
    |        |      |    |  |+---- 1=Four screen mirroring     |
    |        |      |    |  |   (overrides H/V mirroring flag) |
    |        |      |    +--+----- Low 4 bits of mapper number |
    +--------+------+------------------------------------------+
    |   7    |  1   | Control [upper byte]                     |
    |        |      |   %MMMM--PU                              |
    |        |      |    |  |  |+- 1=VS System                 |
    |        |      |    |  |  +-- 1=Playchoice-10 system      |
    |        |      |    +--+----- High 4 bits of mapper number|
    +--------+------+------------------------------------------+
    |  8-15  |  8   | Reserved, must be zeroes. Dirty headers  |
    |        |      | bring garbage here, be warned!           |
    +--------+------+------------------------------------------+

     The iNES header issue
    =======================

    Taken from http://fms.komkon.org/iNES/

    "The idea to write a NES emulator originated from Alex Krasivsky who found
 some Famicom programming information on the Net and wrote the initial code. At
 some point, Alex lost interest in the project, while I eventually rewrote the
 code, made it closely mimic the quirks of the original hardware, and expanded
 it to support many different cartridge types and hardware add-ons. 
    At the time of iNES release in 1996, there was only one other NES emulator,
 Pasofami, written by a Japanese author and really difficult to use. iNES became
 the first NES emulator usable by a non-expert, and also the first emulator to
 use the .NES cartridge file format".


 [==========================================================================]

 5. VS System
 ------------

 > Quote from http://en.wikipedia.org/wiki/Nintendo_Vs._Series/
 
 "The Nintendo VS Series was a series of arcade video games designed for 
 two player competitive play using the VS. UniSystem or VS. DualSystem, arcade
 system boards based on the Nintendo Entertainment System. Many of these 
 stand-up or sit-down arcade machines had two screens and controls joined at an
 angle. These games were arcade ports of home video games for the Nintendo
 Entertainment System, thus they could be sold cheaply to arcades in the late
 1980s".

 ** NOTES!

 - Once you load a game, choose a new RGB palette OR a color look-up table. Go
 at [Misc]->Palette and pick an option. Game titles are just references.
 - Press <F8> to insert coins. DIP switches are not supported.
 - Only games in .NES format are supported.


 [==========================================================================]

 6. Famicom Disk System
 ----------------------

 - It's a peripheral for the Nintendo Family Computer console in Japan. It was a
 unit that used proprietary floppy disks (called "Disk Cards") for data storage.
 Currently, the disk images were poorly dumped, missing important data. Note an
 effort for emulating these games.
 - Firstly, the Famicom Disk System emulation requires the BIOS file disksys.rom
 (google it) and put it together with the RockNES binary. Supported games use
 the .FDS extension. 

 * Once you load a game, the BIOS initializes the system. Once the title screen
 appears, you may be prompted to switch the disk side. Press <F7> to eject the
 virtual disk, then press <F6> to change the virtual disk side, then press <F7>
 again to insert the disk.

 * The support for FDS emulation is partial and preliminary, no extra sound.
 
 [==========================================================================]

 7. The PRG ROM data disassemblers
 ---------------------------------

 ** NOTE that there's no support for debugging, such as inserting breakpoints
 or watching certain RAM or other memory locations.


 ##################################
 # [1] Disassembler overview      #
 ##################################

 +------------------------------------+
 |$8000 *A=90, X=05, Y=00, S=FF, P=A5 |  -> CPU registers: PC, A, X, Y, S, P.
 |PRG bank 08 [$1C000]                |  -> PRG ROM bank number and file offset.
 |+----------------------------------+| 
 ||8000 78       SEI                 || 
 ||8001 D8       CLD                 ||
 ||8002 A9 10    LDA #$10            || 
 ||8004 8D 00 20 STA $2000           ||
 ||8007 A2 FF    LDX #$FF            ||
 ||8009 9A       TXS                 ||
 ||800A AD 02 20 LDA $2002           ||  -> 6502 program code.
 ||800D 10 FB    BPL $800A           ||
 ||800F AD 02 20 LDA $2002           ||
 ||8012 10 FB    BPL $800F           ||
 ||8014 A0 FE    LDY #$FE            ||
 ||8016 A2 05    LDX #$05            ||
 ||8018 BD D7 07 LDA $07D7, X        ||
 ||801B C9 0A    CMP #$0A            ||
 ||801D B0 0C    BCS $802B           ||
 ||801F CA       DEX                 ||
 |+----------------------------------+|
 | BASE ADDRESS SELECT:               |
 |( )$4000 ( )$5000 ( )$6000 ( )$7000 |  -> CPU base address selection.
 |(o)$8000 ( )$9000 ( )$A000 ( )$B000 |
 |( )$C000 ( )$D000 ( )$E000 ( )$F000 |
 +------------------------------------+

 > If you select $8000, the entire PRG ROM bank at $8000-$8FFF is disassembled.
 > Click "Refresh" to disassemble the current selected CPU region.
 > This feature is read-only, so you cannot modify anything from here.

 ##################################
 # [2] Custom disassembler mode   #
 ##################################

 +---------------------------------------------------+
 |+-------------------------------------------------+|
 || Disassembler                                 [X]||
 |+-------------------------------------------------+|
 |                                                   |
 |  Base address:                                    |
 |   8000___ [Refresh] [o]CPU  [ ]ROM     [Save]     |
 |                                                   |
 |+---------------------------------+ +------------+ |
 ||8000 78       SEI                | |PC=$8057    | |
 ||8001 D8       CLD                | | A=$90      | |
 ||8002 A9 10    LDA #$10           | | X=$05      | |
 ||8004 8D 00 20 STA $2000          | | Y=$00      | |
 ||8007 A2 FF    LDX #$FF           | | S=$FF      | |
 ||8009 9A       TXS                | | P=$A5      | |
 ||800A AD 02 20 LDA $2002          | |            | |
 ||800D 10 FB    BPL $800A          | |$6000 = $FF | |
 ||800F AD 02 20 LDA $2002          | |$8000 = $00 | |
 ||8012 10 FB    BPL $800F          | |$A000 = $01 | |
 ||8014 A0 FE    LDY #$FE           | |$C000 = $02 | |
 ||8016 A2 05    LDX #$05           | |$E000 = $03 | |
 ||8018 BD D7 07 LDA $07D7, X       | |            | |
 ||801B C9 0A    CMP #$0A           | |            | |
 ||801D B0 0C    BCS $802B          | |            | |
 ||801F CA       DEX                | |            | |
 |+---------------------------------+ +------------+ |
 +---------------------------------------------------+

 > It's much like the previous one with a different layout. The PRG bank
 numbers are displayed. Usually, a value of $FF indicates open bus.
   * Switch to CPU for disassembling data from any CPU space.
   * Switch to PRG for disassembling using ROM data address.
   * Click [Save] to write the disassembled data into a text file.

 > NOTE: PRG ROM banks are disassembled within 4096 bytes ($1000).
 Since the disassembler cannot cross the page, the output will always start at
 base address $8000, $9000, $A000 etc., ignoring the offset.


 [==========================================================================]

 8. CREDITS (no special order)
 -----------------------------

 NesDev community
 http://forums.nesdev.com
 http://wiki.nesdev.com/w/index.php/Nesdev_Wiki

 gcc (GCC) 4.8.1
 Copyright (C) 2013 Free Software Foundation, Inc.

 The Dev-C++ resource site
 http://www.bloodshed.net/dev

 Orwell Dev-C++
 The main site of the 2011 Dev-C++ fork
 http://orwelldevcpp.blogspot.com.br/

 Allegro library, by Shawn Hargreaves
 http://alleg.sourceforge.net/

 Alastair Bridgewater - author of Darcnes, a NES emulator.
 
 Jeremy Chadwick
 http://jdc.koitsu.org/

 unzip.c -- IO for uncompress .zip files using zlib
 Version 1.01h, December 28th, 2009
 Copyright 1998-2009 Gilles Vollant

 Quietust
 http://www.qmtpro.com/~nes/nintendulator/

 Marat Fayzullin
 http://fms.komkon.org

 FCEUX
 http://www.fceux.com/web/home.html 

 [=========================================================================]
EOF