1
0
mirror of https://github.com/lefticus/6502-cpp.git synced 2025-07-06 03:23:57 +00:00

Add NOP support and allow for unused symbols

This commit is contained in:
Jason Turner
2021-05-19 15:18:44 -06:00
parent f64fa3cce6
commit 49d68fe54c
3 changed files with 18 additions and 9 deletions

View File

@ -5,9 +5,6 @@
struct mos6502 : ASMLine
{
enum class OpCode {
unknown,
@ -41,6 +38,8 @@ struct mos6502 : ASMLine
ldy,
lsr,
nop,
ORA,
pha,
@ -92,6 +91,7 @@ struct mos6502 : ASMLine
case OpCode::ldx:
case OpCode::ldy:
case OpCode::lsr:
case OpCode::nop:
case OpCode::ORA:
case OpCode::pha:
case OpCode::php:
@ -144,6 +144,7 @@ struct mos6502 : ASMLine
case OpCode::ldx:
case OpCode::ldy:
case OpCode::lsr:
case OpCode::nop:
case OpCode::ORA:
case OpCode::pha:
case OpCode::php:
@ -229,6 +230,7 @@ struct mos6502 : ASMLine
case OpCode::bpl: return "bpl";
case OpCode::bcc: return "bcc";
case OpCode::bcs: return "bcs";
case OpCode::nop: return "nop";
case OpCode::unknown: return "";
}