--- np2/io/serial.c 2004/02/07 21:23:22 1.9 +++ np2/io/serial.c 2004/02/11 17:39:59 1.10 @@ -86,7 +86,7 @@ static void keybrd_out(REG8 data) { // ---- - UINT8 keystat[0x80]; +static UINT8 keystat[0x80]; void keystat_reset(void) { @@ -98,6 +98,8 @@ void keystat_senddata(REG8 data) { REG8 key; BOOL keynochange; +const UINT8 *user; + UINT i; key = data & 0x7f; keynochange = FALSE; @@ -110,6 +112,17 @@ void keystat_senddata(REG8 data) { data = key | (keystat[key] & 0x80); keystat[key] ^= 0x80; } + else if ((key == 0x76) || (key == 0x77)) { // user key + user = np2cfg.userkey[key - 0x76]; + for (i=0; i