[Coco] strange behaviour

Kevin Diggs kevdig at hypersurf.com
Wed Jun 16 12:51:01 EDT 2004


	I just assembled the "trouble code" on my deuce using edtasm+.
It exits fine when a key is pressed. Of course I had to use $a000
of 0xa000. Which assembler are you using? My deuce has extended color
basic 1.1 circa 1982 on it.


James Dessart wrote:
> On 15-Jun-04, at 10:59 PM, Roger Taylor wrote:
> > The only place you seem to be setting ___ungetched_char is when you
> > clear it with clra/sta, yet you're checking it for a character upon
> > entry into the code.
> That part, believe it or not, is correct. It gets set elsewhere, in
> another assembly routine. The part that really seems to be giving me
> trouble is this:
> read_key:
>         jsr     [0xA000]  ; call POLCAT
>         beq     read_key
> where the routine will stay in a loop even if I press a key. The BASIC
> manual says that Z will be 1 upon finding no key pressed, but 0 if it
> is pressed. But my code doesn't seem to be reacting that way.
> Thanks,
> James
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco

More information about the Coco mailing list