Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!aplcen!haven!decuac!shlump.nac.dec.com!jareth@enet.dec.com!edp From: edp@jareth@enet.dec.com (Always mount a scratch monkey.) Newsgroups: comp.sys.handhelds Subject: Re: Will I kill my hp48? Message-ID: <12208@shlump.nac.dec.com> Date: 5 Jun 90 17:57:39 GMT Sender: newsdaemon@shlump.nac.dec.com Distribution: na Organization: Digital Equipment Corporation Lines: 38 (Rexford Alan Hill) writes... > I have a (possibly) silly question. If I type in the following program on > my hp48: > << while 0 1 == repeat off end >> > > will I ever be able to turn my calculator on again? Sure. 0 is not equal to 1, so the test is false, and the clause isn't executed at all. But if you try: << WHILE 1 REPEAT OFF END >> then you'll have problems. (You only need 1, not 1 1 ==, because any non-zero real is considered to be a value of "true", while 0 is "false".) If you execute that beast, check page 666 of the instructions; step 4 tells you to press and hold ON, press and release the third key from the left in the top row (the menu key with the C next to it), and release on. This performs an attention operation that is less severe than a memory reset. On the 28, it interrupts processing, clears the stack, and goes to the HOME directory. -- edp I tried it with ><< 0 10 start off next >> > >and I have to turn my calculator on 10 times or so (I didn't count). I don't >want to do a complete reset (and possibly lose memory). Any ideas? > > Just asking, > RexA -- edp (Eric Postpischil) "Always mount a scratch monkey." edp@jareth.enet.dec.com