Use portability macros in the 6502 disassembler.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2018-01-01 01:16:22 +00:00
parent eb40c0865e
commit d4c08b2a25
2 changed files with 11 additions and 11 deletions

View File

@ -144,7 +144,7 @@ namespace EightBit {
case 0b110:
throw std::domain_error("Illegal addressing mode");
default:
__assume(0);
UNREACHABLE;
}
}
@ -165,7 +165,7 @@ namespace EightBit {
case 0b110:
throw std::domain_error("Illegal addressing mode");
default:
__assume(0);
UNREACHABLE;
}
}
@ -188,7 +188,7 @@ namespace EightBit {
case 0b111:
return AM_AbsoluteX_dump();
default:
__assume(0);
UNREACHABLE;
}
}
@ -211,7 +211,7 @@ namespace EightBit {
case 0b111:
return AM_AbsoluteX();
default:
__assume(0);
UNREACHABLE;
}
}
@ -233,7 +233,7 @@ namespace EightBit {
case 0b110:
throw std::domain_error("Illegal addressing mode");
default:
__assume(0);
UNREACHABLE;
}
}
@ -255,7 +255,7 @@ namespace EightBit {
case 0b110:
throw std::domain_error("Illegal addressing mode");
default:
__assume(0);
UNREACHABLE;
}
}
@ -277,7 +277,7 @@ namespace EightBit {
case 0b110:
throw std::domain_error("Illegal addressing mode");
default:
__assume(0);
UNREACHABLE;
}
}
@ -299,7 +299,7 @@ namespace EightBit {
case 0b110:
throw std::domain_error("Illegal addressing mode");
default:
__assume(0);
UNREACHABLE;
}
}

View File

@ -286,7 +286,7 @@ std::string EightBit::Disassembly::disassemble(uint16_t current) const {
output << disassemble_AM_01(bbb, "SBC");
break;
default:
__assume(0);
UNREACHABLE;
}
break;
case 0b10:
@ -384,13 +384,13 @@ std::string EightBit::Disassembly::disassemble(uint16_t current) const {
}
break;
default:
__assume(0);
UNREACHABLE;
}
break;
case 0b11:
throw std::domain_error("Illegal instruction group");
default:
__assume(0);
UNREACHABLE;
}
//const auto& instruction = processor.getInstruction(content);