|
|
1 | /* |
|
|
2 | checkuid.c - Part of psiconv, a PSION 5 file formats converter |
|
|
3 | Copyright (c) 1999-2004 Frodo Looijaard <frodol@dds.nl> |
|
|
4 | |
|
|
5 | This program is free software; you can redistribute it and/or modify |
|
|
6 | it under the terms of the GNU General Public License as published by |
|
|
7 | the Free Software Foundation; either version 2 of the License, or |
|
|
8 | (at your option) any later version. |
|
|
9 | |
|
|
10 | This program is distributed in the hope that it will be useful, |
|
|
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
13 | GNU General Public License for more details. |
|
|
14 | |
|
|
15 | You should have received a copy of the GNU General Public License |
|
|
16 | along with this program; if not, write to the Free Software |
|
|
17 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|
|
18 | */ |
|
|
19 | |
|
|
20 | |
|
|
21 | #include <stdio.h> |
|
|
22 | |
1 | unsigned long uid1[32] = { /* bit 0 */ 0x000045A0, |
23 | unsigned long uid1[32] = { /* bit 0 */ 0x000045A0, |
2 | /* bit 1 */ 0x00008B40, |
24 | /* bit 1 */ 0x00008B40, |
3 | /* bit 2 */ 0x000006A1, |
25 | /* bit 2 */ 0x000006A1, |
4 | /* bit 3 */ 0x00000D42, |
26 | /* bit 3 */ 0x00000D42, |
5 | /* bit 4 */ 0x00001A84, |
27 | /* bit 4 */ 0x00001A84, |
… | |
… | |
130 | } |
152 | } |
131 | } |
153 | } |
132 | |
154 | |
133 | int main(int argc, char *argv[]) |
155 | int main(int argc, char *argv[]) |
134 | { |
156 | { |
135 | unsigned long i,res; |
157 | unsigned long res; |
136 | res = checkuid(0x10000037,0x1000006D,0x1000007F); |
158 | res = checkuid(0x10000037,0x1000006D,0x1000007F); |
137 | printhex(res); |
159 | printhex(res); |
138 | putchar('\n'); |
160 | putchar('\n'); |
|
|
161 | exit(0); |
139 | } |
162 | } |