Fix typo in comment
[kqemu.git] / common / genmon.c
blob3c9d97050676cb497bff8885ba8a8863acaa927a
1 /*
2 * KQEMU
4 * Copyright (C) 2004-2008 Fabrice Bellard
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * version 2 as published by the Free Software Foundation.
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.
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.
19 #include <stdlib.h>
20 #include <stdio.h>
22 int main(int argc, char **argv)
24 int i, c;
26 printf("const uint8_t monitor_code[] = {\n");
27 i = 0;
28 for(;;) {
29 c = getchar();
30 if (c == EOF)
31 break;
32 printf("0x%02x,", c);
33 i++;
34 if (i == 16) {
35 printf("\n");
36 i = 0;
39 printf("\n};\n");
40 return 0;