[A83] Re: A thing about D Weiss's Getcsc routine...


[Prev][Next][Index][Thread]

[A83] Re: A thing about D Weiss's Getcsc routine...




Um... No.

You call the Waitkey *routine* from anywhere in the code with "call Waitkey" 
(put the actual waitkey somewhere far from calls to it.)

Waitkey:
  ei
WK_Loop:
  HALT
  bcall(_getcsc)
  or a
  jr z,WK_Loop
  ret

The only reason to use 2 labels is so you won't ei 200 times a second.

And your ei \ call WK_LOOP is really bad, it would run it twice, since it 
then executes immediatly after the last call when you ret.





>From: "Steve Watson" <fif_freak00@hotmail.com>
>Reply-To: assembly-83@lists.ticalc.org
>To: Assembly-83@lists.ticalc.org
>Subject: [A83] A thing about D Weiss's Getcsc routine...
>Date: Wed, 14 Mar 2001 16:01:36 -0700
>
>
>Well, you don't NEED that label with "ei" in it right?  Because before you
>call the loop, you can put in "ei" and THEN call WKA_Loop can't you?
>So....Instead of this:
>      call w(something)
>w(something):
>      ei
>WKA_Loop:
>      HALT
>      BLAH
>      BLAH
>
>It could be this:
>      ei
>      call WKA_Loop
>WKA_Loop
>      HALT
>      BLAH
>
>right?
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com