Show the 6502 Instruction Set
Show the 6502 Assembler
Show the 6502 Disassembler
The display shows all (yes its all there is) registers of a 6502/6510 CPU:
| ||PC||....||Program Counter|
| ||XR||....||X Register|
| ||YR||....||Y Register|
| ||SR||....||Status Register|
| ||SP||....||Stack Pointer|
The status register (SR) holds the following flags (from bit 7 to 0):
| ||I||....||Interrupt (IRQ disable)|
The line disassembler shows the current value of PC, the content of the according memory address (the next instruction followed by the operands, if any), and a disassembly of this instruction.
The cycle time display shows the ticks of exceeded CPU time (including extra cycles for branches page transitions).
Setting the Registers
Click a registers label to set its value.
Click on a SR flag to flip its value.
The emulator implements 64 k of memory for the full 16 bit address range.
The 6502's stack of 1 k range is located at 0100 to 01FF (hard wired).
Accessing the Memory
The button "look up mem #" offers a quick inspection of a 16 byte range around any address.
You may enter any amount of hex code into the memory inspector's pane and load it to the specified start address.
Further the memory inspector lets you inspect the memory in steps of 128 (0x80) bytes (half page). You may alter the display's content and load it back the emulator's memory. (Any figures prefixed by a colon ":" are ignored as line numbers.)
The "show ASCII" option shows the according ASCII characters at the left of each line (if applicable). Uncheck this when transfering memory to the disassembler.
Last there's an option to load the ROMs of the Commodore 64 (© CBM) to the according addresses (A000-BFFF, D000-FFFF) for all those who can't help nostalgia. (Note: The emulator does not implement the C64's bank switching feature.)
To produce any code use the 6502 Assembler at e-tradition.net.
About the Emulator
The emulator implements all legal instructions. Undefined opcodes are ignored (treated as NOP, No OPeration, with cycle time 0) no pseudo-opcodes are implemented.
For detailed information on the 6502/6510 see the 6502 instruction set.
The emulator's core is based on the 6510 emulation C source by Earle F. Philhower III for his "Commodore 64 Emulator v0.3" for Mac, © 1993-4, with some modification for exact cycle times.
The 6502 CPU script and the underlying C source are free software and may be redistributed and/or modified
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
any later version.
This program is provided for free and AS IS, therefore without any warranty;
without even the implied warranty of merchantability or fitness for a particular purpose.
The official 65xx Website (The Western Design Center Inc.): www.65xx.com
© Norbert Landsteiner 2005, e-tradition.net