mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-20 11:12:46 +03:00
49 lines
1.4 KiB
C
49 lines
1.4 KiB
C
|
/*
|
||
|
* $Id: nkcc.c,v 1.4 2010/10/16 21:21:51 hek Exp $
|
||
|
*
|
||
|
* XaAES - XaAES Ain't the AES (c) 1992 - 1998 C.Graham
|
||
|
* 1999 - 2003 H.Robbers
|
||
|
* 2004 F.Naumann & O.Skancke
|
||
|
*
|
||
|
* A multitasking AES replacement for FreeMiNT
|
||
|
*
|
||
|
* This file is part of XaAES.
|
||
|
*
|
||
|
* XaAES is free software; you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License as published by
|
||
|
* the Free Software Foundation; either version 2 of the License, or
|
||
|
* (at your option) any later version.
|
||
|
*
|
||
|
* XaAES is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with XaAES; if not, write to the Free Software
|
||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||
|
*/
|
||
|
|
||
|
#include "atari/nkcc.h"
|
||
|
//#include "nkcc.h"
|
||
|
|
||
|
|
||
|
unsigned short
|
||
|
gem_to_norm (short ks, short kr)
|
||
|
{
|
||
|
unsigned short knorm;
|
||
|
|
||
|
knorm = nkc_tos2n (((long) (kr & 0xff) | /* ascii Bits 0-7 */
|
||
|
(((long) kr & 0x0000ff00L) << 8L) | /* scan Bits 16-23 */
|
||
|
((long) (ks & 0xff) << 24L))); /* kstate Bits 24-31 */
|
||
|
return knorm;
|
||
|
}
|
||
|
|
||
|
|
||
|
int
|
||
|
nkc_exit(void)
|
||
|
{
|
||
|
/* dummy */
|
||
|
return 0;
|
||
|
}
|