2 * This is just a sample piece of code that shows how to use some structs -
10 /* prototypes are necessary */
16 typedef void menuString;
18 /* you can declare a menu using cc65 non-ANSI extensions */
20 static const menuString subMenu1 = {
21 (char)0, (char)(3*15),
22 (unsigned)0, (unsigned)50,
24 "subitem1", (char)MENU_ACTION, (unsigned)smenu1,
25 "subitem2", (char)MENU_ACTION, (unsigned)smenu2,
26 "subitem3", (char)MENU_ACTION, (unsigned)smenu3
29 /* or by using initialized structures */
31 static struct menu subMenu2 = {
35 { "subitem1", MENU_ACTION, smenu1 },
36 { "subitem2", MENU_ACTION, smenu2 },
37 { "subitem3", MENU_ACTION, smenu3 },