Parameters, Cont’d
Example: SHIFT Subroutine:
$SHIFT:
$ P1 = P2
$ P2 = P3
.
.
.
$ P7 = P8
$ P8 :=
$ RETURN
Previous slide
Next slide
Back to first slide
View graphic version
Notes:
Here’s an example SHIFT subroutine.
It SHIFTs the values of the parameters by one position, discarding the first and blanking out the last.
The next slide shows how to implement this.