[comp.sys.handhelds] Tetris fix

ruhtra@turing.toronto.edu (Arthur Tateishi) (03/07/91)

Wow, my first posting in c.s.handhelds. I've been reading since July. 
I just had to get one in tell my kids that I posted to handhelds
about the 48 BEFORE we got our own group. I got my E on Oct. 11th
so I even got Minehunt! Yeah!

Anyway, I remember seeing stuff about the tetris pause function
preventing the auto-shutoff but I didn't see a fix. My fix simply
does away with the infinite loop in INFLP. It also catches one ATTN.
Replace INFLP with with the following.
<< IFERR 0 WAIT THEN END DROP >>

Since WAIT leaves the calc idle until a key is pressed, the auto-shutoff
still works. The IFERR allows a clean continuation after pressing ON to
restart. This also fixes the same problem in the high score screen, BTW.

Another place I found useful for IFERR was in 'start'.
Replace TETRIS in 'start' by IFERR TETRIS THEN END
I kept hitting ON instead of Q to exit so I always had to carefully
objects until I got to the saved flags and typed STOF. Really annoying.

The only other "fix" I found useful other than key changes was modifying
RK2 so that the OFF became << OFF INFLP >>. This pauses the game if you
shut off your calc with the O command in tetris.

These were all such tiny fixes that they can typed in by hand and
(hopefully) added to the next release.

-- 
``Sex and drugs? They're nothing compared with a good proof!''
                                - A Cambridge student  (r.h.f)
Arthur Tateishi                 g9ruhtra@zero.cdf.utoronto.ca

akcs.falco@hpcvbbs.UUCP (Andrey Dolgachev) (03/10/91)

Arthur, 
Thanks for your fixes. I have already done those modifications (except
for the last one, which I don't agree with) plus some others.  However,
the IFERR loop is the one that is suggested by Wickes and it requires his
library, otherwise, when you press On to end the game, the program just
halts.  New version is forthcoming.
   ---Falco