op: Move Decode function into a dedicated file.
op: Make comments more consistent.
op: Refactor test case code to make it reusable by Encode.
op: Add comments to Decode.
op: Add Encode function which encodes instructions into 16-bit representations.