update main.s

add decoder and adjust main.s