mirror of
https://github.com/ksherlock/wdc-utils.git
synced 2024-12-12 04:29:05 +00:00
fix flags.
This commit is contained in:
parent
1836d0d1ce
commit
518233d71f
@ -399,7 +399,6 @@ void disassembler::process(uint8_t byte) {
|
|||||||
case 0xc2: // REP
|
case 0xc2: // REP
|
||||||
_flags |= (_arg & 0x30);
|
_flags |= (_arg & 0x30);
|
||||||
break;
|
break;
|
||||||
break;
|
|
||||||
case 0xe2: // SEP
|
case 0xe2: // SEP
|
||||||
_flags &= ~(_arg & 0x30);
|
_flags &= ~(_arg & 0x30);
|
||||||
break;
|
break;
|
||||||
|
@ -24,12 +24,12 @@ class disassembler {
|
|||||||
|
|
||||||
void set_m(bool x) {
|
void set_m(bool x) {
|
||||||
if (x) _flags |= 0x20;
|
if (x) _flags |= 0x20;
|
||||||
else _flags &= 0x20;
|
else _flags &= ~0x20;
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_x(bool x) {
|
void set_x(bool x) {
|
||||||
if (x) _flags |= 0x10;
|
if (x) _flags |= 0x10;
|
||||||
else _flags &= 0x10;
|
else _flags &= ~0x10;
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_pc(uint32_t pc) { pc = _pc; }
|
void set_pc(uint32_t pc) { pc = _pc; }
|
||||||
|
Loading…
Reference in New Issue
Block a user