You should probably try writing a MEX function in C, and embed your assembly code in there, or compile separately and link to a MEX wrapper.
Information on MEX is here:
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!