FreeCalypso > hg > freecalypso-hwlab
comparison simtool/dispatch.c @ 101:454ff8bd0b83
fc-simtool: update-bin command implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 25 Jan 2021 01:54:43 +0000 |
parents | fa7005185b84 |
children | 29cc5612797a |
comparison
equal
deleted
inserted
replaced
100:fa7005185b84 | 101:454ff8bd0b83 |
---|---|
19 extern int cmd_readrec(); | 19 extern int cmd_readrec(); |
20 extern int cmd_restore_file(); | 20 extern int cmd_restore_file(); |
21 extern int cmd_savebin(); | 21 extern int cmd_savebin(); |
22 extern int cmd_select(); | 22 extern int cmd_select(); |
23 extern int cmd_telecom_sum(); | 23 extern int cmd_telecom_sum(); |
24 extern int cmd_update_bin(); | |
24 | 25 |
25 extern int display_sim_resp_in_hex(); | 26 extern int display_sim_resp_in_hex(); |
26 | 27 |
27 cmd_exit() | 28 cmd_exit() |
28 { | 29 { |
47 {"restore-file", 2, 2, cmd_restore_file}, | 48 {"restore-file", 2, 2, cmd_restore_file}, |
48 {"savebin", 2, 2, cmd_savebin}, | 49 {"savebin", 2, 2, cmd_savebin}, |
49 {"select", 1, 1, cmd_select}, | 50 {"select", 1, 1, cmd_select}, |
50 {"sim-resp", 0, 0, display_sim_resp_in_hex}, | 51 {"sim-resp", 0, 0, display_sim_resp_in_hex}, |
51 {"telecom-sum", 0, 0, cmd_telecom_sum}, | 52 {"telecom-sum", 0, 0, cmd_telecom_sum}, |
53 {"update-bin", 2, 2, cmd_update_bin}, | |
52 {0, 0, 0, 0} | 54 {0, 0, 0, 0} |
53 }; | 55 }; |
54 | 56 |
55 simtool_dispatch_cmd(cmd) | 57 simtool_dispatch_cmd(cmd) |
56 char *cmd; | 58 char *cmd; |