Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In PaintAsm.a:

          .FUNC Monkey
 ;---------------------------------------------------------------------
 ;
 ;  FUNCTION Monkey: BOOLEAN;
 ;
          TST      MonkeyLives                ;IS THE MONKEY ACTIVE ?
          SGE      4(SP)                      ;YES IF >= ZERO
          NEG.B    4(SP)                      ;CONVERT TO PASCAL BOOLEAN
          RTS
According to http://folklore.org/StoryView.py?project=Macintosh&story..., this was used to detect an keypress/mousemove/mousepress-generating testing tool and turn off a few things (Apple menu, File menu, and Quit command, in this case).


MonkeyLives (aka low memory global address $100) was a system global that was usually off. If you saw it on, it indicated that the equivalent of a monkey was loose on the keyboard. IOW, don't do anything dangerous when true.


Always mount a scratch monkey.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: