A few more CPU bug fixes.

* Munge flag register appropriately when returning from RTI.
* Fix wraparound behavior for indexed indirect/indirect indexed instructions.
* Fix decoding of ldx/ldy addressing modes.