Integrated code/decode