FreeCalypso > hg > freecalypso-hwlab
comparison simtool/dispatch.c @ 91:226b231d00f3
fc-simtool: readrec command implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 24 Jan 2021 18:46:11 +0000 |
parents | 53e2c00566af |
children | 5f826e428641 |
comparison
equal
deleted
inserted
replaced
90:53e2c00566af | 91:226b231d00f3 |
---|---|
11 #include <pcsclite.h> | 11 #include <pcsclite.h> |
12 #include <winscard.h> | 12 #include <winscard.h> |
13 #include "globals.h" | 13 #include "globals.h" |
14 | 14 |
15 extern int cmd_readbin(); | 15 extern int cmd_readbin(); |
16 extern int cmd_readrec(); | |
16 extern int cmd_select(); | 17 extern int cmd_select(); |
17 | 18 |
18 extern int display_sim_resp_in_hex(); | 19 extern int display_sim_resp_in_hex(); |
19 | 20 |
20 cmd_exit() | 21 cmd_exit() |
31 int (*func)(); | 32 int (*func)(); |
32 } cmdtab[] = { | 33 } cmdtab[] = { |
33 {"exit", 0, 0, cmd_exit}, | 34 {"exit", 0, 0, cmd_exit}, |
34 {"quit", 0, 0, cmd_exit}, | 35 {"quit", 0, 0, cmd_exit}, |
35 {"readbin", 2, 2, cmd_readbin}, | 36 {"readbin", 2, 2, cmd_readbin}, |
37 {"readrec", 1, 2, cmd_readrec}, | |
36 {"select", 1, 1, cmd_select}, | 38 {"select", 1, 1, cmd_select}, |
37 {"sim-resp", 0, 0, display_sim_resp_in_hex}, | 39 {"sim-resp", 0, 0, display_sim_resp_in_hex}, |
38 {0, 0, 0, 0} | 40 {0, 0, 0, 0} |
39 }; | 41 }; |
40 | 42 |