mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-03-03 00:30:20 +00:00
Use portability macros in the 6502 disassembler.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
eb40c0865e
commit
d4c08b2a25
@ -144,7 +144,7 @@ namespace EightBit {
|
|||||||
case 0b110:
|
case 0b110:
|
||||||
throw std::domain_error("Illegal addressing mode");
|
throw std::domain_error("Illegal addressing mode");
|
||||||
default:
|
default:
|
||||||
__assume(0);
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -165,7 +165,7 @@ namespace EightBit {
|
|||||||
case 0b110:
|
case 0b110:
|
||||||
throw std::domain_error("Illegal addressing mode");
|
throw std::domain_error("Illegal addressing mode");
|
||||||
default:
|
default:
|
||||||
__assume(0);
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -188,7 +188,7 @@ namespace EightBit {
|
|||||||
case 0b111:
|
case 0b111:
|
||||||
return AM_AbsoluteX_dump();
|
return AM_AbsoluteX_dump();
|
||||||
default:
|
default:
|
||||||
__assume(0);
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -211,7 +211,7 @@ namespace EightBit {
|
|||||||
case 0b111:
|
case 0b111:
|
||||||
return AM_AbsoluteX();
|
return AM_AbsoluteX();
|
||||||
default:
|
default:
|
||||||
__assume(0);
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -233,7 +233,7 @@ namespace EightBit {
|
|||||||
case 0b110:
|
case 0b110:
|
||||||
throw std::domain_error("Illegal addressing mode");
|
throw std::domain_error("Illegal addressing mode");
|
||||||
default:
|
default:
|
||||||
__assume(0);
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -255,7 +255,7 @@ namespace EightBit {
|
|||||||
case 0b110:
|
case 0b110:
|
||||||
throw std::domain_error("Illegal addressing mode");
|
throw std::domain_error("Illegal addressing mode");
|
||||||
default:
|
default:
|
||||||
__assume(0);
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -277,7 +277,7 @@ namespace EightBit {
|
|||||||
case 0b110:
|
case 0b110:
|
||||||
throw std::domain_error("Illegal addressing mode");
|
throw std::domain_error("Illegal addressing mode");
|
||||||
default:
|
default:
|
||||||
__assume(0);
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -299,7 +299,7 @@ namespace EightBit {
|
|||||||
case 0b110:
|
case 0b110:
|
||||||
throw std::domain_error("Illegal addressing mode");
|
throw std::domain_error("Illegal addressing mode");
|
||||||
default:
|
default:
|
||||||
__assume(0);
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -286,7 +286,7 @@ std::string EightBit::Disassembly::disassemble(uint16_t current) const {
|
|||||||
output << disassemble_AM_01(bbb, "SBC");
|
output << disassemble_AM_01(bbb, "SBC");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
__assume(0);
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 0b10:
|
case 0b10:
|
||||||
@ -384,13 +384,13 @@ std::string EightBit::Disassembly::disassemble(uint16_t current) const {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
__assume(0);
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 0b11:
|
case 0b11:
|
||||||
throw std::domain_error("Illegal instruction group");
|
throw std::domain_error("Illegal instruction group");
|
||||||
default:
|
default:
|
||||||
__assume(0);
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
//const auto& instruction = processor.getInstruction(content);
|
//const auto& instruction = processor.getInstruction(content);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user