Fixed endianness problem with some imm8 -> imm16.

Also added support for negative decimal numbers.