fix compare instructions
fix NZ flag handling with TSX, TSY and when popping registers from
stack.
fix stack pointer wrap around when popping.