1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-12-11 18:49:16 +00:00

Clear the decimal flag on initialisation.

This commit is contained in:
Radosław Kujawa 2017-01-31 00:31:04 +01:00
parent bc137b9390
commit b21d884f8b

View File

@ -23,6 +23,8 @@ rk65c02_init(bus_t *b)
e.bus = b;
e.state = STOPPED;
e.regs.P = P_UNDEFINED|P_IRQ_DISABLE;
/* reset also clears the decimal flag */
e.regs.P &= ~P_DECIMAL;
return e;
}