On Thu, Aug 04, 2005 at 09:59:48AM +0200, Frode Tenneboe wrote: > On Wed, 3 Aug 2005 23:37:14 +0100 Stuart Brady <[EMAIL PROTECTED]> wrote: > > I've ported the keyboard relaying program that I wrote to assembly > > language, and I've found a problem: pressing ESCAPE breaks into SAM > > BASIC. Could someone tell me how to stop it from doing that, please? > > You could either DI first in your program, or (AFAICR) > POKE 23361,1 (BERAKDI).
I don't know whether DI could interfere with serial drivers. I tried setting BREAKDI... didn't seem to help, unfortunately. > Just a few questions: > 1) Why did you use JSTKSTORE and JSTRS? Couldn't you just > RST#10 the character? Or..in other words, I don't think I > understand the "test" routine. For each scan line, it determines whether that scan line has changed. If it has, then it prints the scan line number, followed by its new value. The print routine prints out the (unsigned) integer held by A in decimal. It stores the integer (JSTKSTORE), converts it to a string (JSTRS), and then prints that string (#0013). > 2) Since you are alredy using ROM routines, why not use the > JREADKEY/JWAITKEY instead. This gives the key in A and > you are ready to send it to the stream. I don't think there would be a way to determine when a key is released, or to allow keys to be pressed together. Thanks, -- Stuart Brady

