Refactor bit set/get routines from processor class to lower level chip class.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2018-09-29 14:08:44 +01:00
parent de5a9963e0
commit 8d3551e681
10 changed files with 63 additions and 63 deletions

View File

@@ -448,11 +448,11 @@ std::string EightBit::Disassembler::flags(uint8_t value) {
output
<< flag(value, Intel8080::SF, "S")
<< flag(value, Intel8080::ZF, "Z")
<< flag(value, Processor::Bit5, "1", "0")
<< flag(value, Chip::Bit5, "1", "0")
<< flag(value, Intel8080::AC, "A")
<< flag(value, Processor::Bit3, "1", "0")
<< flag(value, Chip::Bit3, "1", "0")
<< flag(value, Intel8080::PF, "P")
<< flag(value, Processor::Bit1, "1", "0")
<< flag(value, Chip::Bit1, "1", "0")
<< flag(value, Intel8080::CF, "C");
return output.str();
}