Can you please share the steps so that we can try it out at our end and reproduce the issue? If you can, please share your project. It will help us in understanding the issue.
To use assembly code please refer to these threads -
Thanks and Regards,
Rakshith M B