Added support for some R-type instructions.

Fixed Z-flag and some other stuff.