Add "n2a03" (6502 CPU clone) to gdbstub for NES, and swapped 6502 PC/SP to SP/PC (#7440)

This commit is contained in:
Lucien Murray-Pitts 2020-11-07 06:57:56 +09:00 committed by GitHub
parent 4493d92a2c
commit 1b9b9c9509
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -281,8 +281,8 @@ static const gdb_register_map gdb_register_map_m6502 =
{ "X", "x", false, TYPE_INT },
{ "Y", "y", false, TYPE_INT },
{ "P", "p", false, TYPE_INT },
{ "PC", "pc", true, TYPE_CODE_POINTER },
{ "SP", "sp", true, TYPE_DATA_POINTER },
{ "PC", "pc", true, TYPE_CODE_POINTER },
}
};
@ -315,6 +315,7 @@ static const std::map<std::string, const gdb_register_map &> gdb_register_maps =
{ "m68020pmmu", gdb_register_map_m68020pmmu },
{ "z80", gdb_register_map_z80 },
{ "m6502", gdb_register_map_m6502 },
{ "n2a03", gdb_register_map_m6502 },
{ "m6809", gdb_register_map_m6809 },
};