mirror of
https://github.com/rkujawa/rk65c02.git
synced 2024-12-13 01:29:57 +00:00
Clear the decimal flag on initialisation.
This commit is contained in:
parent
bc137b9390
commit
b21d884f8b
@ -23,6 +23,8 @@ rk65c02_init(bus_t *b)
|
|||||||
e.bus = b;
|
e.bus = b;
|
||||||
e.state = STOPPED;
|
e.state = STOPPED;
|
||||||
e.regs.P = P_UNDEFINED|P_IRQ_DISABLE;
|
e.regs.P = P_UNDEFINED|P_IRQ_DISABLE;
|
||||||
|
/* reset also clears the decimal flag */
|
||||||
|
e.regs.P &= ~P_DECIMAL;
|
||||||
|
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user