Will CPU registers be pushed onto the stack when BX and BLX instructions are executed?
Author: stephen david Dec 22, 2020 14677
Will CPU registers be pushed onto the stack when BX and BLX instructions are executed?
Nick Posted on 2020/12/22 11:18:25
It seems that the hardware pushes the stack only when the interrupt is entered, other times it is software PUSH, remember that according to the ATPCS, R0-R3 are used to pass parameters, and neither push nor pop the stack when calling sub-functions and exiting functions. Sometimes there are too many temporary variables in the sub-function, then the compiler will use the PUSH instruction to save the working register when the sub-function is called, then there will be POP when the sub-function is exited, but this and interrupt hardware will automatically push the stack and output The stack is different.
Reply 0Manufacturer:Xilinx
Product Categories: Résistances
Lifecycle:Obsolete -
RoHS: No RoHS
Manufacturer:Xilinx
Product Categories: Rangée de condensateur
Lifecycle:Obsolete -
RoHS: No RoHS
Manufacturer:Xilinx
Product Categories: Industrial components
Lifecycle:Obsolete -
RoHS: No RoHS
Manufacturer:Xilinx
Product Categories: FPGAs
Lifecycle:Active Active
RoHS: No RoHS
Manufacturer:Xilinx
Product Categories: FPGAs (Field Programmable Gate Array)
Lifecycle:Active Active
RoHS:
Support