Le 13/03/2017 à 19:38,
[email protected] a écrit :
Add reg, pc, 2
Push reg
Br <label>
Calling conventions
Better would be to write only
add reg0,2
br <label>
And in the called function do a push if necessary.
This way you save a push in all call sites and place the push only once
in the called function. That saves code space.
The return address could be placed always in the first register, where
the result will be returned. It should be a free register anyway.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)