Skip to content

Commit ee46e43

Browse files
committed
Assert parameter count; set style properties
1 parent f52443f commit ee46e43

File tree

2 files changed

+151
-77
lines changed

2 files changed

+151
-77
lines changed

src/displayapp/screens/Pawn.cpp

Lines changed: 69 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33

44
using namespace Pinetime::Applications::Screens;
55

6+
#define AMX_ERR_PARAMCOUNT 32
7+
8+
#define ASSERT_PARAMS(n) \
9+
if (params[0] != n * sizeof(cell)) { \
10+
amx_RaiseError(amx, AMX_ERR_PARAMCOUNT); \
11+
return 0; \
12+
}
13+
614
static void event_handler(lv_obj_t* obj, lv_event_t event) {
715
AMX* amx = (AMX*) lv_obj_get_user_data(lv_scr_act());
816
int handler_index = (int) lv_obj_get_user_data(obj);
@@ -11,29 +19,41 @@ static void event_handler(lv_obj_t* obj, lv_event_t event) {
1119
amx_Exec(amx, nullptr, handler_index);
1220
}
1321

14-
static cell AMX_NATIVE_CALL F_lv_scr_act(AMX*, const cell*) {
22+
static cell AMX_NATIVE_CALL F_lv_scr_act(AMX* amx, const cell* params) {
23+
ASSERT_PARAMS(0);
24+
1525
return (cell) lv_scr_act();
1626
}
1727

18-
static cell AMX_NATIVE_CALL F_lv_label_create(AMX*, const cell* params) {
28+
static cell AMX_NATIVE_CALL F_lv_label_create(AMX* amx, const cell* params) {
29+
ASSERT_PARAMS(2);
30+
1931
return (cell) lv_label_create((lv_obj_t*) params[1] ?: lv_scr_act(), (lv_obj_t*) params[2]);
2032
}
2133

22-
static cell AMX_NATIVE_CALL F_lv_btn_create(AMX*, const cell* params) {
34+
static cell AMX_NATIVE_CALL F_lv_btn_create(AMX* amx, const cell* params) {
35+
ASSERT_PARAMS(2);
36+
2337
return (cell) lv_btn_create((lv_obj_t*) params[1] ?: lv_scr_act(), (lv_obj_t*) params[2]);
2438
}
2539

26-
static cell AMX_NATIVE_CALL F_lv_obj_set_pos(AMX*, const cell* params) {
40+
static cell AMX_NATIVE_CALL F_lv_obj_set_pos(AMX* amx, const cell* params) {
41+
ASSERT_PARAMS(3);
42+
2743
lv_obj_set_pos((lv_obj_t*) params[1], params[2], params[3]);
2844
return 0;
2945
}
3046

31-
static cell AMX_NATIVE_CALL F_lv_obj_set_size(AMX*, const cell* params) {
47+
static cell AMX_NATIVE_CALL F_lv_obj_set_size(AMX* amx, const cell* params) {
48+
ASSERT_PARAMS(3);
49+
3250
lv_obj_set_size((lv_obj_t*) params[1], params[2], params[3]);
3351
return 0;
3452
}
3553

3654
static cell AMX_NATIVE_CALL F_lv_obj_set_event_cb(AMX* amx, const cell* params) {
55+
ASSERT_PARAMS(2);
56+
3757
lv_obj_t* obj = (lv_obj_t*) params[1];
3858

3959
char* name;
@@ -50,6 +70,8 @@ static cell AMX_NATIVE_CALL F_lv_obj_set_event_cb(AMX* amx, const cell* params)
5070
}
5171

5272
static cell AMX_NATIVE_CALL F_lv_label_set_text(AMX* amx, const cell* params) {
73+
ASSERT_PARAMS(2);
74+
5375
lv_obj_t* label = (lv_obj_t*) params[1];
5476

5577
char* text;
@@ -62,6 +84,45 @@ static cell AMX_NATIVE_CALL F_lv_label_set_text(AMX* amx, const cell* params) {
6284
return 0;
6385
}
6486

87+
static cell AMX_NATIVE_CALL F_lv_obj_set_style_local_int(AMX* amx, const cell* params) {
88+
ASSERT_PARAMS(5);
89+
90+
lv_obj_t* obj = (lv_obj_t*) params[1];
91+
cell prop = params[2];
92+
cell value = params[3];
93+
cell part = params[4];
94+
cell state = params[5];
95+
96+
_lv_obj_set_style_local_int(obj, part, prop | (state << LV_STYLE_STATE_POS), value);
97+
return 0;
98+
}
99+
100+
static cell AMX_NATIVE_CALL F_lv_obj_set_style_local_color(AMX* amx, const cell* params) {
101+
ASSERT_PARAMS(5);
102+
103+
lv_obj_t* obj = (lv_obj_t*) params[1];
104+
cell prop = params[2];
105+
cell value = params[3];
106+
cell part = params[4];
107+
cell state = params[5];
108+
109+
_lv_obj_set_style_local_color(obj, part, prop | (state << LV_STYLE_STATE_POS), lv_color_hex(value));
110+
return 0;
111+
}
112+
113+
static cell AMX_NATIVE_CALL F_lv_obj_set_style_local_opa(AMX* amx, const cell* params) {
114+
ASSERT_PARAMS(5);
115+
116+
lv_obj_t* obj = (lv_obj_t*) params[1];
117+
cell prop = params[2];
118+
cell value = params[3];
119+
cell part = params[4];
120+
cell state = params[5];
121+
122+
_lv_obj_set_style_local_opa(obj, part, prop | (state << LV_STYLE_STATE_POS), value);
123+
return 0;
124+
}
125+
65126
static cell AMX_NATIVE_CALL F_sprintf(AMX* amx, const cell* params) {
66127
// param[0] is the number of total parameter bytes, divide it by cell size and subtract 3 to account for the fixed parameters
67128
int args_count = params[0] / sizeof(cell) - 3;
@@ -144,6 +205,9 @@ Pawn::Pawn() {
144205
{"lv_obj_set_size", F_lv_obj_set_size},
145206
{"lv_label_set_text", F_lv_label_set_text},
146207
{"lv_obj_set_event_cb", F_lv_obj_set_event_cb},
208+
{"lv_obj_set_style_local_int", F_lv_obj_set_style_local_int},
209+
{"lv_obj_set_style_local_color", F_lv_obj_set_style_local_color},
210+
{"lv_obj_set_style_local_opa", F_lv_obj_set_style_local_opa},
147211
{0, 0} /* terminator */
148212
};
149213
amx_Register(&amx, natives, -1);

src/displayapp/screens/program.h

Lines changed: 82 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
11
unsigned char program[] = {
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,
2+
0x10, 0x05, 0x00, 0x00, 0xe0, 0xf1, 0x0b, 0x0b, 0x00, 0x00, 0x08, 0x00,
3+
0x18, 0x01, 0x00, 0x00, 0xbc, 0x04, 0x00, 0x00, 0x10, 0x05, 0x00, 0x00,
4+
0x10, 0x45, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00,
5+
0x44, 0x00, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00,
6+
0x84, 0x00, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00,
7+
0xc0, 0x02, 0x00, 0x00, 0x86, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
8+
0x8f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x9f, 0x00, 0x00, 0x00,
9+
0x00, 0x00, 0x00, 0x00, 0xae, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
10+
0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xdd, 0x00, 0x00, 0x00,
11+
0x00, 0x00, 0x00, 0x00, 0xeb, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
12+
0xfb, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x01, 0x00, 0x00,
13+
0x1f, 0x00, 0x40, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x65, 0x64, 0x00, 0x6c,
14+
0x76, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x63, 0x72, 0x65, 0x61,
15+
0x74, 0x65, 0x00, 0x6c, 0x76, 0x5f, 0x6f, 0x62, 0x6a, 0x5f, 0x73, 0x65,
16+
0x74, 0x5f, 0x70, 0x6f, 0x73, 0x00, 0x6c, 0x76, 0x5f, 0x6c, 0x61, 0x62,
17+
0x65, 0x6c, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x00,
18+
0x6c, 0x76, 0x5f, 0x6f, 0x62, 0x6a, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x73,
19+
0x74, 0x79, 0x6c, 0x65, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x63,
20+
0x6f, 0x6c, 0x6f, 0x72, 0x00, 0x6c, 0x76, 0x5f, 0x62, 0x74, 0x6e, 0x5f,
1421
0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x00, 0x6c, 0x76, 0x5f, 0x6f, 0x62,
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,
22+
0x6a, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x00, 0x6c,
23+
0x76, 0x5f, 0x6f, 0x62, 0x6a, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x65, 0x76,
24+
0x65, 0x6e, 0x74, 0x5f, 0x63, 0x62, 0x00, 0x73, 0x70, 0x72, 0x69, 0x6e,
25+
0x74, 0x66, 0x00, 0x00, 0x43, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2326
0x1e, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
2427
0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
2528
0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
@@ -36,66 +39,73 @@ unsigned char program[] = {
3639
0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
3740
0x08, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x45, 0x00, 0x00, 0x00,
3841
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,
42+
0x49, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
43+
0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
44+
0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00,
45+
0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x89, 0x80, 0x00, 0x00,
46+
0x16, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
47+
0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00,
48+
0x16, 0x00, 0x00, 0x00, 0x45, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
49+
0x1c, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00,
50+
0x1c, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0x09, 0x00, 0x00, 0x00,
51+
0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
52+
0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
53+
0x08, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x45, 0x00, 0x00, 0x00,
54+
0x04, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00,
55+
0x0e, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0x49, 0x00, 0x00, 0x00,
56+
0x09, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00,
57+
0x09, 0x00, 0x00, 0x00, 0x8c, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00,
5358
0x03, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0x16, 0x00, 0x00, 0x00,
5459
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,
60+
0x45, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00,
5661
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,
62+
0x32, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
63+
0x0a, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
5864
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,
65+
0x0c, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x45, 0x00, 0x00, 0x00,
66+
0x01, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00,
67+
0x49, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00,
68+
0x18, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff,
6969
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,
8370
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,
71+
0x1c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00,
72+
0x1c, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0x09, 0x00, 0x00, 0x00,
73+
0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
74+
0xfc, 0xff, 0xff, 0xff, 0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
75+
0x08, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x45, 0x00, 0x00, 0x00,
76+
0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00,
77+
0x0e, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0x49, 0x00, 0x00, 0x00,
78+
0x09, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00,
79+
0x03, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0x16, 0x00, 0x00, 0x00,
8980
0x09, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00,
9081
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,
82+
0x0c, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00,
83+
0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00,
84+
0x1e, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
85+
0x0c, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00,
86+
0x35, 0x00, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00,
87+
0x49, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
88+
0x20, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00,
89+
0x09, 0x00, 0x00, 0x00, 0x44, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00,
90+
0x09, 0x00, 0x00, 0x00, 0x48, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00,
91+
0x09, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00,
92+
0x09, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00,
93+
0x09, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00,
94+
0x45, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00,
95+
0x14, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
96+
0x44, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x44, 0x00, 0x00, 0x00,
97+
0x3c, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
98+
0x04, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
99+
0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00,
100+
0x08, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x45, 0x00, 0x00, 0x00,
101+
0x02, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00,
102+
0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00,
93103
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
94104
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
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
105+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x63, 0x69, 0x6c, 0x43,
106+
0x20, 0x3a, 0x73, 0x6b, 0x00, 0x00, 0x00, 0x30, 0x69, 0x6c, 0x63, 0x40,
107+
0x64, 0x65, 0x6b, 0x63, 0x00, 0x00, 0x00, 0x00, 0x63, 0x69, 0x6c, 0x43,
108+
0x68, 0x74, 0x20, 0x6b, 0x00, 0x21, 0x73, 0x69, 0x01, 0x00, 0x00, 0x00,
109+
0x63, 0x69, 0x6c, 0x43, 0x20, 0x3a, 0x73, 0x6b, 0x00, 0x64, 0x6c, 0x25
100110
};
101-
unsigned int program_len = 1168;
111+
unsigned int program_len = 1296;

0 commit comments

Comments
 (0)