Re: A92: Key Buffer


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

Re: A92: Key Buffer





Maybe you don't wait until the key is released before exiting the prog ?
> 
> 
> >
> > I would like to know if it's possible to quit a Fargo prog without quiting
> > Fargo's shell.
> > This is the end of my prog, but it doesn't work :
> >
> > exit:
> >> move.w #0,d0   ;int on (because they were off)
> >> trap #1
> >> clr.w  tios::kb_vars+$1C
> >> clr.w  tios::kb_vars+$1E
> >> clr.w  tios::kb_vars+$22
> >> rts
> 
> >  You shouldn't need to do any of this (other than turning interrupts 
> >back on).
> 
> But when interrupt are disabled, and we test the ESC directly with
> I/O ports, and then we turn on interrupts, it seems that the TI believe
> in its key interrupt routine that a key was pressed, and since
> the last one was ESC, the routine put ESC at the keyboard
> adresses (clr.w  tios::kb_vars+$1C and clr.w  tios::kb_vars+$1E)
> So it exit the shell !
> 
> Why could we do ?
> 
> 



Follow-Ups: References: