Chapter 5 Instruction Words
5 - 11
- Sample program (when Xw = 2)
Sequence of execution
U(00) = Xw :(1)
select U(00) :(2)
case 0 :(3)
Yw = U(00) :
case 1 :
Yw = U(00) :
case 2 :(4)
Yw = U(00) :(4)
case 4 :
Yw = U(00) :
case else :
Yw = 0 :
end select :(5)
Y(00) = 1 :(6)
call statement Instruction to unconditionally branch to a subroutine
- Format
Format Description
call <subroutine name>
This instruction branches processing unconditionally to the subroutine
specified by <subroutine name>.
- Explanation
This instruction branches processing unconditionally to the subroutine specified by <subroutine name>.
After the subroutine is executed, processing proceeds to the instruction that follows the calling step.
- Sample program
entry
call SUB1 : Call subroutine "SUB1".
:
end
sub SUB1 : Called subroutine
:
Y(00) = 1
:
sub end