FreeCalypso > hg > freecalypso-sw
comparison loadtools/ltdispatch.c @ 35:05af070c4b60
loadtool: preparations for dump2bin and dump2srec
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 05 May 2013 02:24:56 +0000 |
parents | dacf45e3d20f |
children | 65111e6eee9e |
comparison
equal
deleted
inserted
replaced
34:2c6b2a74ac7c | 35:05af070c4b60 |
---|---|
6 #include <stdio.h> | 6 #include <stdio.h> |
7 #include <string.h> | 7 #include <string.h> |
8 #include <strings.h> | 8 #include <strings.h> |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 | 10 |
11 extern int cmd_crc32(); | |
11 extern int cmd_exec(); | 12 extern int cmd_exec(); |
12 extern int cmd_exit(); | 13 extern int cmd_exit(); |
13 extern int loadtool_cmd_passthru(); | 14 extern int loadtool_cmd_passthru(); |
14 | 15 |
15 static struct cmdtab { | 16 static struct cmdtab { |
16 char *cmd; | 17 char *cmd; |
17 int minargs; | 18 int minargs; |
18 int maxargs; | 19 int maxargs; |
19 int (*func)(); | 20 int (*func)(); |
20 } cmdtab[] = { | 21 } cmdtab[] = { |
22 {"crc32", 2, 2, cmd_crc32}, | |
21 {"dump", 2, 2, loadtool_cmd_passthru}, | 23 {"dump", 2, 2, loadtool_cmd_passthru}, |
22 {"exec", 1, 1, cmd_exec}, | 24 {"exec", 1, 1, cmd_exec}, |
23 {"exit", 0, 1, cmd_exit}, | 25 {"exit", 0, 1, cmd_exit}, |
24 {"quit", 0, 1, cmd_exit}, | 26 {"quit", 0, 1, cmd_exit}, |
25 {"r8", 1, 1, loadtool_cmd_passthru}, | 27 {"r8", 1, 1, loadtool_cmd_passthru}, |