FreeCalypso > hg > freecalypso-tools
comparison loadtools/bpdispatch.c @ 828:502aec4c1e8e
fc-buzplay: implement playt command for PWT melodies
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 30 May 2021 20:54:02 +0000 |
parents | 0af2529d9376 |
children | 85091e14be9c |
comparison
equal
deleted
inserted
replaced
827:0af2529d9376 | 828:502aec4c1e8e |
---|---|
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 | 10 |
11 extern int cmd_baud(); | 11 extern int cmd_baud(); |
12 extern int cmd_exit(); | 12 extern int cmd_exit(); |
13 extern int cmd_play(); | 13 extern int cmd_play(); |
14 extern int cmd_playt(); | |
14 extern int loadtool_cmd_passthru(); | 15 extern int loadtool_cmd_passthru(); |
15 | 16 |
16 static struct cmdtab { | 17 static struct cmdtab { |
17 char *cmd; | 18 char *cmd; |
18 int minargs; | 19 int minargs; |
23 {"abbw", 3, 3, loadtool_cmd_passthru}, | 24 {"abbw", 3, 3, loadtool_cmd_passthru}, |
24 {"baud", 0, 1, cmd_baud}, | 25 {"baud", 0, 1, cmd_baud}, |
25 {"buzlev", 0, 1, loadtool_cmd_passthru}, | 26 {"buzlev", 0, 1, loadtool_cmd_passthru}, |
26 {"exit", 0, 1, cmd_exit}, | 27 {"exit", 0, 1, cmd_exit}, |
27 {"play", 1, 1, cmd_play}, | 28 {"play", 1, 1, cmd_play}, |
29 {"playt", 1, 2, cmd_playt}, | |
28 {"pwt", 1, 1, loadtool_cmd_passthru}, | 30 {"pwt", 1, 1, loadtool_cmd_passthru}, |
29 {"quit", 0, 1, cmd_exit}, | 31 {"quit", 0, 1, cmd_exit}, |
30 {"r8", 1, 1, loadtool_cmd_passthru}, | 32 {"r8", 1, 1, loadtool_cmd_passthru}, |
31 {"r16", 1, 1, loadtool_cmd_passthru}, | 33 {"r16", 1, 1, loadtool_cmd_passthru}, |
32 {"r32", 1, 1, loadtool_cmd_passthru}, | 34 {"r32", 1, 1, loadtool_cmd_passthru}, |