FreeCalypso > hg > freecalypso-hwlab
comparison simtool/dispatch.c @ 95:5f826e428641
fc-simtool: readef command implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 24 Jan 2021 20:47:00 +0000 |
parents | 226b231d00f3 |
children | a5dfab380a90 |
comparison
equal
deleted
inserted
replaced
94:b84df973cd8b | 95:5f826e428641 |
---|---|
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_readef(); | |
16 extern int cmd_readrec(); | 17 extern int cmd_readrec(); |
17 extern int cmd_select(); | 18 extern int cmd_select(); |
18 | 19 |
19 extern int display_sim_resp_in_hex(); | 20 extern int display_sim_resp_in_hex(); |
20 | 21 |
32 int (*func)(); | 33 int (*func)(); |
33 } cmdtab[] = { | 34 } cmdtab[] = { |
34 {"exit", 0, 0, cmd_exit}, | 35 {"exit", 0, 0, cmd_exit}, |
35 {"quit", 0, 0, cmd_exit}, | 36 {"quit", 0, 0, cmd_exit}, |
36 {"readbin", 2, 2, cmd_readbin}, | 37 {"readbin", 2, 2, cmd_readbin}, |
38 {"readef", 1, 1, cmd_readef}, | |
37 {"readrec", 1, 2, cmd_readrec}, | 39 {"readrec", 1, 2, cmd_readrec}, |
38 {"select", 1, 1, cmd_select}, | 40 {"select", 1, 1, cmd_select}, |
39 {"sim-resp", 0, 0, display_sim_resp_in_hex}, | 41 {"sim-resp", 0, 0, display_sim_resp_in_hex}, |
40 {0, 0, 0, 0} | 42 {0, 0, 0, 0} |
41 }; | 43 }; |