A85: Re: 2 questions


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

A85: Re: 2 questions




I can answer your first two questions.

KeyTest:
        ld a,0
        out (1),a
        in a,(1)
This does a direct read from the keypad port (port 1).  First you send 0 to
port one, then you read from port 1 and you'll get a code that tells you
which keys are being pressed.  It's extremely fast (and therefore is also
used in TSR programming).

As for the difference between cursor_row/cursor_x, I believe that
cursor_row/cursor_col set the text cursor position, and that
cursor_x/cursor_y set the graphics cursor mode.  Text cursor is for normal
text, of course.  Graphics cursor is also for MenuText (as well as other
things).
-----
Stuntman (Nathan Haines) - ICQ UIN#: 2157863
http://www.cyberverse.com/~stuntman/nathan.html
QuickBASIC/Visual BASIC/TI-BASIC programmer (just your basic programmer)
President of Stuntworks - http://stuntworks.home.ml.org/

-----Original Message-----
From: S43R80 <S43R80@aol.com>
To: assembly-85@lists.ticalc.org <assembly-85@lists.ticalc.org>
Date: Wednesday, April 15, 1998 11:25 AM
Subject: A85: 2 questions


>I'm a little confused as to how this works... Don't you use "call_getkey"
in
>order to cp the last key.  Also the first few lines do not make too much
sense
>to me.  What does "in" do and how come he switches from the graphics rom
page
>(if that is what it does).  And if so what page is it switched to.
>
>2nd question:
>What is the difference between using cursor_row/cursor_col than
>cursor_x/cursor_y?