Implement some IX/IY helper functions

And some minor refactoring in prepartion for IX/IY support
Add corresponding write helpers
Refactor some instructions to support IX/IY
Refactor remaining instructions with IX/IY support
Fix prefix reset