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
|
||||
_flags |= (_arg & 0x30);
|
||||
break;
|
||||
break;
|
||||
case 0xe2: // SEP
|
||||
_flags &= ~(_arg & 0x30);
|
||||
break;
|
||||
|
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user