Skip to content

Commit 1f666e5

Browse files
committed
Add support for event handlers
1 parent 9b5ae73 commit 1f666e5

2 files changed

Lines changed: 176 additions & 82 deletions

File tree

src/displayapp/screens/Pawn.cpp

Lines changed: 83 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,48 @@ using namespace Pinetime::Applications::Screens;
55

66
#include "program.h"
77

8-
static cell AMX_NATIVE_CALL F_lv_label_create(AMX*, const cell*) {
9-
lv_obj_t* label = lv_label_create(lv_scr_act(), nullptr);
8+
static void event_handler(lv_obj_t* obj, lv_event_t event) {
9+
AMX* amx = (AMX*) lv_obj_get_user_data(lv_scr_act());
10+
int handler_index = (int) lv_obj_get_user_data(obj);
1011

11-
return (cell) label;
12+
amx_Push(amx, event);
13+
amx_Exec(amx, nullptr, handler_index);
14+
}
15+
16+
static cell AMX_NATIVE_CALL F_lv_scr_act(AMX*, const cell*) {
17+
return (cell) lv_scr_act();
18+
}
19+
20+
static cell AMX_NATIVE_CALL F_lv_label_create(AMX*, const cell* params) {
21+
return (cell) lv_label_create((lv_obj_t*) params[1] ?: lv_scr_act(), (lv_obj_t*) params[2]);
22+
}
23+
24+
static cell AMX_NATIVE_CALL F_lv_btn_create(AMX*, const cell* params) {
25+
return (cell) lv_btn_create((lv_obj_t*) params[1] ?: lv_scr_act(), (lv_obj_t*) params[2]);
1226
}
1327

1428
static cell AMX_NATIVE_CALL F_lv_obj_set_pos(AMX*, const cell* params) {
15-
lv_obj_t* label = (lv_obj_t*) params[1];
16-
lv_obj_set_pos(label, params[2], params[3]);
29+
lv_obj_set_pos((lv_obj_t*) params[1], params[2], params[3]);
30+
return 0;
31+
}
32+
33+
static cell AMX_NATIVE_CALL F_lv_obj_set_size(AMX*, const cell* params) {
34+
lv_obj_set_size((lv_obj_t*) params[1], params[2], params[3]);
35+
return 0;
36+
}
37+
38+
static cell AMX_NATIVE_CALL F_lv_obj_set_event_cb(AMX* amx, const cell* params) {
39+
lv_obj_t* obj = (lv_obj_t*) params[1];
40+
41+
char* name;
42+
amx_StrParam_Type(amx, params[2], name, char*);
43+
if (name != NULL) {
44+
int index;
45+
if (amx_FindPublic(amx, name, &index) == AMX_ERR_NONE) {
46+
lv_obj_set_user_data(obj, (void*) index);
47+
lv_obj_set_event_cb(obj, event_handler);
48+
}
49+
}
1750

1851
return 0;
1952
}
@@ -35,42 +68,54 @@ static cell AMX_NATIVE_CALL F_sprintf(AMX* amx, const cell* params) {
3568
// param[0] is the number of total parameter bytes, divide it by cell size and subtract 3 to account for the fixed parameters
3669
int args_count = params[0] / sizeof(cell) - 3;
3770

38-
cell *output = amx_Address(amx, params[1]);
39-
cell output_size = params[2];
71+
cell* output = amx_Address(amx, params[1]);
72+
cell output_size = params[2] * sizeof(cell); // We assume the output array is packed, TODO: add a separate sprintf_unpacked function?
4073

4174
char buf[output_size];
4275

43-
char *fmt;
76+
char* fmt;
4477
amx_StrParam_Type(amx, params[3], fmt, char*);
4578
if (fmt == NULL)
4679
return 0;
4780

4881
cell ret = 0;
4982

5083
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
51-
switch (args_count)
52-
{
53-
case 0:
54-
strcpy(buf, fmt);
55-
ret = strlen(fmt) + 1;
56-
break;
57-
case 1:
58-
ret = snprintf(buf, output_size, fmt, *amx_Address(amx, params[4]));
59-
break;
60-
case 2:
61-
ret = snprintf(buf, output_size, fmt, *amx_Address(amx, params[4]), *amx_Address(amx, params[5]));
62-
break;
63-
case 3:
64-
ret = snprintf(buf, output_size, fmt, *amx_Address(amx, params[4]), *amx_Address(amx, params[5]), *amx_Address(amx, params[6]));
65-
break;
66-
case 4:
67-
ret = snprintf(buf, output_size, fmt, *amx_Address(amx, params[4]), *amx_Address(amx, params[5]), *amx_Address(amx, params[6]), *amx_Address(amx, params[7]));
68-
break;
69-
case 5:
70-
ret = snprintf(buf, output_size, fmt, *amx_Address(amx, params[4]), *amx_Address(amx, params[5]), *amx_Address(amx, params[6]), *amx_Address(amx, params[7]), *amx_Address(amx, params[8]));
71-
break;
72-
default:
73-
return 0;
84+
switch (args_count) {
85+
case 0:
86+
strcpy(buf, fmt);
87+
ret = strlen(fmt) + 1;
88+
break;
89+
case 1:
90+
ret = snprintf(buf, output_size, fmt, *amx_Address(amx, params[4]));
91+
break;
92+
case 2:
93+
ret = snprintf(buf, output_size, fmt, *amx_Address(amx, params[4]), *amx_Address(amx, params[5]));
94+
break;
95+
case 3:
96+
ret = snprintf(buf, output_size, fmt, *amx_Address(amx, params[4]), *amx_Address(amx, params[5]), *amx_Address(amx, params[6]));
97+
break;
98+
case 4:
99+
ret = snprintf(buf,
100+
output_size,
101+
fmt,
102+
*amx_Address(amx, params[4]),
103+
*amx_Address(amx, params[5]),
104+
*amx_Address(amx, params[6]),
105+
*amx_Address(amx, params[7]));
106+
break;
107+
case 5:
108+
ret = snprintf(buf,
109+
output_size,
110+
fmt,
111+
*amx_Address(amx, params[4]),
112+
*amx_Address(amx, params[5]),
113+
*amx_Address(amx, params[6]),
114+
*amx_Address(amx, params[7]),
115+
*amx_Address(amx, params[8]));
116+
break;
117+
default:
118+
return 0;
74119
}
75120
#pragma GCC diagnostic warning "-Wformat-nonliteral"
76121

@@ -88,19 +133,24 @@ Pawn::Pawn() {
88133

89134
amx.userdata[0] = this;
90135

136+
lv_obj_set_user_data(lv_scr_act(), &amx);
137+
91138
static AMX_NATIVE_INFO natives[] = {
92139
{"sprintf", F_sprintf},
140+
{"lv_scr_act", F_lv_scr_act},
93141
{"lv_label_create", F_lv_label_create},
142+
{"lv_btn_create", F_lv_btn_create},
94143
{"lv_obj_set_pos", F_lv_obj_set_pos},
144+
{"lv_obj_set_size", F_lv_obj_set_size},
95145
{"lv_label_set_text", F_lv_label_set_text},
146+
{"lv_obj_set_event_cb", F_lv_obj_set_event_cb},
96147
{0, 0} /* terminator */
97148
};
98149
amx_Register(&amx, natives, -1);
99150

100151
amx_Exec(&amx, NULL, AMX_EXEC_MAIN);
101152

102-
if (amx_FindPublic(&amx, "@refresh", &refresh_index) == AMX_ERR_NONE)
103-
{
153+
if (amx_FindPublic(&amx, "@refresh", &refresh_index) == AMX_ERR_NONE) {
104154
taskRefresh = lv_task_create(RefreshTaskCallback, LV_DISP_DEF_REFR_PERIOD, LV_TASK_PRIO_MID, this);
105155
Refresh();
106156
}

src/displayapp/screens/program.h

Lines changed: 93 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,101 @@
11
unsigned char program[] = {
2-
0x84, 0x02, 0x00, 0x00, 0xe0, 0xf1, 0x0b, 0x0b, 0x00, 0x00, 0x08, 0x00,
3-
0xa8, 0x00, 0x00, 0x00, 0x04, 0x02, 0x00, 0x00, 0x84, 0x02, 0x00, 0x00,
4-
0x84, 0x42, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00,
5-
0x44, 0x00, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00,
6-
0x64, 0x00, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00,
7-
0x84, 0x00, 0x00, 0x00, 0x66, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
8-
0x6f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00,
9-
0x00, 0x00, 0x00, 0x00, 0x8e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
10-
0x96, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x40, 0x72, 0x65, 0x66, 0x72, 0x65,
11-
0x73, 0x68, 0x00, 0x6c, 0x76, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f,
2+
0x90, 0x04, 0x00, 0x00, 0xe0, 0xf1, 0x0b, 0x0b, 0x00, 0x00, 0x08, 0x00,
3+
0xf4, 0x00, 0x00, 0x00, 0x3c, 0x04, 0x00, 0x00, 0x90, 0x04, 0x00, 0x00,
4+
0x90, 0x44, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00,
5+
0x44, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x00,
6+
0x7c, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x00,
7+
0x64, 0x02, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
8+
0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x97, 0x00, 0x00, 0x00,
9+
0x00, 0x00, 0x00, 0x00, 0xa6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
10+
0xb8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc6, 0x00, 0x00, 0x00,
11+
0x00, 0x00, 0x00, 0x00, 0xd6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
12+
0xea, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x40, 0x63, 0x6c, 0x69, 0x63, 0x6b,
13+
0x65, 0x64, 0x00, 0x6c, 0x76, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f,
1214
0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x00, 0x6c, 0x76, 0x5f, 0x6f, 0x62,
13-
0x6a, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x70, 0x6f, 0x73, 0x00, 0x73, 0x70,
14-
0x72, 0x69, 0x6e, 0x74, 0x66, 0x00, 0x6c, 0x76, 0x5f, 0x6c, 0x61, 0x62,
15-
0x65, 0x6c, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x00,
16-
0x43, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00,
17-
0x49, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
18-
0x16, 0x00, 0x00, 0x00, 0x45, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
19-
0x1c, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00,
20-
0x00, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
21-
0x14, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
22-
0x14, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
15+
0x6a, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x70, 0x6f, 0x73, 0x00, 0x6c, 0x76,
16+
0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x74,
17+
0x65, 0x78, 0x74, 0x00, 0x6c, 0x76, 0x5f, 0x62, 0x74, 0x6e, 0x5f, 0x63,
18+
0x72, 0x65, 0x61, 0x74, 0x65, 0x00, 0x6c, 0x76, 0x5f, 0x6f, 0x62, 0x6a,
19+
0x5f, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x00, 0x6c, 0x76,
20+
0x5f, 0x6f, 0x62, 0x6a, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x65, 0x76, 0x65,
21+
0x6e, 0x74, 0x5f, 0x63, 0x62, 0x00, 0x73, 0x70, 0x72, 0x69, 0x6e, 0x74,
22+
0x66, 0x00, 0x00, 0x00, 0x43, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
23+
0x1e, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
2324
0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
24-
0x0c, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x45, 0x00, 0x00, 0x00,
25-
0x01, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00,
26-
0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00,
27-
0x1e, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00,
28-
0x09, 0x00, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00,
29-
0x68, 0x00, 0x00, 0x00, 0x2b, 0x00, 0x00, 0x00, 0x1d, 0x00, 0x00, 0x00,
30-
0x04, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, 0x00,
31-
0x18, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x6c, 0x00, 0x00, 0x00,
32-
0x18, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00,
33-
0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00,
34-
0x18, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00,
35-
0x16, 0x00, 0x00, 0x00, 0x45, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00,
36-
0x1c, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x1d, 0x00, 0x00, 0x00,
37-
0xfc, 0xff, 0xff, 0xff, 0x49, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
38-
0x68, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x68, 0x00, 0x00, 0x00,
39-
0x3c, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
40-
0x04, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
4125
0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
4226
0x08, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x45, 0x00, 0x00, 0x00,
43-
0x03, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00,
44-
0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00,
45-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
46-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
47-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
48-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
49-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
50-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
51-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
27+
0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00,
28+
0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00,
29+
0x09, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00,
30+
0x09, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00,
31+
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00,
32+
0x09, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00,
33+
0x45, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00,
34+
0x10, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
35+
0x20, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
36+
0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
37+
0x08, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x45, 0x00, 0x00, 0x00,
38+
0x02, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00,
39+
0x49, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff,
40+
0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00,
41+
0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00,
42+
0x09, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00,
43+
0x45, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00,
44+
0x0c, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff,
45+
0x49, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00,
46+
0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00,
47+
0x16, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff,
48+
0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00,
49+
0x16, 0x00, 0x00, 0x00, 0x45, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00,
50+
0x1c, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00,
51+
0x09, 0x00, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00,
52+
0x09, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00,
53+
0x03, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0x16, 0x00, 0x00, 0x00,
54+
0x09, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00,
55+
0x45, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00,
56+
0x10, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
57+
0x2c, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
58+
0xfc, 0xff, 0xff, 0xff, 0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
59+
0x08, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x45, 0x00, 0x00, 0x00,
60+
0x05, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00,
61+
0x49, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff,
62+
0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00,
63+
0x03, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0x16, 0x00, 0x00, 0x00,
64+
0x09, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00,
65+
0x45, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00,
66+
0x0c, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff,
67+
0x49, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00,
68+
0x18, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff,
69+
0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00,
70+
0x16, 0x00, 0x00, 0x00, 0x45, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00,
71+
0x1c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00,
72+
0x08, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
73+
0x20, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00,
74+
0x03, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00,
75+
0x06, 0x00, 0x00, 0x00, 0x35, 0x00, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00,
76+
0x18, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
77+
0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00,
78+
0x49, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x44, 0x00, 0x00, 0x00,
79+
0x18, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x48, 0x00, 0x00, 0x00,
80+
0x18, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00,
81+
0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00,
82+
0x18, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00,
83+
0x16, 0x00, 0x00, 0x00, 0x45, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00,
84+
0x1c, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00,
85+
0x01, 0x00, 0x00, 0x00, 0x44, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
86+
0x44, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00,
87+
0x09, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00,
88+
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00,
89+
0x09, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00,
90+
0x45, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00,
91+
0x0c, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
92+
0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
5293
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
5394
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
54-
0x65, 0x6d, 0x69, 0x54, 0x61, 0x6c, 0x65, 0x20, 0x64, 0x65, 0x73, 0x70,
55-
0x6c, 0x25, 0x20, 0x3a, 0x00, 0x00, 0x00, 0x64
95+
0x63, 0x69, 0x6c, 0x43, 0x20, 0x3a, 0x73, 0x6b, 0x00, 0x00, 0x00, 0x30,
96+
0x69, 0x6c, 0x63, 0x40, 0x64, 0x65, 0x6b, 0x63, 0x00, 0x00, 0x00, 0x00,
97+
0x63, 0x69, 0x6c, 0x43, 0x68, 0x74, 0x20, 0x6b, 0x00, 0x21, 0x73, 0x69,
98+
0x01, 0x00, 0x00, 0x00, 0x63, 0x69, 0x6c, 0x43, 0x20, 0x3a, 0x73, 0x6b,
99+
0x00, 0x64, 0x6c, 0x25
56100
};
57-
unsigned int program_len = 644;
101+
unsigned int program_len = 1168;

0 commit comments

Comments
 (0)