added basic function prolog and parameter passing