diff options
Diffstat (limited to 'atari/nkccgc.c')
-rwxr-xr-x | atari/nkccgc.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/atari/nkccgc.c b/atari/nkccgc.c new file mode 100755 index 000000000..d068598aa --- /dev/null +++ b/atari/nkccgc.c @@ -0,0 +1,48 @@ +/* + * $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; +} |