Код: Выделить всё
typedef struct {
char CmdName[12]; // name of command
uint32_t (*fnctPt)(int *); // to execute this command
int *param;
}Cmd_t;
const Cmd_t Table[]={
{"drop", &drop_stack, NULL},
{"dup", &dup_stack, NULL},
{"swap", &swap_stack, NULL},
{"@", &read_mem, NULL},
{"+", &sum_stack, NULL},
{"!", &write_mem, NULL},
{"show", &show_stack, NULL},
{"hex", &set_base, (int *) 0x10},
{"bin", &set_base, (int *) 0x02},
{"decimal", &set_base, (int *) 0x0a},
{"Threshold", &put_on_stack, &data.threshold}, итд