|
|||||||||||
Technical Support Support Resources
Product Information |
A166: RET Is Replaced with RETI or RETSInformation in this article applies to:
SYMPTOMSI have written a procedure in assembler and I used a RET instruction to return from it. When I assemble my code, the RET instruction is replaced with RETI or RETS. What is going on? CAUSEYou are using the PROC and ENDP statements to define your procedure. For that reason, when your file is assembled, the RET instruction is automatically converted to the appropriate form of the return instruction. The form of the return instruction is determined by the type of procedure (near, far or interrupt).
MORE INFORMATIONLast Reviewed: Thursday, February 25, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.