mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-04-19 19:16:38 +00:00
Use portability macros in the 6502 disassembler.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user