fix flags.

This commit is contained in:
Kelvin Sherlock 2016-12-25 02:42:28 -05:00
parent 1836d0d1ce
commit 518233d71f
2 changed files with 2 additions and 3 deletions

View File

@ -399,7 +399,6 @@ void disassembler::process(uint8_t byte) {
case 0xc2: // REP
_flags |= (_arg & 0x30);
break;
break;
case 0xe2: // SEP
_flags &= ~(_arg & 0x30);
break;

View File

@ -24,12 +24,12 @@ class disassembler {
void set_m(bool x) {
if (x) _flags |= 0x20;
else _flags &= 0x20;
else _flags &= ~0x20;
}
void set_x(bool x) {
if (x) _flags |= 0x10;
else _flags &= 0x10;
else _flags &= ~0x10;
}
void set_pc(uint32_t pc) { pc = _pc; }