Re: A86: _getkey


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

Re: A86: _getkey




Dux Gregis wrote:
> 
> Has anybody realised that _getkey communticates with the link port?  I
> sent a program to the calc while it was waiting for a keypress from a
> _getkey call, and recieved the program without a problem.  I think
> _getkey returns a value from link port in the same way it returns a
> value from a keypress because
> 
> wait:
>  call _getkey
>  or a
>  jr z,wait
> 
> breaks out of the wait loop when anything is sent to the calc via the
> link.
> 
> And something else: since _getkey seems to handle silent linking,
> [sqrt]KEY can probably override any link input  ;-)

My guess is that _getkey isn't real "getkey" but something like the
idle-function that was used in fargo. It enter low-power-mode and
waits for any interrupt (so both a keypress & a link byte would do)

//Jonas


References: