blob: d068598aa1e3e9d0b09a37a4b4caab360b12092f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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;
}
|