Re: A86: _getcsc (simple code I can't figure out)


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

Re: A86: _getcsc (simple code I can't figure out)




_getcsc is $4068
it gets and clears the scancode at _kbdScanCode and resets bit 3,(iy+$00)
on return, hl=$c000, a=scancode.  interrupts are disabled while the
scancode is cleared.

you can't use this in an im 2 grayscale program unless you jump to the
default interrupt handler or call _kbdScan occasionally.  probly in the
interrupt handler would be best.

just to show you how short this is, here's the code:
 ld      hl,#c000
 di
 ld      a,(hl)
 ld      (hl),#00
 res     3,(iy+#00)
 ei
 ret

-josh

On Thu, 8 Jul 1999 17:38:41 -0500 "David Phillips" <david@acz.org>
writes:
>
>_getcsc?  What's the address of that?  Is that the official name for
>_get_key?  That's what it is on the 83, but it's not in my current
>equates...
>
>> No, use _getcsc haha... Now the newbies are really confused ;-)
>>
>> >No, that's the 85 equate.  You want to use _get_key (not _getky or
>> >_getkey!).
>> >
>> >>
>> >> GET_KEY isn't in ti86asm.inc though, is it?
>> >>
>> >>
>>
>>
>> ---
>> Clem Vasseur <darkclem@wanadoo.fr>
>>
>>
>>
>>
>
>

___________________________________________________________________
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month!
Try Juno Web: http://dl.www.juno.com/dynoget/tagj.