[Coco] technical assembler question

Bob Devries devries.bob at gmail.com
Wed May 16 21:20:28 EDT 2007


dear friends,

I'm doing some writing in assembler for RSDOS (DECB). I don't do this often, 
you understand, so I've got a question:

When checking for a BREAK key, is it necessary yo do multiple reads of the 
POLCAT routine to ensure the key is not missed? At the moment i have this 
code:

 jsr [POLCAT]
 beq dskcont ;no key pressed, continue
 cmpa #BREAK ;that's #$03
 bne dskcont ;on BREAK, fall through to exit routine

Should I loop through that a few times to be sure I don't miss it or will 
that slow the programme down too much.

What do the "experts" do in this case?

--
Regards, Bob Devries, Dalby, Queensland, Australia

Isaiah 50:4 The sovereign Lord has given me
the capacity to be his spokesman,
so that I know how to help the weary.

website: http://www.home.gil.com.au/~bdevasl
my blog: http://bdevries.invigorated.org/




More information about the Coco mailing list