A86: Re: _getkey routine


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

A86: Re: _getkey routine




The memory location $8006 is normally the middle of an an OP on ram page 1.
The memory locations you are most likely interested are below:

_kbdScanCode          equ         0C000h	; key code
_kbdLGSC              equ         0C001h
_kbdPSC               equ         0C002h
_kbdWUR               equ         0C003h
_kbdDebncCnt          equ         0C004h
_kbdkey               equ         0C005h
_kbdGetKy             equ         0C006h
_keyextend            equ         0C007h

If you just want to fool getkey, you can have your interrupt put your byte
into the memory location, but that's not going to work for everything.  The
86 uses port 1 to read the keys from the keyboard, so this method will not
work with many games.  But I guess you'd actually have to take apart the 86
to completely replace the keypad...

----- Original Message -----
From: David Norelid <fuzz@pinecrest.edu>
To: <assembly-86@lists.ticalc.org>
Sent: Wednesday, January 27, 1999 1:48 PM
Subject: A86: _getkey routine


>
>hi there,
>
>i'm new to this list. i just wanted to get aquainted.
>
>i'm working on an interface with a keyboard so you could plug the keyboard
>in and then use it just like the normal keypad. an avr uC would do all the
>work of getting the keyboard bytes and translating into ti keypad
>scancodes. then the tsr driver that i have to write would then just
>receive the byte, and now i need your help.
>
>from what i have read about _getkey, beleive i can solve my problem by
>just ld'ing my byte into $8006, right? i wan't this to be able to run with
>any program
>
>could one of you give me more info on exactly how _getkey works? thanks
>
>FUZZ
>David Norelid
>Fuzz Enterprises Inc.
>--------------------------
>Posse in effect, yo
>-----------------------
>listen.to/yankovic
>
>
>