Added function for register encoding and fixed address encoding.
Added function for register encoding and fixed address encoding.

WheretIB/nullc,WheretIB/nullc,WheretIB/nullc,WheretIB/nullc,WheretIB/nullc,WheretIB/nullc,WheretIB/nullc