Fixed incorrect encoding for reg<-imm operations, beginning of cleanup