Re: A86: simple code I can't figure out
[Prev][Next][Index][Thread]
Re: A86: simple code I can't figure out
Since Pat included the code in his game, he must not have thought it would
stay the same in all versions.
> the rom does use that exact code (at 0229 in rom 1.2) but there's no page
> d equiv. it's used by the routine that scans the entire keyboard (01ee)
> and returns a single code in a. that routine is in turn used by _kbdScan
> which also debounces it and stores the code and appropriate flags. i
> wouldn't be surprised if all of this code stayed at the same place across
> rom versions, but you'd have to check to be sure.
>
> -josh
>
> On Thu, 08 Jul 1999 23:26:13 -0400 Aaron Curtis <acurti1@umbc.edu>
> writes:
> >
> >Yeah, I had a routine in YAS that looks like that, it just would've
> >been
> >nice to replace it with a rom call... Usgard (as well as Ash) has it
> >listed as a rom call.
> >
> >David Phillips wrote:
> >>
> >> _get_key is like _getky, but it doesn't waste time converting to
> >the
> >> TI-BASIC format for OP2. The Usgard call was either a rom call on
> >the 85 or
> >> a built in function. I found this routine in Pat Milheron's Pede86,
> >it
> >> looks like it'd be the same as READ_KEYPAD:
> --
> >> out (kbdPort),a ;strobe the keyboard
> >> nop ;give hardware time to respond
> >> nop
> >> nop
> >> nop
> >> in a,(kbdPort) ;read keyboard
> >> ld b,a
> >> ld a,0FFh ;float all keyboard lines
> >> out (kbdPort),a
> >> ld a,b
> >> ret
> >
>
> ___________________________________________________________________
> 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.
>
>
References: