Reading Ken Shirrif's excellent exposition on the 1980's chip that plays Christmas tunes it flashed me right back to the BEAM Robot scene (also in the 80's). People had figured out they could use a similar chip (this one sang happy birthday) to create behaviors in a very simple robot.
It seems to be a little more complex; it has a state variable for the frequency, and it has jump instructions?