erlang: tidied up opcode decoding
erlang: tidied up opcode decoding