decode function done for assempler