Put some bits and pieces together in order to implement assembly functions in c