; Dynamic Runtime Stack Project Script ; ; Initiate a process: call main 0 3 1 2 3 ; ; Make a function call and check the stack: call F01 1 42 2 17 3 display ; ; Make some more function calls: call F02 0 1 5 call F03 2 13 7 0 ; ; Check the stack again: display ; ; Make some more function calls: ; call F04 0 8 10 20 30 40 50 60 70 80 call F05 3 1 2 3 2 24 8 display ; ; Modify some locals: set 1 5 set 2 0 display ; ; Make the stack a little bigger: call F06 1 3 1 4 call F07 0 0 call F08 0 0 display ; Terminate some calls: return return return ; There should be 6 activation records here: display ; This should leave 5 activation records: return ; And a smaller stack: display ; ; Reset some more locals: set 7 75 set 8 85 set 3 35 display ; ; Clear the way for an access violation: return ; Attempt an invalid reset: set 3 8 display ; ; Quit: exit