*blink*
In Robot Odyssey (1984), you programmed submarines to perform tasks by soldering discrete logic chips to inputs and outputs. You could store submarines inside other submarines and call them later, remotely.
Those were nested sub routines. o.O