Correct 6809 CLR flag handling.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2018-08-30 01:37:46 +01:00
parent 8e0c1ebcde
commit a9adde6ea5

View File

@ -784,7 +784,7 @@ uint8_t EightBit::mc6809::asr(uint8_t operand) {
} }
uint8_t EightBit::mc6809::clr() { uint8_t EightBit::mc6809::clr() {
clearFlag(CC(), HF | ZF | VF | CF); clearFlag(CC(), NF | VF | CF);
setFlag(CC(), ZF); setFlag(CC(), ZF);
return 0; return 0;
} }