
                             R o c k N E S 
                  NES videogame emulator and .NSF player
                              for Windows
                         ---------------------
                           1998-2016 Zepper
                           version 5.24 32bit
                           June 26th 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 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/ |
       +---------------------------------------------------------------+
   
   * If you disagree with these terms, DELETE THIS SOFTWARE NOW!


 What's new for version 5.24 (06/26/2016)
 ----------------------------------------
 - Fixed sound playback with unsigned samples.
 - Added an option to save the last accessed folder as the main folder.
 - Added support for multiple files when recording music (like game 000.wav, game 001.wav and so on).
 - Changed the numbering system of multiple files from hexadecimal to decimal, except for savestate files.
 - Removed a few unused codes, plus cosmetic changes there and there.

   * 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.
 - 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
     Video resolution setup and blitters.
     Screen blitting (+interpolated mode) and config file.
     Screen filtering.
     Sound options.
     NSF playback.
     Triple buffering and Vertical retrace sync (vsync).
     Palettes and color styles.
     MMC3 IRQs.
     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 saved progress.
 - Certain ascii characters on file names (accents like ,, and more) are NOT
 supported by Allegro.
 - RockNES can start a game from the command prompt, but command line switches
 are not available.


           First run
           ---------

	When the blue GUI bar appears, pick an option! 
	Usually you go to [File]->Load ROM.
 	Files must have an header 16 bytes long. Supported files have the extensions:

           .NES -- default for NES/Famicom games.
           .FDS -- default for Famicom Disk System games.
           .NSF -- ripped music code from a .NES file.

         +-----------------------+
         |  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.
   - 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.
   - Savestates.
   - GUI and config file.
   - ROM data and CPU value modifying.
   - Sound recording in WAV format.
   - CPU 6502 disassembler.
   - Stereo sound output.
   - Famiclone style sound output.
   - Various PPU screen upscalers 1x, 2x, 3x, 4x, and 4.5x, with stretched,
 interpolated, pixelated and scanlined modes.
   - Video triple buffering in full screen, and vertical retrace sync.
   - Almost any NES PPU/CPU memory dumping.
   - Palette RAM viewer.

        
           Unsupported hardware/features
           -----------------------------

   - Unofficial CPU opcodes.
   - PAL emulation.
   - Famicom, Dendy and others.
   - Zapper, Power Pad and other input devices.
   - 3rd and 4th joypads.
   - VS Dualsystem.
   - Playchoice-10 upper monitor, requires z80 CPU emulation.
   - Sound expansions like MMC5, VRCVII or Namco.
   - MMC5 split screen mode, used only by Uchuu Keibitai SDF.
   - Game Genie codes (use the CPU value modifier).

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

 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

 <ESC> Swap to GUI. 

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

  <F1> toggles FPS visibility (Frames Per Second).
  <F2> save state.
  <F3> slot select, up to 15.
  <F4> restore state.

  <F5> soft reset, press shift+<F5> for hard reset.
  <F6> disk swap (Famicom Disk System only).
  <F7> disk insert/eject (Famicom Disk System only).
  <F8> in$ert coin (VS System only).

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

  <1>  reset to the original blitter (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.

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

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

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

 * The symbol > denotes a submenu for it.
 WARNING: the following diagrams may be slightly outdated.


       [ |!|  Game   CPU   Misc   Options   ?  ]
         +--------------------- 
 short   | Play another game..: same of Load ROM.
  cuts   | Restart the game...: same of Soft RESET.
         | The screen...      > shortcuts for most used modes.
         | Save my progress...: save state.
         | Restore my progress: load state.
         | View game info.....: same of view header.
         | Quit!..............: Close the program.
         +---------------------


       [  !  |Game|  CPU   Misc   Options   ?  ]
             +----------------- 
             | Load ROM.......: 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.
                    | Load state....: Restore your progress.
                    | Disassembler..: PRG ROM disassembler and CPU state.
                    | Custom... ....: An alternate interface.
                    | View CPU state: Registers and banks.
                    | Dump memory   : Saves NES memory to disk.
                    +----------------


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


       [  !   Game   CPU   Misc  |Options|  ?  ]
                                 +------------------
                                 | Input devices...: Input device select.
                                 | Sound...........: Sound options.
                                 | Directories.....: Paths for files.
                                 | PPU blitter.....: Screen upscalers.
                                 | Video buffering.: Triple buffering.
                                 | General settings: A couple of other options.
                                 +------------------


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


        <<--------------------------------------------------------->>
           Video resolution setup and blitters

 - A blitter is an image upscaler. The original NES PPU has 256x240 pixels, but
 in older TVs you would see 256x224 pixels. That's because of the top and bottom
 8 lines being clipped.
 - Triple buffering mode uses 3 backbuffers for drawing. It minimizes the screen
 tearing effect/flickering. It always uses fullscreen and you can't switch to
 windowed mode.

 ** NOTES:

 A. Press alt+Enter to switch between fullscreen and windowed modes.
 B. Fullscreen mode does NOT change your current desktop resolution.
 C. Windowed mode always have the program window fitting the game screen.
 D. RockNES does NOT save your current video resolution, but instead only the
 selected blitter and the screen mode (fullscreen or windowed).
 E. If you want a custom video mode, go at [Misc]->Screen resolution->Setup, and
 select AUTODETECT or AUTO FULLSCREEN/WINDOWED, and pick a 4:3 resolution like
 640x480 or 800x600. Be warned that all those modes in the list are NO WAY
 guaranteed to work! You take the risk of setting up a custom video mode!

        <<--------------------------------------------------------->>
           Screen blitting (+interpolated mode) and config file

  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

 S = stretched mode (4:3)
 I = interpolated (even/odd lines, 2 frames)
 L = scanlined
 P = pixelated

  MODE  | 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 |   |
 ====================================+

         <<--------------------------------------------------------->>
           Screen filtering

 - Currently, motion blur filtering is implemented. You can enable it at
 [Options]->General settings. It doesn't work good with scanlined modes.


        <<--------------------------------------------------------->>
           Sound options

 [x] Sound output...........: enable/disable sound output.
 [ ] Use stereo mode........: enables stereo mode.
 [ ] Use famiclone style....: swaps pulse waves duty cycles, like famiclones.
 [ ] Use unsigned samples...: use unsigned samples, no filtering.

 
        <<--------------------------------------------------------->>
           NSF music playback

 - NSF is a piece of code for sound generation only, usually extracted from
 games OR created by a music software (sequencer).
 - During the playback, coloured circles are drawn in the screen.

       dark blue..: pulse wave #1
       light blue.: pulse wave #2
       red........: triangle wave
       white......: noise wave
       green......: DMC ($4011 raw unsupported)
       dark pink..: VRC6 square #1 
       light pink.: VRC6 square #2
       orange.....: VRC6 sawtooth

 ** KEYS:

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

 ** NOTE: you can use savestates. :)


        <<--------------------------------------------------------->>
           Triple buffering and vertical retrace sync
 
 * NOTE: fast forward does NOT work in triple buffering mode!

 - RockNES uses two methods to avoid screen flickering: triple buffering and
 vertical retrace sync, or just "vsync". Both methods make the scrolling much
 smoother. Triple buffering works only in fullscreen, while vsync works in both
 windowed and fullscreen modes.
 
 * Enable triple buffering at [Options]->Triple buffering (needs a restart).
 * Enable vertical retrace sync at [Options]->General settings.
 * Check the current video setting at [?]->Video info.

  NOTICE! You're not able to activate both modes at same time! 
             Triple buffering overrides the vsync setting!


        <<--------------------------------------------------------->>
           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   ?  ]
                    +-----------------------+
                    | Screen resolution... >| 
                    | Movies...            >+------------------+
                    | Palettes...          >  Load palette     |
                    +-----------------------| Save palette     |
                    | PRG ROM modifier...   | Restore default  |
                    | PRG ROM corruption    |__________________|
                    +-----------------------| VS color tables  |
                                            | VS RGB palettes  |
                                            |__________________|
                                            | View palette RAM |
                                            |__________________|
                                            | Color style      |
                                            +------------------+


 - RGB palette files must be 192 bytes long. Three bytes compose a RGB value, so
 the palette has 64 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!
 
    00. Default colors...............: Normal palette.
    01. Red, green and blue..........: shades of red, green and blue only.
    02. Game Boy (green).............: Game Boy green scale.
    03. Game Boy (green)(alt)........: Game Boy alternate green scale.
    04. Game Boy (green)(alt+).......: adds brightness correction.
    05. Game Boy (alt)...............: Game Boy 4 colors - black, green, blue and white.
    06. Game Boy (alt+)..............: adds brightness correction.
    07. Game Boy (grayscale).........: Game Boy 4 shades of gray.
    08. Black & white................: 2 colors.
    09. 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.


        <<--------------------------------------------------------->>
          MMC3 IRQs

 - There are 2 known revisions of the MMC3 IRQ. If a game looks glitched, try
 the alternate version. Due to the internal PPU code and operations, a few
 games will be flickering or waving. As far as I know, there's no easy fix for
 the current PPU emulation code structure.

        <<--------------------------------------------------------->>
          NES memory dumping


 [  !   Game  |CPU|  Misc   Options   ?  ]
              |...
              +->Dump memory... -> 

    -> " 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.
       " PPU OAM     "  (*.oam) Also known as sprite RAM, 256 bytes long.

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

 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/ (Marat's website), here's a bit of
 history.

    "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".

 - Well, the "iNES" term is very popular as being the 16-byte header in .NES
 files.


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

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

 > Quote from the wikipedia (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