[Coco] Assembly code scans keyboard but doesn't repeat

Glen Hewlett glen.hewlett at sympatico.ca
Mon Mar 6 19:11:42 EST 2017


I think I can wrap my head around what you are saying, I’ll give it a try.

Thanks for the replies guys.  I was hoping someone would already have a little code to handle such a task.

Cheers,
Glen

> On Mar 6, 2017, at 6:22 PM, Mark McDougall <msmcdoug at iinet.net.au> wrote:
> 
> On 7/03/2017 9:28 AM, Glen Hewlett wrote:
> 
> If you save the previous column scan byte, and then XOR it with the new column scan byte, then any change of state will be indicated by a '1' bit in the result. If you then AND that with the complement of the new byte, then a '1' bit means the key has just been pressed (aka rising-edge detect).
> 
> At least that works in my head right now. ;)
> 
> Regards,
> 
> -- 
> Mark McDougall
> <http://retroports.blogspot.com.au>
> 
> -- 
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco



More information about the Coco mailing list