Flow-control structures: Difference between revisions
→Branch and Link (BAL): Better
PatGarrett (talk | contribs) |
PatGarrett (talk | contribs) (→Branch and Link (BAL): Better) |
||
Line 24:
</lang>
===Branch and Link (BAL)===
To perform a 'call' to a subroutine. The first register
<lang 360asm>
BALR 14,15 call the subroutine
RETPNT EQU *
SINUSX EQU * subroutine SINUSX
...
BR 14 return to caller
</lang>
|