At 07:40 PM 6/7/2002 -0400, Melvin Smith wrote: ># Sample sub-routines in Parrot ># ># Create 2 subroutines ># >set_addr I0, SUB >new P0, .ParrotSub, I0 >save P0 >new P0, .ParrotSub, I0 ># Calling convention says P0 will contain the sub >call >restore P0 ># Call second one >call >end > ># A subroutine address >SUB: >print "Hello subroutine\n"
There should be a 'ret' instruction there at the end