First version of decode.v for Hyojong to read.