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

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


Nice Tip Mark,  

It’s sometime hard to change your ways, but I’ll give it a try as counting the bits sometimes is a little difficult and it is easy to make a mistake.  But I do like the look of the actual binary number though.  :)

Cheers,
Glen

> On Mar 6, 2017, at 5:52 PM, Mark McDougall <msmcdoug at iinet.net.au> wrote:
> 
> On 7/03/2017 9:28 AM, Glen Hewlett wrote:
> 
>> Arrow LDA     #%11110111                          * Bit 3 STA
> 
> I use LDA #~(1<<3) myself... saves you counting bits and inadvertently making an error. You may or may not prefer it?!?
> 
> 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