Added disassembler support for the NMOS 6502 with illegal opcodes.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4966 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-02-06 16:04:46 +00:00
parent 2056097a91
commit 3b9032a7c4
13 changed files with 502 additions and 123 deletions

View File

@@ -1,15 +1,15 @@
/*****************************************************************************/
/* */
/* opctable.c */
/* opctable.c */
/* */
/* Disassembler opcode description table */
/* */
/* */
/* */
/* (C) 2000-2009 Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
/* (C) 2000-2011, Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
@@ -36,6 +36,7 @@
/* da65 */
#include "error.h"
#include "opc6502.h"
#include "opc6502x.h"
#include "opc65816.h"
#include "opc65c02.h"
#include "opc65sc02.h"
@@ -45,7 +46,7 @@
/*****************************************************************************/
/* Data */
/* Data */
/*****************************************************************************/
@@ -56,7 +57,7 @@ const OpcDesc* OpcTable = OpcTable_6502;
/*****************************************************************************/
/* Code */
/* Code */
/*****************************************************************************/
@@ -66,6 +67,7 @@ void SetOpcTable (cpu_t CPU)
{
switch (CPU) {
case CPU_6502: OpcTable = OpcTable_6502; break;
case CPU_6502X: OpcTable = OpcTable_6502X; break;
case CPU_65SC02: OpcTable = OpcTable_65SC02; break;
case CPU_65C02: OpcTable = OpcTable_65C02; break;
case CPU_HUC6280: OpcTable = OpcTable_HuC6280; break;
@@ -75,4 +77,4 @@ void SetOpcTable (cpu_t CPU)