diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_AXP192.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_AXP192.h deleted file mode 100644 index e00408263..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_AXP192.h +++ /dev/null @@ -1,923 +0,0 @@ -/* Solidification of AXP192.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -// compact class 'AXP192' ktab size: 37, total: 82 (saved 360 bytes) -static const bvalue be_ktab_class_AXP192[37] = { - /* K0 */ be_const_int(1), - /* K1 */ be_nested_str(write_bit), - /* K2 */ be_const_int(0), - /* K3 */ be_const_int(2), - /* K4 */ be_const_int(3), - /* K5 */ be_nested_str(read24), - /* K6 */ be_const_real_hex(0x3A102DE0), - /* K7 */ be_nested_str(read12), - /* K8 */ be_const_real_hex(0x3A902DE0), - /* K9 */ be_const_real_hex(0x3EC00000), - /* K10 */ be_nested_str(wire), - /* K11 */ be_nested_str(read), - /* K12 */ be_nested_str(addr), - /* K13 */ be_const_real_hex(0x3AB78035), - /* K14 */ be_const_real_hex(0x3ADED28A), - /* K15 */ be_nested_str(write8), - /* K16 */ be_nested_str(read8), - /* K17 */ be_nested_str(_X2C_X22AXP192_X22_X3A_X7B_X22VBusVoltage_X22_X3A_X25_X2E3f_X2C_X22VBusCurrent_X22_X3A_X25_X2E1f_X2C_X22BattVoltage_X22_X3A_X25_X2E3f_X2C_X22BattCurrent_X22_X3A_X25_X2E1f_X2C_X22Temperature_X22_X3A_X25_X2E1f_X7D), - /* K18 */ be_nested_str(get_vbus_voltage), - /* K19 */ be_nested_str(get_bat_voltage), - /* K20 */ be_nested_str(get_bat_current), - /* K21 */ be_nested_str(get_temp), - /* K22 */ be_nested_str(tasmota), - /* K23 */ be_nested_str(response_append), - /* K24 */ be_nested_str(I2C_Driver), - /* K25 */ be_nested_str(init), - /* K26 */ be_nested_str(AXP192), - /* K27 */ be_nested_str(read13), - /* K28 */ be_const_real_hex(0x3F000000), - /* K29 */ be_nested_str(_X7Bs_X7DVBus_X20Voltage_X7Bm_X7D_X25_X2E3f_X20V_X7Be_X7D), - /* K30 */ be_nested_str(_X7Bs_X7DVBus_X20Current_X7Bm_X7D_X25_X2E1f_X20mA_X7Be_X7D), - /* K31 */ be_nested_str(_X7Bs_X7DBatt_X20Voltage_X7Bm_X7D_X25_X2E3f_X20V_X7Be_X7D), - /* K32 */ be_nested_str(_X7Bs_X7DBatt_X20Current_X7Bm_X7D_X25_X2E1f_X20mA_X7Be_X7D), - /* K33 */ be_nested_str(_X7Bs_X7DAXP_X20Temperature_X7Bm_X7D_X25_X2E1f_X20_X26deg_X3BC_X7Be_X7D), - /* K34 */ be_nested_str(web_send_decimal), - /* K35 */ be_const_real_hex(0x3DCCCCCD), - /* K36 */ be_const_real_hex(0x4310B333), -}; - - -extern const bclass be_class_AXP192; - -/******************************************************************** -** Solidified function: set_dcdc_enable -********************************************************************/ -be_local_closure(class_AXP192_set_dcdc_enable, /* name */ - be_nested_proto( - 8, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_set_dcdc_enable, - &be_const_str_solidified, - ( &(const binstruction[22]) { /* code */ - 0x1C0C0300, // 0000 EQ R3 R1 K0 - 0x780E0004, // 0001 JMPF R3 #0007 - 0x8C0C0101, // 0002 GETMET R3 R0 K1 - 0x54160011, // 0003 LDINT R5 18 - 0x58180002, // 0004 LDCONST R6 K2 - 0x5C1C0400, // 0005 MOVE R7 R2 - 0x7C0C0800, // 0006 CALL R3 4 - 0x1C0C0303, // 0007 EQ R3 R1 K3 - 0x780E0004, // 0008 JMPF R3 #000E - 0x8C0C0101, // 0009 GETMET R3 R0 K1 - 0x54160011, // 000A LDINT R5 18 - 0x541A0003, // 000B LDINT R6 4 - 0x5C1C0400, // 000C MOVE R7 R2 - 0x7C0C0800, // 000D CALL R3 4 - 0x1C0C0304, // 000E EQ R3 R1 K4 - 0x780E0004, // 000F JMPF R3 #0015 - 0x8C0C0101, // 0010 GETMET R3 R0 K1 - 0x54160011, // 0011 LDINT R5 18 - 0x58180000, // 0012 LDCONST R6 K0 - 0x5C1C0400, // 0013 MOVE R7 R2 - 0x7C0C0800, // 0014 CALL R3 4 - 0x80000000, // 0015 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_bat_power -********************************************************************/ -be_local_closure(class_AXP192_get_bat_power, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_get_bat_power, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x8C040105, // 0000 GETMET R1 R0 K5 - 0x540E006F, // 0001 LDINT R3 112 - 0x7C040400, // 0002 CALL R1 2 - 0x08040306, // 0003 MUL R1 R1 K6 - 0x80040200, // 0004 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_bat_voltage -********************************************************************/ -be_local_closure(class_AXP192_get_bat_voltage, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_get_bat_voltage, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x8C040107, // 0000 GETMET R1 R0 K7 - 0x540E0077, // 0001 LDINT R3 120 - 0x7C040400, // 0002 CALL R1 2 - 0x08040308, // 0003 MUL R1 R1 K8 - 0x80040200, // 0004 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_vbus_current -********************************************************************/ -be_local_closure(class_AXP192_get_vbus_current, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_get_vbus_current, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x8C040107, // 0000 GETMET R1 R0 K7 - 0x540E005B, // 0001 LDINT R3 92 - 0x7C040400, // 0002 CALL R1 2 - 0x08040309, // 0003 MUL R1 R1 K9 - 0x80040200, // 0004 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_warning_level -********************************************************************/ -be_local_closure(class_AXP192_get_warning_level, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_get_warning_level, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x8C040107, // 0000 GETMET R1 R0 K7 - 0x540E0046, // 0001 LDINT R3 71 - 0x7C040400, // 0002 CALL R1 2 - 0x2C040300, // 0003 AND R1 R1 K0 - 0x80040200, // 0004 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_ldo_enable -********************************************************************/ -be_local_closure(class_AXP192_set_ldo_enable, /* name */ - be_nested_proto( - 8, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_set_ldo_enable, - &be_const_str_solidified, - ( &(const binstruction[15]) { /* code */ - 0x1C0C0303, // 0000 EQ R3 R1 K3 - 0x780E0004, // 0001 JMPF R3 #0007 - 0x8C0C0101, // 0002 GETMET R3 R0 K1 - 0x54160011, // 0003 LDINT R5 18 - 0x58180003, // 0004 LDCONST R6 K3 - 0x5C1C0400, // 0005 MOVE R7 R2 - 0x7C0C0800, // 0006 CALL R3 4 - 0x1C0C0304, // 0007 EQ R3 R1 K4 - 0x780E0004, // 0008 JMPF R3 #000E - 0x8C0C0101, // 0009 GETMET R3 R0 K1 - 0x54160011, // 000A LDINT R5 18 - 0x58180004, // 000B LDCONST R6 K4 - 0x5C1C0400, // 000C MOVE R7 R2 - 0x7C0C0800, // 000D CALL R3 4 - 0x80000000, // 000E RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_input_power_status -********************************************************************/ -be_local_closure(class_AXP192_get_input_power_status, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_get_input_power_status, - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x8804010A, // 0000 GETMBR R1 R0 K10 - 0x8C04030B, // 0001 GETMET R1 R1 K11 - 0x880C010C, // 0002 GETMBR R3 R0 K12 - 0x58100002, // 0003 LDCONST R4 K2 - 0x58140000, // 0004 LDCONST R5 K0 - 0x7C040800, // 0005 CALL R1 4 - 0x80040200, // 0006 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_aps_voltage -********************************************************************/ -be_local_closure(class_AXP192_get_aps_voltage, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_get_aps_voltage, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x8C040107, // 0000 GETMET R1 R0 K7 - 0x540E007D, // 0001 LDINT R3 126 - 0x7C040400, // 0002 CALL R1 2 - 0x0804030D, // 0003 MUL R1 R1 K13 - 0x80040200, // 0004 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_exten -********************************************************************/ -be_local_closure(class_AXP192_set_exten, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_set_exten, - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x8C080101, // 0000 GETMET R2 R0 K1 - 0x54120011, // 0001 LDINT R4 18 - 0x54160005, // 0002 LDINT R5 6 - 0x5C180200, // 0003 MOVE R6 R1 - 0x7C080800, // 0004 CALL R2 4 - 0x80000000, // 0005 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: battery_present -********************************************************************/ -be_local_closure(class_AXP192_battery_present, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_battery_present, - &be_const_str_solidified, - ( &(const binstruction[15]) { /* code */ - 0x8804010A, // 0000 GETMBR R1 R0 K10 - 0x8C04030B, // 0001 GETMET R1 R1 K11 - 0x880C010C, // 0002 GETMBR R3 R0 K12 - 0x58100000, // 0003 LDCONST R4 K0 - 0x58140000, // 0004 LDCONST R5 K0 - 0x7C040800, // 0005 CALL R1 4 - 0x540A001F, // 0006 LDINT R2 32 - 0x2C040202, // 0007 AND R1 R1 R2 - 0x78060002, // 0008 JMPF R1 #000C - 0x50040200, // 0009 LDBOOL R1 1 0 - 0x80040200, // 000A RET 1 R1 - 0x70020001, // 000B JMP #000E - 0x50040000, // 000C LDBOOL R1 0 0 - 0x80040200, // 000D RET 1 R1 - 0x80000000, // 000E RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_vbus_voltage -********************************************************************/ -be_local_closure(class_AXP192_get_vbus_voltage, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_get_vbus_voltage, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x8C040107, // 0000 GETMET R1 R0 K7 - 0x540E0059, // 0001 LDINT R3 90 - 0x7C040400, // 0002 CALL R1 2 - 0x0804030E, // 0003 MUL R1 R1 K14 - 0x80040200, // 0004 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: write_gpio -********************************************************************/ -be_local_closure(class_AXP192_write_gpio, /* name */ - be_nested_proto( - 8, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_write_gpio, - &be_const_str_solidified, - ( &(const binstruction[21]) { /* code */ - 0x280C0302, // 0000 GE R3 R1 K2 - 0x780E0007, // 0001 JMPF R3 #000A - 0x180C0303, // 0002 LE R3 R1 K3 - 0x780E0005, // 0003 JMPF R3 #000A - 0x8C0C0101, // 0004 GETMET R3 R0 K1 - 0x54160093, // 0005 LDINT R5 148 - 0x5C180200, // 0006 MOVE R6 R1 - 0x5C1C0400, // 0007 MOVE R7 R2 - 0x7C0C0800, // 0008 CALL R3 4 - 0x70020009, // 0009 JMP #0014 - 0x280C0304, // 000A GE R3 R1 K4 - 0x780E0007, // 000B JMPF R3 #0014 - 0x540E0003, // 000C LDINT R3 4 - 0x180C0203, // 000D LE R3 R1 R3 - 0x780E0004, // 000E JMPF R3 #0014 - 0x8C0C0101, // 000F GETMET R3 R0 K1 - 0x54160095, // 0010 LDINT R5 150 - 0x04180304, // 0011 SUB R6 R1 K4 - 0x5C1C0400, // 0012 MOVE R7 R2 - 0x7C0C0800, // 0013 CALL R3 4 - 0x80000000, // 0014 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_ldo_voltage -********************************************************************/ -be_local_closure(class_AXP192_set_ldo_voltage, /* name */ - be_nested_proto( - 9, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_set_ldo_voltage, - &be_const_str_solidified, - ( &(const binstruction[39]) { /* code */ - 0x540E0CE3, // 0000 LDINT R3 3300 - 0x240C0403, // 0001 GT R3 R2 R3 - 0x780E0001, // 0002 JMPF R3 #0005 - 0x540A000E, // 0003 LDINT R2 15 - 0x70020004, // 0004 JMP #000A - 0x540E0063, // 0005 LDINT R3 100 - 0x0C0C0403, // 0006 DIV R3 R2 R3 - 0x54120011, // 0007 LDINT R4 18 - 0x040C0604, // 0008 SUB R3 R3 R4 - 0x5C080600, // 0009 MOVE R2 R3 - 0x1C0C0303, // 000A EQ R3 R1 K3 - 0x780E000C, // 000B JMPF R3 #0019 - 0x8C0C010F, // 000C GETMET R3 R0 K15 - 0x54160027, // 000D LDINT R5 40 - 0x8C180110, // 000E GETMET R6 R0 K16 - 0x54220027, // 000F LDINT R8 40 - 0x7C180400, // 0010 CALL R6 2 - 0x541E000E, // 0011 LDINT R7 15 - 0x2C180C07, // 0012 AND R6 R6 R7 - 0x541E000E, // 0013 LDINT R7 15 - 0x2C1C0407, // 0014 AND R7 R2 R7 - 0x54220003, // 0015 LDINT R8 4 - 0x381C0E08, // 0016 SHL R7 R7 R8 - 0x30180C07, // 0017 OR R6 R6 R7 - 0x7C0C0600, // 0018 CALL R3 3 - 0x1C0C0304, // 0019 EQ R3 R1 K4 - 0x780E000A, // 001A JMPF R3 #0026 - 0x8C0C010F, // 001B GETMET R3 R0 K15 - 0x54160027, // 001C LDINT R5 40 - 0x8C180110, // 001D GETMET R6 R0 K16 - 0x54220027, // 001E LDINT R8 40 - 0x7C180400, // 001F CALL R6 2 - 0x541E00EF, // 0020 LDINT R7 240 - 0x2C180C07, // 0021 AND R6 R6 R7 - 0x541E000E, // 0022 LDINT R7 15 - 0x2C1C0407, // 0023 AND R7 R2 R7 - 0x30180C07, // 0024 OR R6 R6 R7 - 0x7C0C0600, // 0025 CALL R3 3 - 0x80000000, // 0026 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: json_append -********************************************************************/ -be_local_closure(class_AXP192_json_append, /* name */ - be_nested_proto( - 9, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_json_append, - &be_const_str_solidified, - ( &(const binstruction[22]) { /* code */ - 0x8804010A, // 0000 GETMBR R1 R0 K10 - 0x74060001, // 0001 JMPT R1 #0004 - 0x4C040000, // 0002 LDNIL R1 - 0x80040200, // 0003 RET 1 R1 - 0x60040018, // 0004 GETGBL R1 G24 - 0x58080011, // 0005 LDCONST R2 K17 - 0x8C0C0112, // 0006 GETMET R3 R0 K18 - 0x7C0C0200, // 0007 CALL R3 1 - 0x8C100112, // 0008 GETMET R4 R0 K18 - 0x7C100200, // 0009 CALL R4 1 - 0x8C140113, // 000A GETMET R5 R0 K19 - 0x7C140200, // 000B CALL R5 1 - 0x8C180114, // 000C GETMET R6 R0 K20 - 0x7C180200, // 000D CALL R6 1 - 0x8C1C0115, // 000E GETMET R7 R0 K21 - 0x7C1C0200, // 000F CALL R7 1 - 0x7C040C00, // 0010 CALL R1 6 - 0xB80A2C00, // 0011 GETNGBL R2 K22 - 0x8C080517, // 0012 GETMET R2 R2 K23 - 0x5C100200, // 0013 MOVE R4 R1 - 0x7C080400, // 0014 CALL R2 2 - 0x80000000, // 0015 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_AXP192_init, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0x4C080000, // 0000 LDNIL R2 - 0x1C080202, // 0001 EQ R2 R1 R2 - 0x780A0000, // 0002 JMPF R2 #0004 - 0x54060033, // 0003 LDINT R1 52 - 0x60080003, // 0004 GETGBL R2 G3 - 0x5C0C0000, // 0005 MOVE R3 R0 - 0xB8123000, // 0006 GETNGBL R4 K24 - 0x7C080400, // 0007 CALL R2 2 - 0x8C080519, // 0008 GETMET R2 R2 K25 - 0x5810001A, // 0009 LDCONST R4 K26 - 0x54160033, // 000A LDINT R5 52 - 0x7C080600, // 000B CALL R2 3 - 0x80000000, // 000C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_bat_current -********************************************************************/ -be_local_closure(class_AXP192_get_bat_current, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_get_bat_current, - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x8C04011B, // 0000 GETMET R1 R0 K27 - 0x540E0079, // 0001 LDINT R3 122 - 0x7C040400, // 0002 CALL R1 2 - 0x8C08011B, // 0003 GETMET R2 R0 K27 - 0x5412007B, // 0004 LDINT R4 124 - 0x7C080400, // 0005 CALL R2 2 - 0x04040202, // 0006 SUB R1 R1 R2 - 0x0804031C, // 0007 MUL R1 R1 K28 - 0x80040200, // 0008 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: web_sensor -********************************************************************/ -be_local_closure(class_AXP192_web_sensor, /* name */ - be_nested_proto( - 9, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_web_sensor, - &be_const_str_solidified, - ( &(const binstruction[25]) { /* code */ - 0x8804010A, // 0000 GETMBR R1 R0 K10 - 0x74060001, // 0001 JMPT R1 #0004 - 0x4C040000, // 0002 LDNIL R1 - 0x80040200, // 0003 RET 1 R1 - 0x60040018, // 0004 GETGBL R1 G24 - 0x400A3B1E, // 0005 CONNECT R2 K29 K30 - 0x4008051F, // 0006 CONNECT R2 R2 K31 - 0x40080520, // 0007 CONNECT R2 R2 K32 - 0x40080521, // 0008 CONNECT R2 R2 K33 - 0x8C0C0112, // 0009 GETMET R3 R0 K18 - 0x7C0C0200, // 000A CALL R3 1 - 0x8C100112, // 000B GETMET R4 R0 K18 - 0x7C100200, // 000C CALL R4 1 - 0x8C140113, // 000D GETMET R5 R0 K19 - 0x7C140200, // 000E CALL R5 1 - 0x8C180114, // 000F GETMET R6 R0 K20 - 0x7C180200, // 0010 CALL R6 1 - 0x8C1C0115, // 0011 GETMET R7 R0 K21 - 0x7C1C0200, // 0012 CALL R7 1 - 0x7C040C00, // 0013 CALL R1 6 - 0xB80A2C00, // 0014 GETNGBL R2 K22 - 0x8C080522, // 0015 GETMET R2 R2 K34 - 0x5C100200, // 0016 MOVE R4 R1 - 0x7C080400, // 0017 CALL R2 2 - 0x80000000, // 0018 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_battery_charging_status -********************************************************************/ -be_local_closure(class_AXP192_get_battery_charging_status, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_get_battery_charging_status, - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x8804010A, // 0000 GETMBR R1 R0 K10 - 0x8C04030B, // 0001 GETMET R1 R1 K11 - 0x880C010C, // 0002 GETMBR R3 R0 K12 - 0x58100000, // 0003 LDCONST R4 K0 - 0x58140000, // 0004 LDCONST R5 K0 - 0x7C040800, // 0005 CALL R1 4 - 0x80040200, // 0006 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_temp -********************************************************************/ -be_local_closure(class_AXP192_get_temp, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_get_temp, - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x8C040107, // 0000 GETMET R1 R0 K7 - 0x540E005D, // 0001 LDINT R3 94 - 0x7C040400, // 0002 CALL R1 2 - 0x08040323, // 0003 MUL R1 R1 K35 - 0x04040324, // 0004 SUB R1 R1 K36 - 0x80040200, // 0005 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_dc_voltage -********************************************************************/ -be_local_closure(class_AXP192_set_dc_voltage, /* name */ - be_nested_proto( - 11, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_set_dc_voltage, - &be_const_str_solidified, - ( &(const binstruction[48]) { /* code */ - 0x140C0300, // 0000 LT R3 R1 K0 - 0x740E0001, // 0001 JMPT R3 #0004 - 0x240C0304, // 0002 GT R3 R1 K4 - 0x780E0000, // 0003 JMPF R3 #0005 - 0x80000600, // 0004 RET 0 - 0x4C0C0000, // 0005 LDNIL R3 - 0x541202BB, // 0006 LDINT R4 700 - 0x14100404, // 0007 LT R4 R2 R4 - 0x78120001, // 0008 JMPF R4 #000B - 0x580C0002, // 0009 LDCONST R3 K2 - 0x70020010, // 000A JMP #001C - 0x54120DAB, // 000B LDINT R4 3500 - 0x24100404, // 000C GT R4 R2 R4 - 0x78120001, // 000D JMPF R4 #0010 - 0x540E006F, // 000E LDINT R3 112 - 0x7002000B, // 000F JMP #001C - 0x1C100303, // 0010 EQ R4 R1 K3 - 0x78120004, // 0011 JMPF R4 #0017 - 0x541208E2, // 0012 LDINT R4 2275 - 0x24100404, // 0013 GT R4 R2 R4 - 0x78120001, // 0014 JMPF R4 #0017 - 0x540E003E, // 0015 LDINT R3 63 - 0x70020004, // 0016 JMP #001C - 0x541202BB, // 0017 LDINT R4 700 - 0x04100404, // 0018 SUB R4 R2 R4 - 0x54160018, // 0019 LDINT R5 25 - 0x0C100805, // 001A DIV R4 R4 R5 - 0x5C0C0800, // 001B MOVE R3 R4 - 0x54120025, // 001C LDINT R4 38 - 0x1C140304, // 001D EQ R5 R1 K4 - 0x78160001, // 001E JMPF R5 #0021 - 0x54120026, // 001F LDINT R4 39 - 0x70020002, // 0020 JMP #0024 - 0x1C140303, // 0021 EQ R5 R1 K3 - 0x78160000, // 0022 JMPF R5 #0024 - 0x54120022, // 0023 LDINT R4 35 - 0x8C14010F, // 0024 GETMET R5 R0 K15 - 0x5C1C0800, // 0025 MOVE R7 R4 - 0x8C200110, // 0026 GETMET R8 R0 K16 - 0x5C280800, // 0027 MOVE R10 R4 - 0x7C200400, // 0028 CALL R8 2 - 0x5426007F, // 0029 LDINT R9 128 - 0x2C201009, // 002A AND R8 R8 R9 - 0x5426007E, // 002B LDINT R9 127 - 0x2C240609, // 002C AND R9 R3 R9 - 0x30201009, // 002D OR R8 R8 R9 - 0x7C140600, // 002E CALL R5 3 - 0x80000000, // 002F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: power_off -********************************************************************/ -be_local_closure(class_AXP192_power_off, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_power_off, - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x8C040101, // 0000 GETMET R1 R0 K1 - 0x540E0031, // 0001 LDINT R3 50 - 0x54120006, // 0002 LDINT R4 7 - 0x58140000, // 0003 LDCONST R5 K0 - 0x7C040800, // 0004 CALL R1 4 - 0x80000000, // 0005 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_chg_current -********************************************************************/ -be_local_closure(class_AXP192_set_chg_current, /* name */ - be_nested_proto( - 8, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_set_chg_current, - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x8C08010F, // 0000 GETMET R2 R0 K15 - 0x54120032, // 0001 LDINT R4 51 - 0x8C140110, // 0002 GETMET R5 R0 K16 - 0x541E0032, // 0003 LDINT R7 51 - 0x7C140400, // 0004 CALL R5 2 - 0x541A00EF, // 0005 LDINT R6 240 - 0x2C140A06, // 0006 AND R5 R5 R6 - 0x541A000E, // 0007 LDINT R6 15 - 0x2C180206, // 0008 AND R6 R1 R6 - 0x30140A06, // 0009 OR R5 R5 R6 - 0x7C080600, // 000A CALL R2 3 - 0x80000000, // 000B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_bat_charge_current -********************************************************************/ -be_local_closure(class_AXP192_get_bat_charge_current, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP192, /* shared constants */ - &be_const_str_get_bat_charge_current, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x8C04011B, // 0000 GETMET R1 R0 K27 - 0x540E0079, // 0001 LDINT R3 122 - 0x7C040400, // 0002 CALL R1 2 - 0x0804031C, // 0003 MUL R1 R1 K28 - 0x80040200, // 0004 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: AXP192 -********************************************************************/ -extern const bclass be_class_I2C_Driver; -be_local_class(AXP192, - 0, - &be_class_I2C_Driver, - be_nested_map(23, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(set_dcdc_enable, -1), be_const_closure(class_AXP192_set_dcdc_enable_closure) }, - { be_const_key(get_bat_power, -1), be_const_closure(class_AXP192_get_bat_power_closure) }, - { be_const_key(get_bat_charge_current, -1), be_const_closure(class_AXP192_get_bat_charge_current_closure) }, - { be_const_key(set_chg_current, -1), be_const_closure(class_AXP192_set_chg_current_closure) }, - { be_const_key(get_warning_level, -1), be_const_closure(class_AXP192_get_warning_level_closure) }, - { be_const_key(power_off, -1), be_const_closure(class_AXP192_power_off_closure) }, - { be_const_key(get_vbus_current, 22), be_const_closure(class_AXP192_get_vbus_current_closure) }, - { be_const_key(get_aps_voltage, 17), be_const_closure(class_AXP192_get_aps_voltage_closure) }, - { be_const_key(set_exten, -1), be_const_closure(class_AXP192_set_exten_closure) }, - { be_const_key(battery_present, -1), be_const_closure(class_AXP192_battery_present_closure) }, - { be_const_key(get_vbus_voltage, -1), be_const_closure(class_AXP192_get_vbus_voltage_closure) }, - { be_const_key(write_gpio, -1), be_const_closure(class_AXP192_write_gpio_closure) }, - { be_const_key(set_ldo_voltage, -1), be_const_closure(class_AXP192_set_ldo_voltage_closure) }, - { be_const_key(set_ldo_enable, 21), be_const_closure(class_AXP192_set_ldo_enable_closure) }, - { be_const_key(init, 2), be_const_closure(class_AXP192_init_closure) }, - { be_const_key(get_bat_current, -1), be_const_closure(class_AXP192_get_bat_current_closure) }, - { be_const_key(web_sensor, -1), be_const_closure(class_AXP192_web_sensor_closure) }, - { be_const_key(get_battery_charging_status, -1), be_const_closure(class_AXP192_get_battery_charging_status_closure) }, - { be_const_key(get_temp, -1), be_const_closure(class_AXP192_get_temp_closure) }, - { be_const_key(set_dc_voltage, 3), be_const_closure(class_AXP192_set_dc_voltage_closure) }, - { be_const_key(get_bat_voltage, 5), be_const_closure(class_AXP192_get_bat_voltage_closure) }, - { be_const_key(json_append, -1), be_const_closure(class_AXP192_json_append_closure) }, - { be_const_key(get_input_power_status, -1), be_const_closure(class_AXP192_get_input_power_status_closure) }, - })), - (bstring*) &be_const_str_AXP192 -); -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_AXP202.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_AXP202.h deleted file mode 100644 index 77e4fb3e5..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_AXP202.h +++ /dev/null @@ -1,853 +0,0 @@ -/* Solidification of AXP202.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -// compact class 'AXP202' ktab size: 24, total: 64 (saved 320 bytes) -static const bvalue be_ktab_class_AXP202[24] = { - /* K0 */ be_const_int(0), - /* K1 */ be_const_int(1), - /* K2 */ be_const_int(2), - /* K3 */ be_const_int(3), - /* K4 */ be_nested_str(write8), - /* K5 */ be_nested_str(read8), - /* K6 */ be_nested_str(read12), - /* K7 */ be_const_real_hex(0x3EC00000), - /* K8 */ be_nested_str(read13), - /* K9 */ be_const_real_hex(0x3F000000), - /* K10 */ be_nested_str(read24), - /* K11 */ be_const_real_hex(0x3A102DE0), - /* K12 */ be_nested_str(wire), - /* K13 */ be_nested_str(read), - /* K14 */ be_nested_str(addr), - /* K15 */ be_const_real_hex(0x3ADED28A), - /* K16 */ be_const_real_hex(0x3AB78035), - /* K17 */ be_nested_str(write_bit), - /* K18 */ be_nested_str(I2C_Driver), - /* K19 */ be_nested_str(init), - /* K20 */ be_nested_str(AXP202), - /* K21 */ be_const_real_hex(0x3A902DE0), - /* K22 */ be_const_real_hex(0x3DCCCCCD), - /* K23 */ be_const_real_hex(0x4310B333), -}; - - -extern const bclass be_class_AXP202; - -/******************************************************************** -** Solidified function: set_shutdown_time -********************************************************************/ -be_local_closure(class_AXP202_set_shutdown_time, /* name */ - be_nested_proto( - 9, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP202, /* shared constants */ - &be_const_str_set_shutdown_time, - &be_const_str_solidified, - ( &(const binstruction[24]) { /* code */ - 0x58080000, // 0000 LDCONST R2 K0 - 0x540E0005, // 0001 LDINT R3 6 - 0x1C0C0203, // 0002 EQ R3 R1 R3 - 0x780E0000, // 0003 JMPF R3 #0005 - 0x58080001, // 0004 LDCONST R2 K1 - 0x540E0007, // 0005 LDINT R3 8 - 0x1C0C0203, // 0006 EQ R3 R1 R3 - 0x780E0000, // 0007 JMPF R3 #0009 - 0x58080002, // 0008 LDCONST R2 K2 - 0x540E0009, // 0009 LDINT R3 10 - 0x1C0C0203, // 000A EQ R3 R1 R3 - 0x780E0000, // 000B JMPF R3 #000D - 0x58080003, // 000C LDCONST R2 K3 - 0x8C0C0104, // 000D GETMET R3 R0 K4 - 0x54160035, // 000E LDINT R5 54 - 0x8C180105, // 000F GETMET R6 R0 K5 - 0x54220035, // 0010 LDINT R8 54 - 0x7C180400, // 0011 CALL R6 2 - 0x541E00FB, // 0012 LDINT R7 252 - 0x2C180C07, // 0013 AND R6 R6 R7 - 0x2C1C0503, // 0014 AND R7 R2 K3 - 0x30180C07, // 0015 OR R6 R6 R7 - 0x7C0C0600, // 0016 CALL R3 3 - 0x80000000, // 0017 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_vbus_current -********************************************************************/ -be_local_closure(class_AXP202_get_vbus_current, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP202, /* shared constants */ - &be_const_str_get_vbus_current, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x8C040106, // 0000 GETMET R1 R0 K6 - 0x540E005B, // 0001 LDINT R3 92 - 0x7C040400, // 0002 CALL R1 2 - 0x08040307, // 0003 MUL R1 R1 K7 - 0x80040200, // 0004 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_bat_charge_current -********************************************************************/ -be_local_closure(class_AXP202_get_bat_charge_current, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP202, /* shared constants */ - &be_const_str_get_bat_charge_current, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x8C040108, // 0000 GETMET R1 R0 K8 - 0x540E0079, // 0001 LDINT R3 122 - 0x7C040400, // 0002 CALL R1 2 - 0x08040309, // 0003 MUL R1 R1 K9 - 0x80040200, // 0004 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_bat_current -********************************************************************/ -be_local_closure(class_AXP202_get_bat_current, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP202, /* shared constants */ - &be_const_str_get_bat_current, - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x8C040108, // 0000 GETMET R1 R0 K8 - 0x540E0079, // 0001 LDINT R3 122 - 0x7C040400, // 0002 CALL R1 2 - 0x8C080108, // 0003 GETMET R2 R0 K8 - 0x5412007B, // 0004 LDINT R4 124 - 0x7C080400, // 0005 CALL R2 2 - 0x04040202, // 0006 SUB R1 R1 R2 - 0x08040309, // 0007 MUL R1 R1 K9 - 0x80040200, // 0008 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_bat_power -********************************************************************/ -be_local_closure(class_AXP202_get_bat_power, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP202, /* shared constants */ - &be_const_str_get_bat_power, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x8C04010A, // 0000 GETMET R1 R0 K10 - 0x540E006F, // 0001 LDINT R3 112 - 0x7C040400, // 0002 CALL R1 2 - 0x0804030B, // 0003 MUL R1 R1 K11 - 0x80040200, // 0004 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_battery_charging_status -********************************************************************/ -be_local_closure(class_AXP202_get_battery_charging_status, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP202, /* shared constants */ - &be_const_str_get_battery_charging_status, - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x8804010C, // 0000 GETMBR R1 R0 K12 - 0x8C04030D, // 0001 GETMET R1 R1 K13 - 0x880C010E, // 0002 GETMBR R3 R0 K14 - 0x58100001, // 0003 LDCONST R4 K1 - 0x58140001, // 0004 LDCONST R5 K1 - 0x7C040800, // 0005 CALL R1 4 - 0x80040200, // 0006 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_vbus_voltage -********************************************************************/ -be_local_closure(class_AXP202_get_vbus_voltage, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP202, /* shared constants */ - &be_const_str_get_vbus_voltage, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x8C040106, // 0000 GETMET R1 R0 K6 - 0x540E0059, // 0001 LDINT R3 90 - 0x7C040400, // 0002 CALL R1 2 - 0x0804030F, // 0003 MUL R1 R1 K15 - 0x80040200, // 0004 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_aps_voltage -********************************************************************/ -be_local_closure(class_AXP202_get_aps_voltage, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP202, /* shared constants */ - &be_const_str_get_aps_voltage, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x8C040106, // 0000 GETMET R1 R0 K6 - 0x540E007D, // 0001 LDINT R3 126 - 0x7C040400, // 0002 CALL R1 2 - 0x08040310, // 0003 MUL R1 R1 K16 - 0x80040200, // 0004 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: battery_present -********************************************************************/ -be_local_closure(class_AXP202_battery_present, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP202, /* shared constants */ - &be_const_str_battery_present, - &be_const_str_solidified, - ( &(const binstruction[15]) { /* code */ - 0x8804010C, // 0000 GETMBR R1 R0 K12 - 0x8C04030D, // 0001 GETMET R1 R1 K13 - 0x880C010E, // 0002 GETMBR R3 R0 K14 - 0x58100001, // 0003 LDCONST R4 K1 - 0x58140001, // 0004 LDCONST R5 K1 - 0x7C040800, // 0005 CALL R1 4 - 0x540A001F, // 0006 LDINT R2 32 - 0x2C040202, // 0007 AND R1 R1 R2 - 0x78060002, // 0008 JMPF R1 #000C - 0x50040200, // 0009 LDBOOL R1 1 0 - 0x80040200, // 000A RET 1 R1 - 0x70020001, // 000B JMP #000E - 0x50040000, // 000C LDBOOL R1 0 0 - 0x80040200, // 000D RET 1 R1 - 0x80000000, // 000E RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_chg_current_ma -********************************************************************/ -be_local_closure(class_AXP202_set_chg_current_ma, /* name */ - be_nested_proto( - 9, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP202, /* shared constants */ - &be_const_str_set_chg_current_ma, - &be_const_str_solidified, - ( &(const binstruction[16]) { /* code */ - 0x540A012B, // 0000 LDINT R2 300 - 0x04080202, // 0001 SUB R2 R1 R2 - 0x540E0063, // 0002 LDINT R3 100 - 0x0C080403, // 0003 DIV R2 R2 R3 - 0x8C0C0104, // 0004 GETMET R3 R0 K4 - 0x54160032, // 0005 LDINT R5 51 - 0x8C180105, // 0006 GETMET R6 R0 K5 - 0x54220032, // 0007 LDINT R8 51 - 0x7C180400, // 0008 CALL R6 2 - 0x541E00EF, // 0009 LDINT R7 240 - 0x2C180C07, // 000A AND R6 R6 R7 - 0x541E000E, // 000B LDINT R7 15 - 0x2C1C0407, // 000C AND R7 R2 R7 - 0x30180C07, // 000D OR R6 R6 R7 - 0x7C0C0600, // 000E CALL R3 3 - 0x80000000, // 000F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_dcdc_enable -********************************************************************/ -be_local_closure(class_AXP202_set_dcdc_enable, /* name */ - be_nested_proto( - 8, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP202, /* shared constants */ - &be_const_str_set_dcdc_enable, - &be_const_str_solidified, - ( &(const binstruction[15]) { /* code */ - 0x1C0C0302, // 0000 EQ R3 R1 K2 - 0x780E0004, // 0001 JMPF R3 #0007 - 0x8C0C0111, // 0002 GETMET R3 R0 K17 - 0x54160011, // 0003 LDINT R5 18 - 0x541A0003, // 0004 LDINT R6 4 - 0x5C1C0400, // 0005 MOVE R7 R2 - 0x7C0C0800, // 0006 CALL R3 4 - 0x1C0C0303, // 0007 EQ R3 R1 K3 - 0x780E0004, // 0008 JMPF R3 #000E - 0x8C0C0111, // 0009 GETMET R3 R0 K17 - 0x54160011, // 000A LDINT R5 18 - 0x58180001, // 000B LDCONST R6 K1 - 0x5C1C0400, // 000C MOVE R7 R2 - 0x7C0C0800, // 000D CALL R3 4 - 0x80000000, // 000E RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_chg_led_mode -********************************************************************/ -be_local_closure(class_AXP202_set_chg_led_mode, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP202, /* shared constants */ - &be_const_str_set_chg_led_mode, - &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0x8C080105, // 0000 GETMET R2 R0 K5 - 0x54120031, // 0001 LDINT R4 50 - 0x7C080400, // 0002 CALL R2 2 - 0x540E00CE, // 0003 LDINT R3 207 - 0x2C0C0403, // 0004 AND R3 R2 R3 - 0x54120007, // 0005 LDINT R4 8 - 0x300C0604, // 0006 OR R3 R3 R4 - 0x5C080600, // 0007 MOVE R2 R3 - 0x2C0C0303, // 0008 AND R3 R1 K3 - 0x54120003, // 0009 LDINT R4 4 - 0x380C0604, // 000A SHL R3 R3 R4 - 0x30080403, // 000B OR R2 R2 R3 - 0x8C0C0104, // 000C GETMET R3 R0 K4 - 0x54160031, // 000D LDINT R5 50 - 0x5C180400, // 000E MOVE R6 R2 - 0x7C0C0600, // 000F CALL R3 3 - 0x80000000, // 0010 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_AXP202_init, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP202, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0x4C080000, // 0000 LDNIL R2 - 0x1C080202, // 0001 EQ R2 R1 R2 - 0x780A0000, // 0002 JMPF R2 #0004 - 0x54060034, // 0003 LDINT R1 53 - 0x60080003, // 0004 GETGBL R2 G3 - 0x5C0C0000, // 0005 MOVE R3 R0 - 0xB8122400, // 0006 GETNGBL R4 K18 - 0x7C080400, // 0007 CALL R2 2 - 0x8C080513, // 0008 GETMET R2 R2 K19 - 0x58100014, // 0009 LDCONST R4 K20 - 0x54160034, // 000A LDINT R5 53 - 0x7C080600, // 000B CALL R2 3 - 0x80000000, // 000C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_exten -********************************************************************/ -be_local_closure(class_AXP202_set_exten, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP202, /* shared constants */ - &be_const_str_set_exten, - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x8C080111, // 0000 GETMET R2 R0 K17 - 0x54120011, // 0001 LDINT R4 18 - 0x58140000, // 0002 LDCONST R5 K0 - 0x5C180200, // 0003 MOVE R6 R1 - 0x7C080800, // 0004 CALL R2 4 - 0x80000000, // 0005 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_ldo_voltage -********************************************************************/ -be_local_closure(class_AXP202_set_ldo_voltage, /* name */ - be_nested_proto( - 9, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP202, /* shared constants */ - &be_const_str_set_ldo_voltage, - &be_const_str_solidified, - ( &(const binstruction[59]) { /* code */ - 0x540E0CE3, // 0000 LDINT R3 3300 - 0x240C0403, // 0001 GT R3 R2 R3 - 0x780E0000, // 0002 JMPF R3 #0004 - 0x540A000E, // 0003 LDINT R2 15 - 0x1C0C0302, // 0004 EQ R3 R1 K2 - 0x740E0002, // 0005 JMPT R3 #0009 - 0x540E0003, // 0006 LDINT R3 4 - 0x1C0C0203, // 0007 EQ R3 R1 R3 - 0x780E0020, // 0008 JMPF R3 #002A - 0x540E0063, // 0009 LDINT R3 100 - 0x0C0C0403, // 000A DIV R3 R2 R3 - 0x54120011, // 000B LDINT R4 18 - 0x040C0604, // 000C SUB R3 R3 R4 - 0x5C080600, // 000D MOVE R2 R3 - 0x1C0C0302, // 000E EQ R3 R1 K2 - 0x780E000D, // 000F JMPF R3 #001E - 0x8C0C0104, // 0010 GETMET R3 R0 K4 - 0x54160027, // 0011 LDINT R5 40 - 0x8C180105, // 0012 GETMET R6 R0 K5 - 0x54220027, // 0013 LDINT R8 40 - 0x7C180400, // 0014 CALL R6 2 - 0x541E000E, // 0015 LDINT R7 15 - 0x2C180C07, // 0016 AND R6 R6 R7 - 0x541E000E, // 0017 LDINT R7 15 - 0x2C1C0407, // 0018 AND R7 R2 R7 - 0x54220003, // 0019 LDINT R8 4 - 0x381C0E08, // 001A SHL R7 R7 R8 - 0x30180C07, // 001B OR R6 R6 R7 - 0x7C0C0600, // 001C CALL R3 3 - 0x7002000A, // 001D JMP #0029 - 0x8C0C0104, // 001E GETMET R3 R0 K4 - 0x54160027, // 001F LDINT R5 40 - 0x8C180105, // 0020 GETMET R6 R0 K5 - 0x54220027, // 0021 LDINT R8 40 - 0x7C180400, // 0022 CALL R6 2 - 0x541E00EF, // 0023 LDINT R7 240 - 0x2C180C07, // 0024 AND R6 R6 R7 - 0x541E000E, // 0025 LDINT R7 15 - 0x2C1C0407, // 0026 AND R7 R2 R7 - 0x30180C07, // 0027 OR R6 R6 R7 - 0x7C0C0600, // 0028 CALL R3 3 - 0x7002000F, // 0029 JMP #003A - 0x540E0018, // 002A LDINT R3 25 - 0x0C0C0403, // 002B DIV R3 R2 R3 - 0x5412001B, // 002C LDINT R4 28 - 0x040C0604, // 002D SUB R3 R3 R4 - 0x5C080600, // 002E MOVE R2 R3 - 0x8C0C0104, // 002F GETMET R3 R0 K4 - 0x54160027, // 0030 LDINT R5 40 - 0x8C180105, // 0031 GETMET R6 R0 K5 - 0x54220028, // 0032 LDINT R8 41 - 0x7C180400, // 0033 CALL R6 2 - 0x541E007F, // 0034 LDINT R7 128 - 0x2C180C07, // 0035 AND R6 R6 R7 - 0x541E007E, // 0036 LDINT R7 127 - 0x2C1C0407, // 0037 AND R7 R2 R7 - 0x30180C07, // 0038 OR R6 R6 R7 - 0x7C0C0600, // 0039 CALL R3 3 - 0x80000000, // 003A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_dc_voltage -********************************************************************/ -be_local_closure(class_AXP202_set_dc_voltage, /* name */ - be_nested_proto( - 11, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP202, /* shared constants */ - &be_const_str_set_dc_voltage, - &be_const_str_solidified, - ( &(const binstruction[44]) { /* code */ - 0x140C0302, // 0000 LT R3 R1 K2 - 0x740E0001, // 0001 JMPT R3 #0004 - 0x240C0303, // 0002 GT R3 R1 K3 - 0x780E0000, // 0003 JMPF R3 #0005 - 0x80000600, // 0004 RET 0 - 0x4C0C0000, // 0005 LDNIL R3 - 0x541202BB, // 0006 LDINT R4 700 - 0x14100404, // 0007 LT R4 R2 R4 - 0x78120001, // 0008 JMPF R4 #000B - 0x580C0000, // 0009 LDCONST R3 K0 - 0x70020010, // 000A JMP #001C - 0x54120DAB, // 000B LDINT R4 3500 - 0x24100404, // 000C GT R4 R2 R4 - 0x78120001, // 000D JMPF R4 #0010 - 0x540E006F, // 000E LDINT R3 112 - 0x7002000B, // 000F JMP #001C - 0x1C100302, // 0010 EQ R4 R1 K2 - 0x78120004, // 0011 JMPF R4 #0017 - 0x541208E2, // 0012 LDINT R4 2275 - 0x24100404, // 0013 GT R4 R2 R4 - 0x78120001, // 0014 JMPF R4 #0017 - 0x540E003E, // 0015 LDINT R3 63 - 0x70020004, // 0016 JMP #001C - 0x541202BB, // 0017 LDINT R4 700 - 0x04100404, // 0018 SUB R4 R2 R4 - 0x54160018, // 0019 LDINT R5 25 - 0x0C100805, // 001A DIV R4 R4 R5 - 0x5C0C0800, // 001B MOVE R3 R4 - 0x54120022, // 001C LDINT R4 35 - 0x1C140303, // 001D EQ R5 R1 K3 - 0x78160000, // 001E JMPF R5 #0020 - 0x54120026, // 001F LDINT R4 39 - 0x8C140104, // 0020 GETMET R5 R0 K4 - 0x5C1C0800, // 0021 MOVE R7 R4 - 0x8C200105, // 0022 GETMET R8 R0 K5 - 0x5C280800, // 0023 MOVE R10 R4 - 0x7C200400, // 0024 CALL R8 2 - 0x5426007F, // 0025 LDINT R9 128 - 0x2C201009, // 0026 AND R8 R8 R9 - 0x5426007E, // 0027 LDINT R9 127 - 0x2C240609, // 0028 AND R9 R3 R9 - 0x30201009, // 0029 OR R8 R8 R9 - 0x7C140600, // 002A CALL R5 3 - 0x80000000, // 002B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_bat_voltage -********************************************************************/ -be_local_closure(class_AXP202_get_bat_voltage, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP202, /* shared constants */ - &be_const_str_get_bat_voltage, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x8C040106, // 0000 GETMET R1 R0 K6 - 0x540E0077, // 0001 LDINT R3 120 - 0x7C040400, // 0002 CALL R1 2 - 0x08040315, // 0003 MUL R1 R1 K21 - 0x80040200, // 0004 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_temp -********************************************************************/ -be_local_closure(class_AXP202_get_temp, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP202, /* shared constants */ - &be_const_str_get_temp, - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x8C040106, // 0000 GETMET R1 R0 K6 - 0x540E005D, // 0001 LDINT R3 94 - 0x7C040400, // 0002 CALL R1 2 - 0x08040316, // 0003 MUL R1 R1 K22 - 0x04040317, // 0004 SUB R1 R1 K23 - 0x80040200, // 0005 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_ldo_enable -********************************************************************/ -be_local_closure(class_AXP202_set_ldo_enable, /* name */ - be_nested_proto( - 8, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP202, /* shared constants */ - &be_const_str_set_ldo_enable, - &be_const_str_solidified, - ( &(const binstruction[23]) { /* code */ - 0x1C0C0302, // 0000 EQ R3 R1 K2 - 0x780E0004, // 0001 JMPF R3 #0007 - 0x8C0C0111, // 0002 GETMET R3 R0 K17 - 0x54160011, // 0003 LDINT R5 18 - 0x58180002, // 0004 LDCONST R6 K2 - 0x5C1C0400, // 0005 MOVE R7 R2 - 0x7C0C0800, // 0006 CALL R3 4 - 0x1C0C0303, // 0007 EQ R3 R1 K3 - 0x780E0004, // 0008 JMPF R3 #000E - 0x8C0C0111, // 0009 GETMET R3 R0 K17 - 0x54160011, // 000A LDINT R5 18 - 0x541A0005, // 000B LDINT R6 6 - 0x5C1C0400, // 000C MOVE R7 R2 - 0x7C0C0800, // 000D CALL R3 4 - 0x540E0003, // 000E LDINT R3 4 - 0x1C0C0203, // 000F EQ R3 R1 R3 - 0x780E0004, // 0010 JMPF R3 #0016 - 0x8C0C0111, // 0011 GETMET R3 R0 K17 - 0x54160011, // 0012 LDINT R5 18 - 0x58180003, // 0013 LDCONST R6 K3 - 0x5C1C0400, // 0014 MOVE R7 R2 - 0x7C0C0800, // 0015 CALL R3 4 - 0x80000000, // 0016 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_limiting_off -********************************************************************/ -be_local_closure(class_AXP202_set_limiting_off, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP202, /* shared constants */ - &be_const_str_set_limiting_off, - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x8C040104, // 0000 GETMET R1 R0 K4 - 0x540E002F, // 0001 LDINT R3 48 - 0x8C100105, // 0002 GETMET R4 R0 K5 - 0x541A002F, // 0003 LDINT R6 48 - 0x7C100400, // 0004 CALL R4 2 - 0x30100903, // 0005 OR R4 R4 K3 - 0x7C040600, // 0006 CALL R1 3 - 0x80000000, // 0007 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_input_power_status -********************************************************************/ -be_local_closure(class_AXP202_get_input_power_status, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP202, /* shared constants */ - &be_const_str_get_input_power_status, - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x8804010C, // 0000 GETMBR R1 R0 K12 - 0x8C04030D, // 0001 GETMET R1 R1 K13 - 0x880C010E, // 0002 GETMBR R3 R0 K14 - 0x58100000, // 0003 LDCONST R4 K0 - 0x58140001, // 0004 LDCONST R5 K1 - 0x7C040800, // 0005 CALL R1 4 - 0x80040200, // 0006 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: AXP202 -********************************************************************/ -extern const bclass be_class_I2C_Driver; -be_local_class(AXP202, - 0, - &be_class_I2C_Driver, - be_nested_map(21, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(set_shutdown_time, -1), be_const_closure(class_AXP202_set_shutdown_time_closure) }, - { be_const_key(get_vbus_current, -1), be_const_closure(class_AXP202_get_vbus_current_closure) }, - { be_const_key(get_aps_voltage, -1), be_const_closure(class_AXP202_get_aps_voltage_closure) }, - { be_const_key(get_bat_current, -1), be_const_closure(class_AXP202_get_bat_current_closure) }, - { be_const_key(get_bat_power, 2), be_const_closure(class_AXP202_get_bat_power_closure) }, - { be_const_key(get_battery_charging_status, -1), be_const_closure(class_AXP202_get_battery_charging_status_closure) }, - { be_const_key(get_vbus_voltage, -1), be_const_closure(class_AXP202_get_vbus_voltage_closure) }, - { be_const_key(set_ldo_voltage, -1), be_const_closure(class_AXP202_set_ldo_voltage_closure) }, - { be_const_key(battery_present, -1), be_const_closure(class_AXP202_battery_present_closure) }, - { be_const_key(set_chg_current_ma, -1), be_const_closure(class_AXP202_set_chg_current_ma_closure) }, - { be_const_key(set_dcdc_enable, -1), be_const_closure(class_AXP202_set_dcdc_enable_closure) }, - { be_const_key(set_chg_led_mode, 16), be_const_closure(class_AXP202_set_chg_led_mode_closure) }, - { be_const_key(init, 14), be_const_closure(class_AXP202_init_closure) }, - { be_const_key(set_exten, -1), be_const_closure(class_AXP202_set_exten_closure) }, - { be_const_key(set_ldo_enable, -1), be_const_closure(class_AXP202_set_ldo_enable_closure) }, - { be_const_key(get_bat_charge_current, 17), be_const_closure(class_AXP202_get_bat_charge_current_closure) }, - { be_const_key(get_temp, 7), be_const_closure(class_AXP202_get_temp_closure) }, - { be_const_key(get_bat_voltage, 18), be_const_closure(class_AXP202_get_bat_voltage_closure) }, - { be_const_key(set_dc_voltage, -1), be_const_closure(class_AXP202_set_dc_voltage_closure) }, - { be_const_key(set_limiting_off, -1), be_const_closure(class_AXP202_set_limiting_off_closure) }, - { be_const_key(get_input_power_status, -1), be_const_closure(class_AXP202_get_input_power_status_closure) }, - })), - (bstring*) &be_const_str_AXP202 -); -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_AXP2102.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_AXP2102.h deleted file mode 100644 index 834cee80d..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_AXP2102.h +++ /dev/null @@ -1,878 +0,0 @@ -/* Solidification of AXP2102.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -// compact class 'AXP2102' ktab size: 18, total: 58 (saved 320 bytes) -static const bvalue be_ktab_class_AXP2102[18] = { - /* K0 */ be_nested_str(read8), - /* K1 */ be_const_int(1), - /* K2 */ be_nested_str(wire), - /* K3 */ be_nested_str(read), - /* K4 */ be_nested_str(addr), - /* K5 */ be_const_int(0), - /* K6 */ be_nested_str(init), - /* K7 */ be_nested_str(AXP2102), - /* K8 */ be_nested_str(write8), - /* K9 */ be_nested_str(read16), - /* K10 */ be_const_int(3), - /* K11 */ be_const_int(2), - /* K12 */ be_nested_str(_charge), - /* K13 */ be_nested_str(_pre_charge), - /* K14 */ be_nested_str(read14), - /* K15 */ be_const_real_hex(0x447A0000), - /* K16 */ be_nested_str(_charge_voltage), - /* K17 */ be_nested_str(get_vbus_good), -}; - - -extern const bclass be_class_AXP2102; - -/******************************************************************** -** Solidified function: is_charging -********************************************************************/ -be_local_closure(class_AXP2102_is_charging, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP2102, /* shared constants */ - &be_const_str_is_charging, - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x580C0001, // 0001 LDCONST R3 K1 - 0x7C040400, // 0002 CALL R1 2 - 0x540A005F, // 0003 LDINT R2 96 - 0x2C040202, // 0004 AND R1 R1 R2 - 0x540A001F, // 0005 LDINT R2 32 - 0x1C040202, // 0006 EQ R1 R1 R2 - 0x80040200, // 0007 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: battery_present -********************************************************************/ -be_local_closure(class_AXP2102_battery_present, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP2102, /* shared constants */ - &be_const_str_battery_present, - &be_const_str_solidified, - ( &(const binstruction[11]) { /* code */ - 0x60040017, // 0000 GETGBL R1 G23 - 0x88080102, // 0001 GETMBR R2 R0 K2 - 0x8C080503, // 0002 GETMET R2 R2 K3 - 0x88100104, // 0003 GETMBR R4 R0 K4 - 0x58140005, // 0004 LDCONST R5 K5 - 0x58180001, // 0005 LDCONST R6 K1 - 0x7C080800, // 0006 CALL R2 4 - 0x540E0007, // 0007 LDINT R3 8 - 0x2C080403, // 0008 AND R2 R2 R3 - 0x7C040200, // 0009 CALL R1 1 - 0x80040200, // 000A RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_AXP2102_init, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP2102, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x4C080000, // 0000 LDNIL R2 - 0x1C080202, // 0001 EQ R2 R1 R2 - 0x780A0000, // 0002 JMPF R2 #0004 - 0x54060033, // 0003 LDINT R1 52 - 0x60080003, // 0004 GETGBL R2 G3 - 0x5C0C0000, // 0005 MOVE R3 R0 - 0x7C080200, // 0006 CALL R2 1 - 0x8C080506, // 0007 GETMET R2 R2 K6 - 0x58100007, // 0008 LDCONST R4 K7 - 0x5C140200, // 0009 MOVE R5 R1 - 0x7C080600, // 000A CALL R2 3 - 0x80000000, // 000B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_dldo_voltage -********************************************************************/ -be_local_closure(class_AXP2102_set_dldo_voltage, /* name */ - be_nested_proto( - 13, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP2102, /* shared constants */ - &be_const_str_set_dldo_voltage, - &be_const_str_solidified, - ( &(const binstruction[58]) { /* code */ - 0x140C0305, // 0000 LT R3 R1 K5 - 0x740E0001, // 0001 JMPT R3 #0004 - 0x240C0301, // 0002 GT R3 R1 K1 - 0x780E0000, // 0003 JMPF R3 #0005 - 0x80000600, // 0004 RET 0 - 0x540E0098, // 0005 LDINT R3 153 - 0x000C0203, // 0006 ADD R3 R1 R3 - 0x541201F3, // 0007 LDINT R4 500 - 0x04080404, // 0008 SUB R2 R2 R4 - 0x14100505, // 0009 LT R4 R2 K5 - 0x78120001, // 000A JMPF R4 #000D - 0x58100005, // 000B LDCONST R4 K5 - 0x70020004, // 000C JMP #0012 - 0x78060001, // 000D JMPF R1 #0010 - 0x54120031, // 000E LDINT R4 50 - 0x70020000, // 000F JMP #0011 - 0x54120063, // 0010 LDINT R4 100 - 0x0C100404, // 0011 DIV R4 R2 R4 - 0x78060001, // 0012 JMPF R1 #0015 - 0x54160012, // 0013 LDINT R5 19 - 0x70020000, // 0014 JMP #0016 - 0x5416001B, // 0015 LDINT R5 28 - 0x24140805, // 0016 GT R5 R4 R5 - 0x78160004, // 0017 JMPF R5 #001D - 0x78060001, // 0018 JMPF R1 #001B - 0x54160012, // 0019 LDINT R5 19 - 0x70020000, // 001A JMP #001C - 0x5416001B, // 001B LDINT R5 28 - 0x5C100A00, // 001C MOVE R4 R5 - 0x8C140108, // 001D GETMET R5 R0 K8 - 0x5C1C0600, // 001E MOVE R7 R3 - 0x5C200800, // 001F MOVE R8 R4 - 0x7C140600, // 0020 CALL R5 3 - 0x5416008F, // 0021 LDINT R5 144 - 0x00140A01, // 0022 ADD R5 R5 R1 - 0x78060001, // 0023 JMPF R1 #0026 - 0x58180001, // 0024 LDCONST R6 K1 - 0x70020000, // 0025 JMP #0027 - 0x541A007F, // 0026 LDINT R6 128 - 0x141C0505, // 0027 LT R7 R2 K5 - 0x781E0008, // 0028 JMPF R7 #0032 - 0x8C1C0108, // 0029 GETMET R7 R0 K8 - 0x5426008F, // 002A LDINT R9 144 - 0x8C280100, // 002B GETMET R10 R0 K0 - 0x5C300A00, // 002C MOVE R12 R5 - 0x7C280400, // 002D CALL R10 2 - 0x482C0C00, // 002E FLIP R11 R6 - 0x2C28140B, // 002F AND R10 R10 R11 - 0x7C1C0600, // 0030 CALL R7 3 - 0x70020006, // 0031 JMP #0039 - 0x8C1C0108, // 0032 GETMET R7 R0 K8 - 0x5426008F, // 0033 LDINT R9 144 - 0x8C280100, // 0034 GETMET R10 R0 K0 - 0x5C300A00, // 0035 MOVE R12 R5 - 0x7C280400, // 0036 CALL R10 2 - 0x30281406, // 0037 OR R10 R10 R6 - 0x7C1C0600, // 0038 CALL R7 3 - 0x80000000, // 0039 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_temp -********************************************************************/ -be_local_closure(class_AXP2102_get_temp, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP2102, /* shared constants */ - &be_const_str_get_temp, - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0x54060015, // 0000 LDINT R1 22 - 0x540A1C69, // 0001 LDINT R2 7274 - 0x8C0C0109, // 0002 GETMET R3 R0 K9 - 0x5416003B, // 0003 LDINT R5 60 - 0x7C0C0400, // 0004 CALL R3 2 - 0x04080403, // 0005 SUB R2 R2 R3 - 0x540E0013, // 0006 LDINT R3 20 - 0x0C080403, // 0007 DIV R2 R2 R3 - 0x00040202, // 0008 ADD R1 R1 R2 - 0x80040200, // 0009 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_ldo_enable -********************************************************************/ -be_local_closure(class_AXP2102_get_ldo_enable, /* name */ - be_nested_proto( - 8, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP2102, /* shared constants */ - &be_const_str_get_ldo_enable, - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0x50080000, // 0000 LDBOOL R2 0 0 - 0x540E0004, // 0001 LDINT R3 5 - 0x180C0203, // 0002 LE R3 R1 R3 - 0x780E0007, // 0003 JMPF R3 #000C - 0x380E0201, // 0004 SHL R3 K1 R1 - 0x60100017, // 0005 GETGBL R4 G23 - 0x8C140100, // 0006 GETMET R5 R0 K0 - 0x541E008F, // 0007 LDINT R7 144 - 0x7C140400, // 0008 CALL R5 2 - 0x2C140A03, // 0009 AND R5 R5 R3 - 0x7C100200, // 000A CALL R4 1 - 0x5C080800, // 000B MOVE R2 R4 - 0x80040400, // 000C RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_battery_charging_status -********************************************************************/ -be_local_closure(class_AXP2102_get_battery_charging_status, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP2102, /* shared constants */ - &be_const_str_get_battery_charging_status, - &be_const_str_solidified, - ( &(const binstruction[16]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x580C0001, // 0001 LDCONST R3 K1 - 0x7C040400, // 0002 CALL R1 2 - 0x540A0004, // 0003 LDINT R2 5 - 0x3C040202, // 0004 SHR R1 R1 R2 - 0x2C04030A, // 0005 AND R1 R1 K10 - 0x1C080301, // 0006 EQ R2 R1 K1 - 0x780A0001, // 0007 JMPF R2 #000A - 0x58080001, // 0008 LDCONST R2 K1 - 0x70020004, // 0009 JMP #000F - 0x1C08030B, // 000A EQ R2 R1 K11 - 0x780A0001, // 000B JMPF R2 #000E - 0x5409FFFE, // 000C LDINT R2 -1 - 0x70020000, // 000D JMP #000F - 0x58080005, // 000E LDCONST R2 K5 - 0x80040400, // 000F RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_ldo_voltage -********************************************************************/ -be_local_closure(class_AXP2102_set_ldo_voltage, /* name */ - be_nested_proto( - 12, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP2102, /* shared constants */ - &be_const_str_set_ldo_voltage, - &be_const_str_solidified, - ( &(const binstruction[44]) { /* code */ - 0x140C0305, // 0000 LT R3 R1 K5 - 0x740E0002, // 0001 JMPT R3 #0005 - 0x540E0004, // 0002 LDINT R3 5 - 0x240C0203, // 0003 GT R3 R1 R3 - 0x780E0000, // 0004 JMPF R3 #0006 - 0x80000600, // 0005 RET 0 - 0x540E0091, // 0006 LDINT R3 146 - 0x000C0203, // 0007 ADD R3 R1 R3 - 0x541201F3, // 0008 LDINT R4 500 - 0x04080404, // 0009 SUB R2 R2 R4 - 0x14100505, // 000A LT R4 R2 K5 - 0x78120001, // 000B JMPF R4 #000E - 0x58100005, // 000C LDCONST R4 K5 - 0x70020001, // 000D JMP #0010 - 0x54120063, // 000E LDINT R4 100 - 0x0C100404, // 000F DIV R4 R2 R4 - 0x5416001D, // 0010 LDINT R5 30 - 0x24140805, // 0011 GT R5 R4 R5 - 0x78160000, // 0012 JMPF R5 #0014 - 0x5412001D, // 0013 LDINT R4 30 - 0x8C140108, // 0014 GETMET R5 R0 K8 - 0x5C1C0600, // 0015 MOVE R7 R3 - 0x5C200800, // 0016 MOVE R8 R4 - 0x7C140600, // 0017 CALL R5 3 - 0x38160201, // 0018 SHL R5 K1 R1 - 0x14180505, // 0019 LT R6 R2 K5 - 0x781A0008, // 001A JMPF R6 #0024 - 0x8C180108, // 001B GETMET R6 R0 K8 - 0x5422008F, // 001C LDINT R8 144 - 0x8C240100, // 001D GETMET R9 R0 K0 - 0x542E008F, // 001E LDINT R11 144 - 0x7C240400, // 001F CALL R9 2 - 0x48280A00, // 0020 FLIP R10 R5 - 0x2C24120A, // 0021 AND R9 R9 R10 - 0x7C180600, // 0022 CALL R6 3 - 0x70020006, // 0023 JMP #002B - 0x8C180108, // 0024 GETMET R6 R0 K8 - 0x5422008F, // 0025 LDINT R8 144 - 0x8C240100, // 0026 GETMET R9 R0 K0 - 0x542E008F, // 0027 LDINT R11 144 - 0x7C240400, // 0028 CALL R9 2 - 0x30241205, // 0029 OR R9 R9 R5 - 0x7C180600, // 002A CALL R6 3 - 0x80000000, // 002B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_bat_current -********************************************************************/ -be_local_closure(class_AXP2102_get_bat_current, /* name */ - be_nested_proto( - 1, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP2102, /* shared constants */ - &be_const_str_get_bat_current, - &be_const_str_solidified, - ( &(const binstruction[ 1]) { /* code */ - 0x80060A00, // 0000 RET 1 K5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_charge_current -********************************************************************/ -be_local_closure(class_AXP2102_set_charge_current, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP2102, /* shared constants */ - &be_const_str_set_charge_current, - &be_const_str_solidified, - ( &(const binstruction[21]) { /* code */ - 0x14080305, // 0000 LT R2 R1 K5 - 0x780A0000, // 0001 JMPF R2 #0003 - 0x58040005, // 0002 LDCONST R1 K5 - 0x540A00C7, // 0003 LDINT R2 200 - 0x24080202, // 0004 GT R2 R1 R2 - 0x780A0000, // 0005 JMPF R2 #0007 - 0x540600C7, // 0006 LDINT R1 200 - 0x58080005, // 0007 LDCONST R2 K5 - 0x880C010C, // 0008 GETMBR R3 R0 K12 - 0x940C0602, // 0009 GETIDX R3 R3 R2 - 0x180C0601, // 000A LE R3 R3 R1 - 0x780E0001, // 000B JMPF R3 #000E - 0x00080501, // 000C ADD R2 R2 K1 - 0x7001FFF9, // 000D JMP #0008 - 0x540E0003, // 000E LDINT R3 4 - 0x00080403, // 000F ADD R2 R2 R3 - 0x8C0C0108, // 0010 GETMET R3 R0 K8 - 0x54160061, // 0011 LDINT R5 98 - 0x5C180400, // 0012 MOVE R6 R2 - 0x7C0C0600, // 0013 CALL R3 3 - 0x80000000, // 0014 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_aps_voltage -********************************************************************/ -be_local_closure(class_AXP2102_get_aps_voltage, /* name */ - be_nested_proto( - 1, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP2102, /* shared constants */ - &be_const_str_get_aps_voltage, - &be_const_str_solidified, - ( &(const binstruction[ 1]) { /* code */ - 0x80060A00, // 0000 RET 1 K5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_pre_charge_current -********************************************************************/ -be_local_closure(class_AXP2102_set_pre_charge_current, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP2102, /* shared constants */ - &be_const_str_set_pre_charge_current, - &be_const_str_solidified, - ( &(const binstruction[19]) { /* code */ - 0x14080305, // 0000 LT R2 R1 K5 - 0x780A0000, // 0001 JMPF R2 #0003 - 0x58040005, // 0002 LDCONST R1 K5 - 0x540A00C7, // 0003 LDINT R2 200 - 0x24080202, // 0004 GT R2 R1 R2 - 0x780A0000, // 0005 JMPF R2 #0007 - 0x540600C7, // 0006 LDINT R1 200 - 0x58080005, // 0007 LDCONST R2 K5 - 0x880C010D, // 0008 GETMBR R3 R0 K13 - 0x940C0602, // 0009 GETIDX R3 R3 R2 - 0x180C0601, // 000A LE R3 R3 R1 - 0x780E0001, // 000B JMPF R3 #000E - 0x00080501, // 000C ADD R2 R2 K1 - 0x7001FFF9, // 000D JMP #0008 - 0x8C0C0108, // 000E GETMET R3 R0 K8 - 0x54160060, // 000F LDINT R5 97 - 0x5C180400, // 0010 MOVE R6 R2 - 0x7C0C0600, // 0011 CALL R3 3 - 0x80000000, // 0012 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_bat_power -********************************************************************/ -be_local_closure(class_AXP2102_get_bat_power, /* name */ - be_nested_proto( - 1, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP2102, /* shared constants */ - &be_const_str_get_bat_power, - &be_const_str_solidified, - ( &(const binstruction[ 1]) { /* code */ - 0x80060A00, // 0000 RET 1 K5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_battery_charge -********************************************************************/ -be_local_closure(class_AXP2102_set_battery_charge, /* name */ - be_nested_proto( - 8, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP2102, /* shared constants */ - &be_const_str_set_battery_charge, - &be_const_str_solidified, - ( &(const binstruction[15]) { /* code */ - 0x8C080108, // 0000 GETMET R2 R0 K8 - 0x54120017, // 0001 LDINT R4 24 - 0x8C140100, // 0002 GETMET R5 R0 K0 - 0x541E0017, // 0003 LDINT R7 24 - 0x7C140400, // 0004 CALL R5 2 - 0x541A00FC, // 0005 LDINT R6 253 - 0x2C140A06, // 0006 AND R5 R5 R6 - 0x78060001, // 0007 JMPF R1 #000A - 0x58180001, // 0008 LDCONST R6 K1 - 0x70020000, // 0009 JMP #000B - 0x58180005, // 000A LDCONST R6 K5 - 0x38180D01, // 000B SHL R6 R6 K1 - 0x30140A06, // 000C OR R5 R5 R6 - 0x7C080600, // 000D CALL R2 3 - 0x80000000, // 000E RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_bat_charge_current -********************************************************************/ -be_local_closure(class_AXP2102_get_bat_charge_current, /* name */ - be_nested_proto( - 1, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP2102, /* shared constants */ - &be_const_str_get_bat_charge_current, - &be_const_str_solidified, - ( &(const binstruction[ 1]) { /* code */ - 0x80060A00, // 0000 RET 1 K5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_vbus_good -********************************************************************/ -be_local_closure(class_AXP2102_get_vbus_good, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP2102, /* shared constants */ - &be_const_str_get_vbus_good, - &be_const_str_solidified, - ( &(const binstruction[11]) { /* code */ - 0x60040017, // 0000 GETGBL R1 G23 - 0x88080102, // 0001 GETMBR R2 R0 K2 - 0x8C080503, // 0002 GETMET R2 R2 K3 - 0x88100104, // 0003 GETMBR R4 R0 K4 - 0x58140005, // 0004 LDCONST R5 K5 - 0x58180001, // 0005 LDCONST R6 K1 - 0x7C080800, // 0006 CALL R2 4 - 0x540E001F, // 0007 LDINT R3 32 - 0x2C080403, // 0008 AND R2 R2 R3 - 0x7C040200, // 0009 CALL R1 1 - 0x80040200, // 000A RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_bat_voltage -********************************************************************/ -be_local_closure(class_AXP2102_get_bat_voltage, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP2102, /* shared constants */ - &be_const_str_get_bat_voltage, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x8C04010E, // 0000 GETMET R1 R0 K14 - 0x540E0033, // 0001 LDINT R3 52 - 0x7C040400, // 0002 CALL R1 2 - 0x0C04030F, // 0003 DIV R1 R1 K15 - 0x80040200, // 0004 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_battery_level -********************************************************************/ -be_local_closure(class_AXP2102_get_battery_level, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP2102, /* shared constants */ - &be_const_str_get_battery_level, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x540E00A3, // 0001 LDINT R3 164 - 0x7C040400, // 0002 CALL R1 2 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_charge_voltage -********************************************************************/ -be_local_closure(class_AXP2102_set_charge_voltage, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP2102, /* shared constants */ - &be_const_str_set_charge_voltage, - &be_const_str_solidified, - ( &(const binstruction[24]) { /* code */ - 0x14080305, // 0000 LT R2 R1 K5 - 0x780A0000, // 0001 JMPF R2 #0003 - 0x58040005, // 0002 LDCONST R1 K5 - 0x540A01CB, // 0003 LDINT R2 460 - 0x24080202, // 0004 GT R2 R1 R2 - 0x780A0000, // 0005 JMPF R2 #0007 - 0x540601CB, // 0006 LDINT R1 460 - 0x58080005, // 0007 LDCONST R2 K5 - 0x880C0110, // 0008 GETMBR R3 R0 K16 - 0x940C0602, // 0009 GETIDX R3 R3 R2 - 0x180C0601, // 000A LE R3 R3 R1 - 0x780E0001, // 000B JMPF R3 #000E - 0x00080501, // 000C ADD R2 R2 K1 - 0x7001FFF9, // 000D JMP #0008 - 0x00080501, // 000E ADD R2 R2 K1 - 0x540E0005, // 000F LDINT R3 6 - 0x280C0403, // 0010 GE R3 R2 R3 - 0x780E0000, // 0011 JMPF R3 #0013 - 0x58080005, // 0012 LDCONST R2 K5 - 0x8C0C0108, // 0013 GETMET R3 R0 K8 - 0x54160063, // 0014 LDINT R5 100 - 0x5C180400, // 0015 MOVE R6 R2 - 0x7C0C0600, // 0016 CALL R3 3 - 0x80000000, // 0017 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_vbus_current -********************************************************************/ -be_local_closure(class_AXP2102_get_vbus_current, /* name */ - be_nested_proto( - 1, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP2102, /* shared constants */ - &be_const_str_get_vbus_current, - &be_const_str_solidified, - ( &(const binstruction[ 1]) { /* code */ - 0x80060A00, // 0000 RET 1 K5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_vbus_voltage -********************************************************************/ -be_local_closure(class_AXP2102_get_vbus_voltage, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_AXP2102, /* shared constants */ - &be_const_str_get_vbus_voltage, - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0x8C040111, // 0000 GETMET R1 R0 K17 - 0x7C040200, // 0001 CALL R1 1 - 0x74060000, // 0002 JMPT R1 #0004 - 0x80060A00, // 0003 RET 1 K5 - 0x8C04010E, // 0004 GETMET R1 R0 K14 - 0x540E0037, // 0005 LDINT R3 56 - 0x7C040400, // 0006 CALL R1 2 - 0x540A3FF6, // 0007 LDINT R2 16375 - 0x24080202, // 0008 GT R2 R1 R2 - 0x780A0000, // 0009 JMPF R2 #000B - 0x80060A00, // 000A RET 1 K5 - 0x0C08030F, // 000B DIV R2 R1 K15 - 0x80040400, // 000C RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: AXP2102 -********************************************************************/ -extern const bclass be_class_I2C_Driver; -be_local_class(AXP2102, - 0, - &be_class_I2C_Driver, - be_nested_map(24, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(get_vbus_voltage, -1), be_const_closure(class_AXP2102_get_vbus_voltage_closure) }, - { be_const_key(is_charging, -1), be_const_closure(class_AXP2102_is_charging_closure) }, - { be_const_key(battery_present, -1), be_const_closure(class_AXP2102_battery_present_closure) }, - { be_const_key(init, -1), be_const_closure(class_AXP2102_init_closure) }, - { be_const_key(set_dldo_voltage, -1), be_const_closure(class_AXP2102_set_dldo_voltage_closure) }, - { be_const_key(_charge, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { - be_const_list( * be_nested_list(13, - ( (struct bvalue*) &(const bvalue[]) { - be_const_int(25), - be_const_int(30), - be_const_int(35), - be_const_int(40), - be_const_int(60), - be_const_int(80), - be_const_int(100), - be_const_int(120), - be_const_int(140), - be_const_int(160), - be_const_int(180), - be_const_int(200), - be_const_int(255), - })) ) } )) }, - { be_const_key(set_charge_voltage, -1), be_const_closure(class_AXP2102_set_charge_voltage_closure) }, - { be_const_key(get_battery_level, 23), be_const_closure(class_AXP2102_get_battery_level_closure) }, - { be_const_key(set_ldo_voltage, -1), be_const_closure(class_AXP2102_set_ldo_voltage_closure) }, - { be_const_key(get_bat_current, 0), be_const_closure(class_AXP2102_get_bat_current_closure) }, - { be_const_key(set_charge_current, -1), be_const_closure(class_AXP2102_set_charge_current_closure) }, - { be_const_key(_charge_voltage, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { - be_const_list( * be_nested_list(6, - ( (struct bvalue*) &(const bvalue[]) { - be_const_int(410), - be_const_int(420), - be_const_int(435), - be_const_int(440), - be_const_int(460), - be_const_int(655), - })) ) } )) }, - { be_const_key(set_pre_charge_current, 16), be_const_closure(class_AXP2102_set_pre_charge_current_closure) }, - { be_const_key(get_bat_power, -1), be_const_closure(class_AXP2102_get_bat_power_closure) }, - { be_const_key(get_temp, 5), be_const_closure(class_AXP2102_get_temp_closure) }, - { be_const_key(get_bat_voltage, 17), be_const_closure(class_AXP2102_get_bat_voltage_closure) }, - { be_const_key(get_vbus_good, -1), be_const_closure(class_AXP2102_get_vbus_good_closure) }, - { be_const_key(get_bat_charge_current, -1), be_const_closure(class_AXP2102_get_bat_charge_current_closure) }, - { be_const_key(set_battery_charge, 15), be_const_closure(class_AXP2102_set_battery_charge_closure) }, - { be_const_key(get_aps_voltage, 11), be_const_closure(class_AXP2102_get_aps_voltage_closure) }, - { be_const_key(_pre_charge, 7), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { - be_const_list( * be_nested_list(10, - ( (struct bvalue*) &(const bvalue[]) { - be_const_int(0), - be_const_int(25), - be_const_int(50), - be_const_int(75), - be_const_int(100), - be_const_int(125), - be_const_int(150), - be_const_int(175), - be_const_int(200), - be_const_int(255), - })) ) } )) }, - { be_const_key(get_ldo_enable, 6), be_const_closure(class_AXP2102_get_ldo_enable_closure) }, - { be_const_key(get_vbus_current, -1), be_const_closure(class_AXP2102_get_vbus_current_closure) }, - { be_const_key(get_battery_charging_status, -1), be_const_closure(class_AXP2102_get_battery_charging_status_closure) }, - })), - (bstring*) &be_const_str_AXP2102 -); -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_Wire.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_Wire.h deleted file mode 100644 index 545533000..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_Wire.h +++ /dev/null @@ -1,105 +0,0 @@ -/* Solidification of Wire.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" - -/******************************************************************** -** Solidified function: read_bytes -********************************************************************/ -be_local_closure(class_Wire_read_bytes, /* name */ - be_nested_proto( - 9, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 7]) { /* constants */ - /* K0 */ be_nested_str(_begin_transmission), - /* K1 */ be_nested_str(_write), - /* K2 */ be_nested_str(_end_transmission), - /* K3 */ be_nested_str(_request_from), - /* K4 */ be_nested_str(_available), - /* K5 */ be_nested_str(append), - /* K6 */ be_nested_str(_read), - }), - &be_const_str_read_bytes, - &be_const_str_solidified, - ( &(const binstruction[28]) { /* code */ - 0x8C100100, // 0000 GETMET R4 R0 K0 - 0x5C180200, // 0001 MOVE R6 R1 - 0x7C100400, // 0002 CALL R4 2 - 0x8C100101, // 0003 GETMET R4 R0 K1 - 0x5C180400, // 0004 MOVE R6 R2 - 0x7C100400, // 0005 CALL R4 2 - 0x8C100102, // 0006 GETMET R4 R0 K2 - 0x50180200, // 0007 LDBOOL R6 1 0 - 0x7C100400, // 0008 CALL R4 2 - 0x8C100103, // 0009 GETMET R4 R0 K3 - 0x5C180200, // 000A MOVE R6 R1 - 0x5C1C0600, // 000B MOVE R7 R3 - 0x7C100600, // 000C CALL R4 3 - 0x60100015, // 000D GETGBL R4 G21 - 0x5C140600, // 000E MOVE R5 R3 - 0x7C100200, // 000F CALL R4 1 - 0x8C140104, // 0010 GETMET R5 R0 K4 - 0x7C140200, // 0011 CALL R5 1 - 0x78160004, // 0012 JMPF R5 #0018 - 0x8C140905, // 0013 GETMET R5 R4 K5 - 0x8C1C0106, // 0014 GETMET R7 R0 K6 - 0x7C1C0200, // 0015 CALL R7 1 - 0x7C140400, // 0016 CALL R5 2 - 0x7001FFF7, // 0017 JMP #0010 - 0x8C140102, // 0018 GETMET R5 R0 K2 - 0x501C0200, // 0019 LDBOOL R7 1 0 - 0x7C140400, // 001A CALL R5 2 - 0x80040800, // 001B RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: write_bytes -********************************************************************/ -be_local_closure(class_Wire_write_bytes, /* name */ - be_nested_proto( - 7, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str(_begin_transmission), - /* K1 */ be_nested_str(_write), - /* K2 */ be_nested_str(_end_transmission), - }), - &be_const_str_write_bytes, - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x8C100100, // 0000 GETMET R4 R0 K0 - 0x5C180200, // 0001 MOVE R6 R1 - 0x7C100400, // 0002 CALL R4 2 - 0x8C100101, // 0003 GETMET R4 R0 K1 - 0x5C180400, // 0004 MOVE R6 R2 - 0x7C100400, // 0005 CALL R4 2 - 0x8C100101, // 0006 GETMET R4 R0 K1 - 0x5C180600, // 0007 MOVE R6 R3 - 0x7C100400, // 0008 CALL R4 2 - 0x8C100102, // 0009 GETMET R4 R0 K2 - 0x7C100200, // 000A CALL R4 1 - 0x80000000, // 000B RET 0 - }) - ) -); -/*******************************************************************/ - -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_autoconf_module.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_autoconf_module.h deleted file mode 100644 index ef5e1921e..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_autoconf_module.h +++ /dev/null @@ -1,1357 +0,0 @@ -/* Solidification of autoconf_module.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -// compact class 'Autoconf' ktab size: 126, total: 207 (saved 648 bytes) -static const bvalue be_ktab_class_Autoconf[126] = { - /* K0 */ be_nested_str(webserver), - /* K1 */ be_nested_str(path), - /* K2 */ be_nested_str(check_privileged_access), - /* K3 */ be_nested_str(has_arg), - /* K4 */ be_nested_str(reapply), - /* K5 */ be_nested_str(tasmota), - /* K6 */ be_nested_str(log), - /* K7 */ be_nested_str(CFG_X3A_X20removing_X20first_X20time_X20marker), - /* K8 */ be_const_int(2), - /* K9 */ be_nested_str(clear_first_time), - /* K10 */ be_nested_str(redirect), - /* K11 */ be_nested_str(_X2F_X3Frst_X3D), - /* K12 */ be_nested_str(zip), - /* K13 */ be_nested_str(CFG_X3A_X20removing_X20autoconf_X20files), - /* K14 */ be_nested_str(delete_all_configs), - /* K15 */ be_nested_str(arg), - /* K16 */ be_nested_str(reset), - /* K17 */ be_nested_str(https_X3A_X2F_X2Fraw_X2Egithubusercontent_X2Ecom_X2Ftasmota_X2Fautoconf_X2Fmain_X2F_X25s_X2F_X25s_X2Eautoconf), - /* K18 */ be_nested_str(arch), - /* K19 */ be_nested_str(CFG_X3A_X20downloading_X20_X27_X25s_X27), - /* K20 */ be_nested_str(_X25s_X2Eautoconf), - /* K21 */ be_nested_str(webclient), - /* K22 */ be_nested_str(begin), - /* K23 */ be_nested_str(GET), - /* K24 */ be_nested_str(return_X20code_X3D_X25i), - /* K25 */ be_nested_str(connection_error), - /* K26 */ be_nested_str(write_file), - /* K27 */ be_nested_str(close), - /* K28 */ be_nested_str(value_error), - /* K29 */ be_nested_str(Unknown_X20command), - /* K30 */ be_nested_str(CFG_X3A_X20Exception_X3E_X20_X27_X25s_X27_X20_X2D_X20_X25s), - /* K31 */ be_nested_str(content_start), - /* K32 */ be_nested_str(Parameter_X20error), - /* K33 */ be_nested_str(content_send_style), - /* K34 */ be_nested_str(content_send), - /* K35 */ be_nested_str(_X3Cp_X20style_X3D_X27width_X3A340px_X3B_X27_X3E_X3Cb_X3EException_X3A_X3C_X2Fb_X3E_X3Cbr_X3E_X27_X25s_X27_X3Cbr_X3E_X25s_X3C_X2Fp_X3E), - /* K36 */ be_nested_str(content_button), - /* K37 */ be_nested_str(BUTTON_CONFIGURATION), - /* K38 */ be_nested_str(content_stop), - /* K39 */ be_nested_str(_archive), - /* K40 */ be_nested_str(_X23init_X2Ebat), - /* K41 */ be_nested_str(is_first_time), - /* K42 */ be_nested_str(exists), - /* K43 */ be_nested_str(set_first_time), - /* K44 */ be_nested_str(run_bat), - /* K45 */ be_nested_str(CFG_X3A_X20_X27init_X2Ebat_X27_X20done_X2C_X20restarting), - /* K46 */ be_nested_str(_X23display_X2Eini), - /* K47 */ be_nested_str(display_X2Eini), - /* K48 */ be_nested_str(r), - /* K49 */ be_nested_str(w), - /* K50 */ be_nested_str(readbytes), - /* K51 */ be_nested_str(write), - /* K52 */ be_nested_str(CFG_X3A_X20_X27display_X2Eini_X27_X20extracted_X2C_X20restarting), - /* K53 */ be_nested_str(CFG_X3A_X20could_X20not_X20copy_X20_X27display_X2Eini_X27_X20_X28_X25s_X20_X2D_X20_X25s_X29_X27), - /* K54 */ be_nested_str(cmd), - /* K55 */ be_nested_str(Restart_X201), - /* K56 */ be_nested_str(_X23autoexec_X2Ebat), - /* K57 */ be_nested_str(CFG_X3A_X20running_X20), - /* K58 */ be_const_int(3), - /* K59 */ be_nested_str(CFG_X3A_X20ran_X20_X20), - /* K60 */ be_nested_str(_X23autoexec_X2Ebe), - /* K61 */ be_nested_str(CFG_X3A_X20loading_X20), - /* K62 */ be_nested_str(load), - /* K63 */ be_nested_str(CFG_X3A_X20loaded_X20_X20), - /* K64 */ be_nested_str(readline), - /* K65 */ be_const_int(0), - /* K66 */ be_nested_str(tell), - /* K67 */ be_nested_str(size), - /* K68 */ be_nested_str(_X0A), - /* K69 */ be_nested_str(_X0D), - /* K70 */ be_nested_str(CFG_X3A_X20could_X20not_X20run_X20_X25s_X20_X28_X25s_X20_X2D_X20_X25s_X29), - /* K71 */ be_const_int(1), - /* K72 */ be_nested_str(string), - /* K73 */ be_nested_str(Auto_X2Dconfiguration), - /* K74 */ be_nested_str(_X3Cp_X3E_X3Csmall_X3E_X26nbsp_X3B_X28This_X20feature_X20requires_X20an_X20internet_X20connection_X29_X3C_X2Fsmall_X3E_X3C_X2Fp_X3E), - /* K75 */ be_nested_str(get_current_module_path), - /* K76 */ be_nested_str(tr), - /* K77 */ be_nested_str(get_current_module_name), - /* K78 */ be_nested_str(_), - /* K79 */ be_nested_str(_X20), - /* K80 */ be_nested_str(_error), - /* K81 */ be_nested_str(_X26lt_X3BError_X3A_X20apply_X20new_X20or_X20remove_X26gt_X3B), - /* K82 */ be_nested_str(_X26lt_X3BNone_X26gt_X3B), - /* K83 */ be_nested_str(_X3Cfieldset_X3E_X3Cstyle_X3E_X2Ebdis_X7Bbackground_X3A_X23888_X3B_X7D_X2Ebdis_X3Ahover_X7Bbackground_X3A_X23888_X3B_X7D_X3C_X2Fstyle_X3E), - /* K84 */ be_nested_str(_X3Clegend_X3E_X3Cb_X20title_X3D_X27Autoconfiguration_X27_X3E_X26nbsp_X3BCurrent_X20auto_X2Dconfiguration_X3C_X2Fb_X3E_X3C_X2Flegend_X3E), - /* K85 */ be_nested_str(_X3Cp_X3ECurrent_X20configuration_X3A_X20_X3C_X2Fp_X3E_X3Cp_X3E_X3Cb_X3E_X25s_X3C_X2Fb_X3E_X3C_X2Fp_X3E), - /* K86 */ be_nested_str(_X3Cp_X3E_X3Cform_X20id_X3Dreapply_X20style_X3D_X27display_X3A_X20block_X3B_X27_X20action_X3D_X27_X2Fac_X27_X20method_X3D_X27post_X27_X20), - /* K87 */ be_nested_str(onsubmit_X3D_X27return_X20confirm_X28_X22This_X20will_X20cause_X20a_X20restart_X2E_X22_X29_X3B_X27_X3E), - /* K88 */ be_nested_str(_X3Cbutton_X20name_X3D_X27reapply_X27_X20class_X3D_X27button_X20bgrn_X27_X3ERe_X2Dapply_X20current_X20configuration_X3C_X2Fbutton_X3E), - /* K89 */ be_nested_str(_X3C_X2Fform_X3E_X3C_X2Fp_X3E), - /* K90 */ be_nested_str(_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E_X3Cp_X3E_X3C_X2Fp_X3E), - /* K91 */ be_nested_str(_X3Clegend_X3E_X3Cb_X20title_X3D_X27New_X20autoconf_X27_X3E_X26nbsp_X3BSelect_X20new_X20auto_X2Dconfiguration_X3C_X2Fb_X3E_X3C_X2Flegend_X3E), - /* K92 */ be_nested_str(_X3Cp_X3E_X3Cform_X20id_X3Dzip_X20style_X3D_X27display_X3A_X20block_X3B_X27_X20action_X3D_X27_X2Fac_X27_X20method_X3D_X27post_X27_X20), - /* K93 */ be_nested_str(onsubmit_X3D_X27return_X20confirm_X28_X22This_X20will_X20change_X20the_X20current_X20configuration_X20and_X20cause_X20a_X20restart_X2E_X22_X29_X3B_X27_X3E), - /* K94 */ be_nested_str(_X3Clabel_X3EChoose_X20a_X20device_X20configuration_X3A_X3C_X2Flabel_X3E_X3Cbr_X3E), - /* K95 */ be_nested_str(_X3Cselect_X20name_X3D_X27zip_X27_X3E), - /* K96 */ be_nested_str(load_templates), - /* K97 */ be_nested_str(_X3Coption_X20value_X3D_X27reset_X27_X3E_X26lt_X3BRemove_X20autoconf_X26gt_X3B_X3C_X2Foption_X3E), - /* K98 */ be_nested_str(_X3Coption_X20value_X3D_X27_X25s_X27_X3E_X25s_X3C_X2Foption_X3E), - /* K99 */ be_nested_str(stop_iteration), - /* K100 */ be_nested_str(_X3C_X2Fselect_X3E_X3Cp_X3E_X3C_X2Fp_X3E), - /* K101 */ be_nested_str(_X3Cbutton_X20name_X3D_X27zipapply_X27_X20class_X3D_X27button_X20bgrn_X27_X3EApply_X20configuration_X3C_X2Fbutton_X3E), - /* K102 */ be_nested_str(listdir), - /* K103 */ be_nested_str(_X2F), - /* K104 */ be_nested_str(find), - /* K105 */ be_nested_str(_X2Eautoconf), - /* K106 */ be_nested_str(remove), - /* K107 */ be_nested_str(_X2F_X2Eautoconf), - /* K108 */ be_nested_str(json), - /* K109 */ be_nested_str(https_X3A_X2F_X2Fraw_X2Egithubusercontent_X2Ecom_X2Ftasmota_X2Fautoconf_X2Fmain_X2F_X25s_manifest_X2Ejson), - /* K110 */ be_nested_str(CFG_X3A_X20loading_X20_X27_X25s_X27), - /* K111 */ be_nested_str(CFG_X3A_X20return_code_X3D_X25i), - /* K112 */ be_nested_str(get_string), - /* K113 */ be_nested_str(CFG_X3A_X20loaded_X20_X27_X25s_X27), - /* K114 */ be_nested_str(files), - /* K115 */ be_nested_str(CFG_X3A_X20exception_X20_X27_X25s_X27_X20_X2D_X20_X27_X25s_X27), - /* K116 */ be_nested_str(_X3Cp_X3E_X3Cform_X20id_X3Dac_X20action_X3D_X27ac_X27_X20style_X3D_X27display_X3A_X20block_X3B_X27_X20method_X3D_X27get_X27_X3E_X3Cbutton_X3EAuto_X2DConf_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3C_X2Fp_X3E), - /* K117 */ be_nested_str(add_driver), - /* K118 */ be_nested_str(CFG_X3A_X20multiple_X20autoconf_X20files_X20found_X2C_X20aborting_X20_X28_X27_X25s_X27_X20_X2B_X20_X27_X25s_X27_X29), - /* K119 */ be_nested_str(CFG_X3A_X20No_X20_X27_X2A_X2Eautoconf_X27_X20file_X20found), - /* K120 */ be_nested_str(_X23preinit_X2Ebe), - /* K121 */ be_nested_str(CFG_X3A_X20removed_X20file_X20_X27_X25s_X27), - /* K122 */ be_nested_str(on), - /* K123 */ be_nested_str(_X2Fac), - /* K124 */ be_nested_str(HTTP_GET), - /* K125 */ be_nested_str(HTTP_POST), -}; - - -extern const bclass be_class_Autoconf; - -/******************************************************************** -** Solidified function: page_autoconf_ctl -********************************************************************/ -be_local_closure(class_Autoconf_page_autoconf_ctl, /* name */ - be_nested_proto( - 11, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Autoconf, /* shared constants */ - &be_const_str_page_autoconf_ctl, - &be_const_str_solidified, - ( &(const binstruction[116]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0x8C0C0302, // 0002 GETMET R3 R1 K2 - 0x7C0C0200, // 0003 CALL R3 1 - 0x740E0001, // 0004 JMPT R3 #0007 - 0x4C0C0000, // 0005 LDNIL R3 - 0x80040600, // 0006 RET 1 R3 - 0xA802004E, // 0007 EXBLK 0 #0057 - 0x8C0C0303, // 0008 GETMET R3 R1 K3 - 0x58140004, // 0009 LDCONST R5 K4 - 0x7C0C0400, // 000A CALL R3 2 - 0x780E000A, // 000B JMPF R3 #0017 - 0xB80E0A00, // 000C GETNGBL R3 K5 - 0x8C0C0706, // 000D GETMET R3 R3 K6 - 0x58140007, // 000E LDCONST R5 K7 - 0x58180008, // 000F LDCONST R6 K8 - 0x7C0C0600, // 0010 CALL R3 3 - 0x8C0C0109, // 0011 GETMET R3 R0 K9 - 0x7C0C0200, // 0012 CALL R3 1 - 0x8C0C030A, // 0013 GETMET R3 R1 K10 - 0x5814000B, // 0014 LDCONST R5 K11 - 0x7C0C0400, // 0015 CALL R3 2 - 0x7002003D, // 0016 JMP #0055 - 0x8C0C0303, // 0017 GETMET R3 R1 K3 - 0x5814000C, // 0018 LDCONST R5 K12 - 0x7C0C0400, // 0019 CALL R3 2 - 0x780E0038, // 001A JMPF R3 #0054 - 0xB80E0A00, // 001B GETNGBL R3 K5 - 0x8C0C0706, // 001C GETMET R3 R3 K6 - 0x5814000D, // 001D LDCONST R5 K13 - 0x58180008, // 001E LDCONST R6 K8 - 0x7C0C0600, // 001F CALL R3 3 - 0x8C0C010E, // 0020 GETMET R3 R0 K14 - 0x7C0C0200, // 0021 CALL R3 1 - 0x8C0C030F, // 0022 GETMET R3 R1 K15 - 0x5814000C, // 0023 LDCONST R5 K12 - 0x7C0C0400, // 0024 CALL R3 2 - 0x20100710, // 0025 NE R4 R3 K16 - 0x78120026, // 0026 JMPF R4 #004E - 0x60100018, // 0027 GETGBL R4 G24 - 0x58140011, // 0028 LDCONST R5 K17 - 0xB81A0A00, // 0029 GETNGBL R6 K5 - 0x8C180D12, // 002A GETMET R6 R6 K18 - 0x7C180200, // 002B CALL R6 1 - 0x5C1C0600, // 002C MOVE R7 R3 - 0x7C100600, // 002D CALL R4 3 - 0xB8160A00, // 002E GETNGBL R5 K5 - 0x8C140B06, // 002F GETMET R5 R5 K6 - 0x601C0018, // 0030 GETGBL R7 G24 - 0x58200013, // 0031 LDCONST R8 K19 - 0x5C240800, // 0032 MOVE R9 R4 - 0x7C1C0400, // 0033 CALL R7 2 - 0x58200008, // 0034 LDCONST R8 K8 - 0x7C140600, // 0035 CALL R5 3 - 0x60140018, // 0036 GETGBL R5 G24 - 0x58180014, // 0037 LDCONST R6 K20 - 0x5C1C0600, // 0038 MOVE R7 R3 - 0x7C140400, // 0039 CALL R5 2 - 0xB81A2A00, // 003A GETNGBL R6 K21 - 0x7C180000, // 003B CALL R6 0 - 0x8C1C0D16, // 003C GETMET R7 R6 K22 - 0x5C240800, // 003D MOVE R9 R4 - 0x7C1C0400, // 003E CALL R7 2 - 0x8C1C0D17, // 003F GETMET R7 R6 K23 - 0x7C1C0200, // 0040 CALL R7 1 - 0x542200C7, // 0041 LDINT R8 200 - 0x20200E08, // 0042 NE R8 R7 R8 - 0x78220004, // 0043 JMPF R8 #0049 - 0x60200018, // 0044 GETGBL R8 G24 - 0x58240018, // 0045 LDCONST R9 K24 - 0x5C280E00, // 0046 MOVE R10 R7 - 0x7C200400, // 0047 CALL R8 2 - 0xB0063208, // 0048 RAISE 1 K25 R8 - 0x8C200D1A, // 0049 GETMET R8 R6 K26 - 0x5C280A00, // 004A MOVE R10 R5 - 0x7C200400, // 004B CALL R8 2 - 0x8C200D1B, // 004C GETMET R8 R6 K27 - 0x7C200200, // 004D CALL R8 1 - 0x8C100109, // 004E GETMET R4 R0 K9 - 0x7C100200, // 004F CALL R4 1 - 0x8C10030A, // 0050 GETMET R4 R1 K10 - 0x5818000B, // 0051 LDCONST R6 K11 - 0x7C100400, // 0052 CALL R4 2 - 0x70020000, // 0053 JMP #0055 - 0xB006391D, // 0054 RAISE 1 K28 K29 - 0xA8040001, // 0055 EXBLK 1 1 - 0x7002001B, // 0056 JMP #0073 - 0xAC0C0002, // 0057 CATCH R3 0 2 - 0x70020018, // 0058 JMP #0072 - 0x60140001, // 0059 GETGBL R5 G1 - 0x60180018, // 005A GETGBL R6 G24 - 0x581C001E, // 005B LDCONST R7 K30 - 0x5C200600, // 005C MOVE R8 R3 - 0x5C240800, // 005D MOVE R9 R4 - 0x7C180600, // 005E CALL R6 3 - 0x7C140200, // 005F CALL R5 1 - 0x8C14031F, // 0060 GETMET R5 R1 K31 - 0x581C0020, // 0061 LDCONST R7 K32 - 0x7C140400, // 0062 CALL R5 2 - 0x8C140321, // 0063 GETMET R5 R1 K33 - 0x7C140200, // 0064 CALL R5 1 - 0x8C140322, // 0065 GETMET R5 R1 K34 - 0x601C0018, // 0066 GETGBL R7 G24 - 0x58200023, // 0067 LDCONST R8 K35 - 0x5C240600, // 0068 MOVE R9 R3 - 0x5C280800, // 0069 MOVE R10 R4 - 0x7C1C0600, // 006A CALL R7 3 - 0x7C140400, // 006B CALL R5 2 - 0x8C140324, // 006C GETMET R5 R1 K36 - 0x881C0325, // 006D GETMBR R7 R1 K37 - 0x7C140400, // 006E CALL R5 2 - 0x8C140326, // 006F GETMET R5 R1 K38 - 0x7C140200, // 0070 CALL R5 1 - 0x70020000, // 0071 JMP #0073 - 0xB0080000, // 0072 RAISE 2 R0 R0 - 0x80000000, // 0073 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: autoexec -********************************************************************/ -be_local_closure(class_Autoconf_autoexec, /* name */ - be_nested_proto( - 13, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Autoconf, /* shared constants */ - &be_const_str_autoexec, - &be_const_str_solidified, - ( &(const binstruction[147]) { /* code */ - 0x88040127, // 0000 GETMBR R1 R0 K39 - 0x4C080000, // 0001 LDNIL R2 - 0x1C040202, // 0002 EQ R1 R1 R2 - 0x78060000, // 0003 JMPF R1 #0005 - 0x80000200, // 0004 RET 0 - 0xA4060200, // 0005 IMPORT R1 K1 - 0x50080000, // 0006 LDBOOL R2 0 0 - 0x880C0127, // 0007 GETMBR R3 R0 K39 - 0x000C0728, // 0008 ADD R3 R3 K40 - 0x8C100129, // 0009 GETMET R4 R0 K41 - 0x7C100200, // 000A CALL R4 1 - 0x7812000F, // 000B JMPF R4 #001C - 0x8C10032A, // 000C GETMET R4 R1 K42 - 0x5C180600, // 000D MOVE R6 R3 - 0x7C100400, // 000E CALL R4 2 - 0x7812000B, // 000F JMPF R4 #001C - 0x8C10012B, // 0010 GETMET R4 R0 K43 - 0x7C100200, // 0011 CALL R4 1 - 0x8C10012C, // 0012 GETMET R4 R0 K44 - 0x5C180600, // 0013 MOVE R6 R3 - 0x7C100400, // 0014 CALL R4 2 - 0xB8120A00, // 0015 GETNGBL R4 K5 - 0x8C100906, // 0016 GETMET R4 R4 K6 - 0x5818002D, // 0017 LDCONST R6 K45 - 0x581C0008, // 0018 LDCONST R7 K8 - 0x7C100600, // 0019 CALL R4 3 - 0x50080200, // 001A LDBOOL R2 1 0 - 0x80000800, // 001B RET 0 - 0x88100127, // 001C GETMBR R4 R0 K39 - 0x0010092E, // 001D ADD R4 R4 K46 - 0x5C0C0800, // 001E MOVE R3 R4 - 0x8C10032A, // 001F GETMET R4 R1 K42 - 0x5C180600, // 0020 MOVE R6 R3 - 0x7C100400, // 0021 CALL R4 2 - 0x78120040, // 0022 JMPF R4 #0064 - 0x8C100129, // 0023 GETMET R4 R0 K41 - 0x7C100200, // 0024 CALL R4 1 - 0x74120003, // 0025 JMPT R4 #002A - 0x8C10032A, // 0026 GETMET R4 R1 K42 - 0x5818002F, // 0027 LDCONST R6 K47 - 0x7C100400, // 0028 CALL R4 2 - 0x74120039, // 0029 JMPT R4 #0064 - 0x8C100129, // 002A GETMET R4 R0 K41 - 0x7C100200, // 002B CALL R4 1 - 0x78120003, // 002C JMPF R4 #0031 - 0x5C100400, // 002D MOVE R4 R2 - 0x74120001, // 002E JMPT R4 #0031 - 0x8C10012B, // 002F GETMET R4 R0 K43 - 0x7C100200, // 0030 CALL R4 1 - 0x4C100000, // 0031 LDNIL R4 - 0x4C140000, // 0032 LDNIL R5 - 0xA802001A, // 0033 EXBLK 0 #004F - 0x60180011, // 0034 GETGBL R6 G17 - 0x5C1C0600, // 0035 MOVE R7 R3 - 0x58200030, // 0036 LDCONST R8 K48 - 0x7C180400, // 0037 CALL R6 2 - 0x5C100C00, // 0038 MOVE R4 R6 - 0x60180011, // 0039 GETGBL R6 G17 - 0x581C002F, // 003A LDCONST R7 K47 - 0x58200031, // 003B LDCONST R8 K49 - 0x7C180400, // 003C CALL R6 2 - 0x5C140C00, // 003D MOVE R5 R6 - 0x8C180932, // 003E GETMET R6 R4 K50 - 0x7C180200, // 003F CALL R6 1 - 0x8C1C0B33, // 0040 GETMET R7 R5 K51 - 0x5C240C00, // 0041 MOVE R9 R6 - 0x7C1C0400, // 0042 CALL R7 2 - 0x8C1C091B, // 0043 GETMET R7 R4 K27 - 0x7C1C0200, // 0044 CALL R7 1 - 0x8C1C0B1B, // 0045 GETMET R7 R5 K27 - 0x7C1C0200, // 0046 CALL R7 1 - 0x50080200, // 0047 LDBOOL R2 1 0 - 0xB81E0A00, // 0048 GETNGBL R7 K5 - 0x8C1C0F06, // 0049 GETMET R7 R7 K6 - 0x58240034, // 004A LDCONST R9 K52 - 0x58280008, // 004B LDCONST R10 K8 - 0x7C1C0600, // 004C CALL R7 3 - 0xA8040001, // 004D EXBLK 1 1 - 0x70020014, // 004E JMP #0064 - 0xAC180002, // 004F CATCH R6 0 2 - 0x70020011, // 0050 JMP #0063 - 0x60200001, // 0051 GETGBL R8 G1 - 0x60240018, // 0052 GETGBL R9 G24 - 0x58280035, // 0053 LDCONST R10 K53 - 0x5C2C0C00, // 0054 MOVE R11 R6 - 0x5C300E00, // 0055 MOVE R12 R7 - 0x7C240600, // 0056 CALL R9 3 - 0x7C200200, // 0057 CALL R8 1 - 0x4C200000, // 0058 LDNIL R8 - 0x20200808, // 0059 NE R8 R4 R8 - 0x78220001, // 005A JMPF R8 #005D - 0x8C20091B, // 005B GETMET R8 R4 K27 - 0x7C200200, // 005C CALL R8 1 - 0x4C200000, // 005D LDNIL R8 - 0x20200A08, // 005E NE R8 R5 R8 - 0x78220001, // 005F JMPF R8 #0062 - 0x8C200B1B, // 0060 GETMET R8 R5 K27 - 0x7C200200, // 0061 CALL R8 1 - 0x70020000, // 0062 JMP #0064 - 0xB0080000, // 0063 RAISE 2 R0 R0 - 0x780A0004, // 0064 JMPF R2 #006A - 0xB8120A00, // 0065 GETNGBL R4 K5 - 0x8C100936, // 0066 GETMET R4 R4 K54 - 0x58180037, // 0067 LDCONST R6 K55 - 0x7C100400, // 0068 CALL R4 2 - 0x80000800, // 0069 RET 0 - 0x88100127, // 006A GETMBR R4 R0 K39 - 0x00100938, // 006B ADD R4 R4 K56 - 0x5C0C0800, // 006C MOVE R3 R4 - 0x8C10032A, // 006D GETMET R4 R1 K42 - 0x5C180600, // 006E MOVE R6 R3 - 0x7C100400, // 006F CALL R4 2 - 0x7812000C, // 0070 JMPF R4 #007E - 0xB8120A00, // 0071 GETNGBL R4 K5 - 0x8C100906, // 0072 GETMET R4 R4 K6 - 0x001A7203, // 0073 ADD R6 K57 R3 - 0x581C003A, // 0074 LDCONST R7 K58 - 0x7C100600, // 0075 CALL R4 3 - 0x8C10012C, // 0076 GETMET R4 R0 K44 - 0x5C180600, // 0077 MOVE R6 R3 - 0x7C100400, // 0078 CALL R4 2 - 0xB8120A00, // 0079 GETNGBL R4 K5 - 0x8C100906, // 007A GETMET R4 R4 K6 - 0x001A7603, // 007B ADD R6 K59 R3 - 0x581C003A, // 007C LDCONST R7 K58 - 0x7C100600, // 007D CALL R4 3 - 0x88100127, // 007E GETMBR R4 R0 K39 - 0x0010093C, // 007F ADD R4 R4 K60 - 0x5C0C0800, // 0080 MOVE R3 R4 - 0x8C10032A, // 0081 GETMET R4 R1 K42 - 0x5C180600, // 0082 MOVE R6 R3 - 0x7C100400, // 0083 CALL R4 2 - 0x7812000C, // 0084 JMPF R4 #0092 - 0xB8120A00, // 0085 GETNGBL R4 K5 - 0x8C100906, // 0086 GETMET R4 R4 K6 - 0x001A7A03, // 0087 ADD R6 K61 R3 - 0x581C003A, // 0088 LDCONST R7 K58 - 0x7C100600, // 0089 CALL R4 3 - 0xB8127C00, // 008A GETNGBL R4 K62 - 0x5C140600, // 008B MOVE R5 R3 - 0x7C100200, // 008C CALL R4 1 - 0xB8120A00, // 008D GETNGBL R4 K5 - 0x8C100906, // 008E GETMET R4 R4 K6 - 0x001A7E03, // 008F ADD R6 K63 R3 - 0x581C003A, // 0090 LDCONST R7 K58 - 0x7C100600, // 0091 CALL R4 3 - 0x80000000, // 0092 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: run_bat -********************************************************************/ -be_local_closure(class_Autoconf_run_bat, /* name */ - be_nested_proto( - 12, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Autoconf, /* shared constants */ - &be_const_str_run_bat, - &be_const_str_solidified, - ( &(const binstruction[74]) { /* code */ - 0x4C080000, // 0000 LDNIL R2 - 0xA8020033, // 0001 EXBLK 0 #0036 - 0x600C0011, // 0002 GETGBL R3 G17 - 0x5C100200, // 0003 MOVE R4 R1 - 0x58140030, // 0004 LDCONST R5 K48 - 0x7C0C0400, // 0005 CALL R3 2 - 0x5C080600, // 0006 MOVE R2 R3 - 0x500C0200, // 0007 LDBOOL R3 1 0 - 0x780E0028, // 0008 JMPF R3 #0032 - 0x8C0C0540, // 0009 GETMET R3 R2 K64 - 0x7C0C0200, // 000A CALL R3 1 - 0x6010000C, // 000B GETGBL R4 G12 - 0x5C140600, // 000C MOVE R5 R3 - 0x7C100200, // 000D CALL R4 1 - 0x1C100941, // 000E EQ R4 R4 K65 - 0x78120006, // 000F JMPF R4 #0017 - 0x8C100542, // 0010 GETMET R4 R2 K66 - 0x7C100200, // 0011 CALL R4 1 - 0x8C140543, // 0012 GETMET R5 R2 K67 - 0x7C140200, // 0013 CALL R5 1 - 0x28100805, // 0014 GE R4 R4 R5 - 0x78120000, // 0015 JMPF R4 #0017 - 0x7002001A, // 0016 JMP #0032 - 0x6010000C, // 0017 GETGBL R4 G12 - 0x5C140600, // 0018 MOVE R5 R3 - 0x7C100200, // 0019 CALL R4 1 - 0x24100941, // 001A GT R4 R4 K65 - 0x7812000B, // 001B JMPF R4 #0028 - 0x5411FFFE, // 001C LDINT R4 -1 - 0x94100604, // 001D GETIDX R4 R3 R4 - 0x1C100944, // 001E EQ R4 R4 K68 - 0x74120003, // 001F JMPT R4 #0024 - 0x5411FFFE, // 0020 LDINT R4 -1 - 0x94100604, // 0021 GETIDX R4 R3 R4 - 0x1C100945, // 0022 EQ R4 R4 K69 - 0x78120003, // 0023 JMPF R4 #0028 - 0x5411FFFD, // 0024 LDINT R4 -2 - 0x40128204, // 0025 CONNECT R4 K65 R4 - 0x940C0604, // 0026 GETIDX R3 R3 R4 - 0x7001FFEE, // 0027 JMP #0017 - 0x6010000C, // 0028 GETGBL R4 G12 - 0x5C140600, // 0029 MOVE R5 R3 - 0x7C100200, // 002A CALL R4 1 - 0x24100941, // 002B GT R4 R4 K65 - 0x78120003, // 002C JMPF R4 #0031 - 0xB8120A00, // 002D GETNGBL R4 K5 - 0x8C100936, // 002E GETMET R4 R4 K54 - 0x5C180600, // 002F MOVE R6 R3 - 0x7C100400, // 0030 CALL R4 2 - 0x7001FFD4, // 0031 JMP #0007 - 0x8C0C051B, // 0032 GETMET R3 R2 K27 - 0x7C0C0200, // 0033 CALL R3 1 - 0xA8040001, // 0034 EXBLK 1 1 - 0x70020012, // 0035 JMP #0049 - 0xAC0C0002, // 0036 CATCH R3 0 2 - 0x7002000F, // 0037 JMP #0048 - 0xB8160A00, // 0038 GETNGBL R5 K5 - 0x8C140B06, // 0039 GETMET R5 R5 K6 - 0x601C0018, // 003A GETGBL R7 G24 - 0x58200046, // 003B LDCONST R8 K70 - 0x5C240200, // 003C MOVE R9 R1 - 0x5C280600, // 003D MOVE R10 R3 - 0x5C2C0800, // 003E MOVE R11 R4 - 0x7C1C0800, // 003F CALL R7 4 - 0x58200047, // 0040 LDCONST R8 K71 - 0x7C140600, // 0041 CALL R5 3 - 0x4C140000, // 0042 LDNIL R5 - 0x20140405, // 0043 NE R5 R2 R5 - 0x78160001, // 0044 JMPF R5 #0047 - 0x8C14051B, // 0045 GETMET R5 R2 K27 - 0x7C140200, // 0046 CALL R5 1 - 0x70020000, // 0047 JMP #0049 - 0xB0080000, // 0048 RAISE 2 R0 R0 - 0x80000000, // 0049 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: page_autoconf_mgr -********************************************************************/ -be_local_closure(class_Autoconf_page_autoconf_mgr, /* name */ - be_nested_proto( - 18, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Autoconf, /* shared constants */ - &be_const_str_page_autoconf_mgr, - &be_const_str_solidified, - ( &(const binstruction[124]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A9000, // 0001 IMPORT R2 K72 - 0x8C0C0302, // 0002 GETMET R3 R1 K2 - 0x7C0C0200, // 0003 CALL R3 1 - 0x740E0001, // 0004 JMPT R3 #0007 - 0x4C0C0000, // 0005 LDNIL R3 - 0x80040600, // 0006 RET 1 R3 - 0x8C0C031F, // 0007 GETMET R3 R1 K31 - 0x58140049, // 0008 LDCONST R5 K73 - 0x7C0C0400, // 0009 CALL R3 2 - 0x8C0C0321, // 000A GETMET R3 R1 K33 - 0x7C0C0200, // 000B CALL R3 1 - 0x8C0C0322, // 000C GETMET R3 R1 K34 - 0x5814004A, // 000D LDCONST R5 K74 - 0x7C0C0400, // 000E CALL R3 2 - 0x8C0C014B, // 000F GETMET R3 R0 K75 - 0x7C0C0200, // 0010 CALL R3 1 - 0x780E0006, // 0011 JMPF R3 #0019 - 0x8C10054C, // 0012 GETMET R4 R2 K76 - 0x8C18014D, // 0013 GETMET R6 R0 K77 - 0x7C180200, // 0014 CALL R6 1 - 0x581C004E, // 0015 LDCONST R7 K78 - 0x5820004F, // 0016 LDCONST R8 K79 - 0x7C100800, // 0017 CALL R4 4 - 0x70020004, // 0018 JMP #001E - 0x88100150, // 0019 GETMBR R4 R0 K80 - 0x78120001, // 001A JMPF R4 #001D - 0x58100051, // 001B LDCONST R4 K81 - 0x70020000, // 001C JMP #001E - 0x58100052, // 001D LDCONST R4 K82 - 0x8C140322, // 001E GETMET R5 R1 K34 - 0x581C0053, // 001F LDCONST R7 K83 - 0x7C140400, // 0020 CALL R5 2 - 0x8C140322, // 0021 GETMET R5 R1 K34 - 0x601C0018, // 0022 GETGBL R7 G24 - 0x58200054, // 0023 LDCONST R8 K84 - 0x7C1C0200, // 0024 CALL R7 1 - 0x7C140400, // 0025 CALL R5 2 - 0x8C140322, // 0026 GETMET R5 R1 K34 - 0x601C0018, // 0027 GETGBL R7 G24 - 0x58200055, // 0028 LDCONST R8 K85 - 0x5C240800, // 0029 MOVE R9 R4 - 0x7C1C0400, // 002A CALL R7 2 - 0x7C140400, // 002B CALL R5 2 - 0x780E000B, // 002C JMPF R3 #0039 - 0x8C140322, // 002D GETMET R5 R1 K34 - 0x581C0056, // 002E LDCONST R7 K86 - 0x7C140400, // 002F CALL R5 2 - 0x8C140322, // 0030 GETMET R5 R1 K34 - 0x581C0057, // 0031 LDCONST R7 K87 - 0x7C140400, // 0032 CALL R5 2 - 0x8C140322, // 0033 GETMET R5 R1 K34 - 0x581C0058, // 0034 LDCONST R7 K88 - 0x7C140400, // 0035 CALL R5 2 - 0x8C140322, // 0036 GETMET R5 R1 K34 - 0x581C0059, // 0037 LDCONST R7 K89 - 0x7C140400, // 0038 CALL R5 2 - 0x8C140322, // 0039 GETMET R5 R1 K34 - 0x581C005A, // 003A LDCONST R7 K90 - 0x7C140400, // 003B CALL R5 2 - 0x8C140322, // 003C GETMET R5 R1 K34 - 0x581C0053, // 003D LDCONST R7 K83 - 0x7C140400, // 003E CALL R5 2 - 0x8C140322, // 003F GETMET R5 R1 K34 - 0x601C0018, // 0040 GETGBL R7 G24 - 0x5820005B, // 0041 LDCONST R8 K91 - 0x7C1C0200, // 0042 CALL R7 1 - 0x7C140400, // 0043 CALL R5 2 - 0x8C140322, // 0044 GETMET R5 R1 K34 - 0x581C005C, // 0045 LDCONST R7 K92 - 0x7C140400, // 0046 CALL R5 2 - 0x8C140322, // 0047 GETMET R5 R1 K34 - 0x581C005D, // 0048 LDCONST R7 K93 - 0x7C140400, // 0049 CALL R5 2 - 0x8C140322, // 004A GETMET R5 R1 K34 - 0x581C005E, // 004B LDCONST R7 K94 - 0x7C140400, // 004C CALL R5 2 - 0x8C140322, // 004D GETMET R5 R1 K34 - 0x581C005F, // 004E LDCONST R7 K95 - 0x7C140400, // 004F CALL R5 2 - 0x8C140160, // 0050 GETMET R5 R0 K96 - 0x7C140200, // 0051 CALL R5 1 - 0x8C180322, // 0052 GETMET R6 R1 K34 - 0x58200061, // 0053 LDCONST R8 K97 - 0x7C180400, // 0054 CALL R6 2 - 0x60180010, // 0055 GETGBL R6 G16 - 0x5C1C0A00, // 0056 MOVE R7 R5 - 0x7C180200, // 0057 CALL R6 1 - 0xA802000D, // 0058 EXBLK 0 #0067 - 0x5C1C0C00, // 0059 MOVE R7 R6 - 0x7C1C0000, // 005A CALL R7 0 - 0x8C200322, // 005B GETMET R8 R1 K34 - 0x60280018, // 005C GETGBL R10 G24 - 0x582C0062, // 005D LDCONST R11 K98 - 0x5C300E00, // 005E MOVE R12 R7 - 0x8C34054C, // 005F GETMET R13 R2 K76 - 0x5C3C0E00, // 0060 MOVE R15 R7 - 0x5840004E, // 0061 LDCONST R16 K78 - 0x5844004F, // 0062 LDCONST R17 K79 - 0x7C340800, // 0063 CALL R13 4 - 0x7C280600, // 0064 CALL R10 3 - 0x7C200400, // 0065 CALL R8 2 - 0x7001FFF1, // 0066 JMP #0059 - 0x58180063, // 0067 LDCONST R6 K99 - 0xAC180200, // 0068 CATCH R6 1 0 - 0xB0080000, // 0069 RAISE 2 R0 R0 - 0x8C180322, // 006A GETMET R6 R1 K34 - 0x58200064, // 006B LDCONST R8 K100 - 0x7C180400, // 006C CALL R6 2 - 0x8C180322, // 006D GETMET R6 R1 K34 - 0x58200065, // 006E LDCONST R8 K101 - 0x7C180400, // 006F CALL R6 2 - 0x8C180322, // 0070 GETMET R6 R1 K34 - 0x58200059, // 0071 LDCONST R8 K89 - 0x7C180400, // 0072 CALL R6 2 - 0x8C180322, // 0073 GETMET R6 R1 K34 - 0x5820005A, // 0074 LDCONST R8 K90 - 0x7C180400, // 0075 CALL R6 2 - 0x8C180324, // 0076 GETMET R6 R1 K36 - 0x88200325, // 0077 GETMBR R8 R1 K37 - 0x7C180400, // 0078 CALL R6 2 - 0x8C180326, // 0079 GETMET R6 R1 K38 - 0x7C180200, // 007A CALL R6 1 - 0x80000000, // 007B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_current_module_name -********************************************************************/ -be_local_closure(class_Autoconf_get_current_module_name, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Autoconf, /* shared constants */ - &be_const_str_get_current_module_name, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x5405FFF5, // 0000 LDINT R1 -10 - 0x40068201, // 0001 CONNECT R1 K65 R1 - 0x88080127, // 0002 GETMBR R2 R0 K39 - 0x94040401, // 0003 GETIDX R1 R2 R1 - 0x80040200, // 0004 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: delete_all_configs -********************************************************************/ -be_local_closure(class_Autoconf_delete_all_configs, /* name */ - be_nested_proto( - 10, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Autoconf, /* shared constants */ - &be_const_str_delete_all_configs, - &be_const_str_solidified, - ( &(const binstruction[25]) { /* code */ - 0xA4060200, // 0000 IMPORT R1 K1 - 0xA40A9000, // 0001 IMPORT R2 K72 - 0x8C0C0366, // 0002 GETMET R3 R1 K102 - 0x58140067, // 0003 LDCONST R5 K103 - 0x7C0C0400, // 0004 CALL R3 2 - 0x60100010, // 0005 GETGBL R4 G16 - 0x5C140600, // 0006 MOVE R5 R3 - 0x7C100200, // 0007 CALL R4 1 - 0xA802000B, // 0008 EXBLK 0 #0015 - 0x5C140800, // 0009 MOVE R5 R4 - 0x7C140000, // 000A CALL R5 0 - 0x8C180568, // 000B GETMET R6 R2 K104 - 0x5C200A00, // 000C MOVE R8 R5 - 0x58240069, // 000D LDCONST R9 K105 - 0x7C180600, // 000E CALL R6 3 - 0x24180D41, // 000F GT R6 R6 K65 - 0x781A0002, // 0010 JMPF R6 #0014 - 0x8C18036A, // 0011 GETMET R6 R1 K106 - 0x5C200A00, // 0012 MOVE R8 R5 - 0x7C180400, // 0013 CALL R6 2 - 0x7001FFF3, // 0014 JMP #0009 - 0x58100063, // 0015 LDCONST R4 K99 - 0xAC100200, // 0016 CATCH R4 1 0 - 0xB0080000, // 0017 RAISE 2 R0 R0 - 0x80000000, // 0018 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_first_time -********************************************************************/ -be_local_closure(class_Autoconf_set_first_time, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Autoconf, /* shared constants */ - &be_const_str_set_first_time, - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x60040011, // 0000 GETGBL R1 G17 - 0x5808006B, // 0001 LDCONST R2 K107 - 0x580C0031, // 0002 LDCONST R3 K49 - 0x7C040400, // 0003 CALL R1 2 - 0x8C08031B, // 0004 GETMET R2 R1 K27 - 0x7C080200, // 0005 CALL R2 1 - 0x80000000, // 0006 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: load_templates -********************************************************************/ -be_local_closure(class_Autoconf_load_templates, /* name */ - be_nested_proto( - 13, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Autoconf, /* shared constants */ - &be_const_str_load_templates, - &be_const_str_solidified, - ( &(const binstruction[85]) { /* code */ - 0xA406D800, // 0000 IMPORT R1 K108 - 0xA8020042, // 0001 EXBLK 0 #0045 - 0x60080018, // 0002 GETGBL R2 G24 - 0x580C006D, // 0003 LDCONST R3 K109 - 0xB8120A00, // 0004 GETNGBL R4 K5 - 0x8C100912, // 0005 GETMET R4 R4 K18 - 0x7C100200, // 0006 CALL R4 1 - 0x7C080400, // 0007 CALL R2 2 - 0xB80E0A00, // 0008 GETNGBL R3 K5 - 0x8C0C0706, // 0009 GETMET R3 R3 K6 - 0x60140018, // 000A GETGBL R5 G24 - 0x5818006E, // 000B LDCONST R6 K110 - 0x5C1C0400, // 000C MOVE R7 R2 - 0x7C140400, // 000D CALL R5 2 - 0x5818003A, // 000E LDCONST R6 K58 - 0x7C0C0600, // 000F CALL R3 3 - 0xB80E2A00, // 0010 GETNGBL R3 K21 - 0x7C0C0000, // 0011 CALL R3 0 - 0x8C100716, // 0012 GETMET R4 R3 K22 - 0x5C180400, // 0013 MOVE R6 R2 - 0x7C100400, // 0014 CALL R4 2 - 0x8C100717, // 0015 GETMET R4 R3 K23 - 0x7C100200, // 0016 CALL R4 1 - 0x541600C7, // 0017 LDINT R5 200 - 0x20140805, // 0018 NE R5 R4 R5 - 0x7816000A, // 0019 JMPF R5 #0025 - 0xB8160A00, // 001A GETNGBL R5 K5 - 0x8C140B06, // 001B GETMET R5 R5 K6 - 0x601C0018, // 001C GETGBL R7 G24 - 0x5820006F, // 001D LDCONST R8 K111 - 0x5C240800, // 001E MOVE R9 R4 - 0x7C1C0400, // 001F CALL R7 2 - 0x58200008, // 0020 LDCONST R8 K8 - 0x7C140600, // 0021 CALL R5 3 - 0x4C140000, // 0022 LDNIL R5 - 0xA8040001, // 0023 EXBLK 1 1 - 0x80040A00, // 0024 RET 1 R5 - 0x8C140770, // 0025 GETMET R5 R3 K112 - 0x7C140200, // 0026 CALL R5 1 - 0x8C18071B, // 0027 GETMET R6 R3 K27 - 0x7C180200, // 0028 CALL R6 1 - 0x8C18033E, // 0029 GETMET R6 R1 K62 - 0x5C200A00, // 002A MOVE R8 R5 - 0x7C180400, // 002B CALL R6 2 - 0xB81E0A00, // 002C GETNGBL R7 K5 - 0x8C1C0F06, // 002D GETMET R7 R7 K6 - 0x60240018, // 002E GETGBL R9 G24 - 0x58280071, // 002F LDCONST R10 K113 - 0x602C0008, // 0030 GETGBL R11 G8 - 0x5C300C00, // 0031 MOVE R12 R6 - 0x7C2C0200, // 0032 CALL R11 1 - 0x7C240400, // 0033 CALL R9 2 - 0x5828003A, // 0034 LDCONST R10 K58 - 0x7C1C0600, // 0035 CALL R7 3 - 0x8C1C0D68, // 0036 GETMET R7 R6 K104 - 0x58240072, // 0037 LDCONST R9 K114 - 0x7C1C0400, // 0038 CALL R7 2 - 0x6020000F, // 0039 GETGBL R8 G15 - 0x5C240E00, // 003A MOVE R9 R7 - 0x60280012, // 003B GETGBL R10 G18 - 0x7C200400, // 003C CALL R8 2 - 0x78220001, // 003D JMPF R8 #0040 - 0xA8040001, // 003E EXBLK 1 1 - 0x80040E00, // 003F RET 1 R7 - 0x4C200000, // 0040 LDNIL R8 - 0xA8040001, // 0041 EXBLK 1 1 - 0x80041000, // 0042 RET 1 R8 - 0xA8040001, // 0043 EXBLK 1 1 - 0x7002000E, // 0044 JMP #0054 - 0xAC080002, // 0045 CATCH R2 0 2 - 0x7002000B, // 0046 JMP #0053 - 0xB8120A00, // 0047 GETNGBL R4 K5 - 0x8C100906, // 0048 GETMET R4 R4 K6 - 0x60180018, // 0049 GETGBL R6 G24 - 0x581C0073, // 004A LDCONST R7 K115 - 0x5C200400, // 004B MOVE R8 R2 - 0x5C240600, // 004C MOVE R9 R3 - 0x7C180600, // 004D CALL R6 3 - 0x581C0008, // 004E LDCONST R7 K8 - 0x7C100600, // 004F CALL R4 3 - 0x4C100000, // 0050 LDNIL R4 - 0x80040800, // 0051 RET 1 R4 - 0x70020000, // 0052 JMP #0054 - 0xB0080000, // 0053 RAISE 2 R0 R0 - 0x80000000, // 0054 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: web_add_config_button -********************************************************************/ -be_local_closure(class_Autoconf_web_add_config_button, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Autoconf, /* shared constants */ - &be_const_str_web_add_config_button, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C080322, // 0001 GETMET R2 R1 K34 - 0x58100074, // 0002 LDCONST R4 K116 - 0x7C080400, // 0003 CALL R2 2 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: is_first_time -********************************************************************/ -be_local_closure(class_Autoconf_is_first_time, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Autoconf, /* shared constants */ - &be_const_str_is_first_time, - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0xA4060200, // 0000 IMPORT R1 K1 - 0x8C08032A, // 0001 GETMET R2 R1 K42 - 0x5810006B, // 0002 LDCONST R4 K107 - 0x7C080400, // 0003 CALL R2 2 - 0x780A0000, // 0004 JMPF R2 #0006 - 0x50080001, // 0005 LDBOOL R2 0 1 - 0x50080200, // 0006 LDBOOL R2 1 0 - 0x80040400, // 0007 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_Autoconf_init, /* name */ - be_nested_proto( - 12, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Autoconf, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[53]) { /* code */ - 0xA4060200, // 0000 IMPORT R1 K1 - 0xA40A9000, // 0001 IMPORT R2 K72 - 0x8C0C0366, // 0002 GETMET R3 R1 K102 - 0x58140067, // 0003 LDCONST R5 K103 - 0x7C0C0400, // 0004 CALL R3 2 - 0x4C100000, // 0005 LDNIL R4 - 0xB8160A00, // 0006 GETNGBL R5 K5 - 0x8C140B75, // 0007 GETMET R5 R5 K117 - 0x5C1C0000, // 0008 MOVE R7 R0 - 0x7C140400, // 0009 CALL R5 2 - 0x58140041, // 000A LDCONST R5 K65 - 0x6018000C, // 000B GETGBL R6 G12 - 0x5C1C0600, // 000C MOVE R7 R3 - 0x7C180200, // 000D CALL R6 1 - 0x14180A06, // 000E LT R6 R5 R6 - 0x781A0018, // 000F JMPF R6 #0029 - 0x8C180568, // 0010 GETMET R6 R2 K104 - 0x94200605, // 0011 GETIDX R8 R3 R5 - 0x58240069, // 0012 LDCONST R9 K105 - 0x7C180600, // 0013 CALL R6 3 - 0x24180D41, // 0014 GT R6 R6 K65 - 0x781A0010, // 0015 JMPF R6 #0027 - 0x4C180000, // 0016 LDNIL R6 - 0x20180806, // 0017 NE R6 R4 R6 - 0x781A000C, // 0018 JMPF R6 #0026 - 0xB81A0A00, // 0019 GETNGBL R6 K5 - 0x8C180D06, // 001A GETMET R6 R6 K6 - 0x60200018, // 001B GETGBL R8 G24 - 0x58240076, // 001C LDCONST R9 K118 - 0x5C280800, // 001D MOVE R10 R4 - 0x942C0605, // 001E GETIDX R11 R3 R5 - 0x7C200600, // 001F CALL R8 3 - 0x58240008, // 0020 LDCONST R9 K8 - 0x7C180600, // 0021 CALL R6 3 - 0x50180200, // 0022 LDBOOL R6 1 0 - 0x9002A006, // 0023 SETMBR R0 K80 R6 - 0x4C180000, // 0024 LDNIL R6 - 0x80040C00, // 0025 RET 1 R6 - 0x94100605, // 0026 GETIDX R4 R3 R5 - 0x00140B47, // 0027 ADD R5 R5 K71 - 0x7001FFE1, // 0028 JMP #000B - 0x4C180000, // 0029 LDNIL R6 - 0x1C180806, // 002A EQ R6 R4 R6 - 0x781A0006, // 002B JMPF R6 #0033 - 0xB81A0A00, // 002C GETNGBL R6 K5 - 0x8C180D06, // 002D GETMET R6 R6 K6 - 0x58200077, // 002E LDCONST R8 K119 - 0x5824003A, // 002F LDCONST R9 K58 - 0x7C180600, // 0030 CALL R6 3 - 0x4C180000, // 0031 LDNIL R6 - 0x80040C00, // 0032 RET 1 R6 - 0x90024E04, // 0033 SETMBR R0 K39 R4 - 0x80000000, // 0034 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: preinit -********************************************************************/ -be_local_closure(class_Autoconf_preinit, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Autoconf, /* shared constants */ - &be_const_str_preinit, - &be_const_str_solidified, - ( &(const binstruction[26]) { /* code */ - 0x88040127, // 0000 GETMBR R1 R0 K39 - 0x4C080000, // 0001 LDNIL R2 - 0x1C040202, // 0002 EQ R1 R1 R2 - 0x78060000, // 0003 JMPF R1 #0005 - 0x80000200, // 0004 RET 0 - 0xA4060200, // 0005 IMPORT R1 K1 - 0x88080127, // 0006 GETMBR R2 R0 K39 - 0x00080578, // 0007 ADD R2 R2 K120 - 0x8C0C032A, // 0008 GETMET R3 R1 K42 - 0x5C140400, // 0009 MOVE R5 R2 - 0x7C0C0400, // 000A CALL R3 2 - 0x780E000C, // 000B JMPF R3 #0019 - 0xB80E0A00, // 000C GETNGBL R3 K5 - 0x8C0C0706, // 000D GETMET R3 R3 K6 - 0x00167A02, // 000E ADD R5 K61 R2 - 0x5818003A, // 000F LDCONST R6 K58 - 0x7C0C0600, // 0010 CALL R3 3 - 0xB80E7C00, // 0011 GETNGBL R3 K62 - 0x5C100400, // 0012 MOVE R4 R2 - 0x7C0C0200, // 0013 CALL R3 1 - 0xB80E0A00, // 0014 GETNGBL R3 K5 - 0x8C0C0706, // 0015 GETMET R3 R3 K6 - 0x00167E02, // 0016 ADD R5 K63 R2 - 0x5818003A, // 0017 LDCONST R6 K58 - 0x7C0C0600, // 0018 CALL R3 3 - 0x80000000, // 0019 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: reset -********************************************************************/ -be_local_closure(class_Autoconf_reset, /* name */ - be_nested_proto( - 11, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Autoconf, /* shared constants */ - &be_const_str_reset, - &be_const_str_solidified, - ( &(const binstruction[35]) { /* code */ - 0xA4060200, // 0000 IMPORT R1 K1 - 0xA40A9000, // 0001 IMPORT R2 K72 - 0x8C0C0366, // 0002 GETMET R3 R1 K102 - 0x58140067, // 0003 LDCONST R5 K103 - 0x7C0C0400, // 0004 CALL R3 2 - 0x4C100000, // 0005 LDNIL R4 - 0x58140041, // 0006 LDCONST R5 K65 - 0x6018000C, // 0007 GETGBL R6 G12 - 0x5C1C0600, // 0008 MOVE R7 R3 - 0x7C180200, // 0009 CALL R6 1 - 0x14180A06, // 000A LT R6 R5 R6 - 0x781A0011, // 000B JMPF R6 #001E - 0x94180605, // 000C GETIDX R6 R3 R5 - 0x8C1C0568, // 000D GETMET R7 R2 K104 - 0x5C240C00, // 000E MOVE R9 R6 - 0x58280069, // 000F LDCONST R10 K105 - 0x7C1C0600, // 0010 CALL R7 3 - 0x241C0F41, // 0011 GT R7 R7 K65 - 0x781E0008, // 0012 JMPF R7 #001C - 0x8C1C036A, // 0013 GETMET R7 R1 K106 - 0x5C240C00, // 0014 MOVE R9 R6 - 0x7C1C0400, // 0015 CALL R7 2 - 0x601C0001, // 0016 GETGBL R7 G1 - 0x60200018, // 0017 GETGBL R8 G24 - 0x58240079, // 0018 LDCONST R9 K121 - 0x5C280C00, // 0019 MOVE R10 R6 - 0x7C200400, // 001A CALL R8 2 - 0x7C1C0200, // 001B CALL R7 1 - 0x00140B47, // 001C ADD R5 R5 K71 - 0x7001FFE8, // 001D JMP #0007 - 0x4C180000, // 001E LDNIL R6 - 0x90024E06, // 001F SETMBR R0 K39 R6 - 0x4C180000, // 0020 LDNIL R6 - 0x9002A006, // 0021 SETMBR R0 K80 R6 - 0x80000000, // 0022 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: web_add_handler -********************************************************************/ -be_local_closure(class_Autoconf_web_add_handler, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 2]) { - be_nested_proto( - 2, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str(page_autoconf_mgr), - }), - &be_const_str__X3Clambda_X3E, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0x80040000, // 0003 RET 1 R0 - }) - ), - be_nested_proto( - 2, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str(page_autoconf_ctl), - }), - &be_const_str__X3Clambda_X3E, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0x80040000, // 0003 RET 1 R0 - }) - ), - }), - 1, /* has constants */ - &be_ktab_class_Autoconf, /* shared constants */ - &be_const_str_web_add_handler, - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C08037A, // 0001 GETMET R2 R1 K122 - 0x5810007B, // 0002 LDCONST R4 K123 - 0x84140000, // 0003 CLOSURE R5 P0 - 0x8818037C, // 0004 GETMBR R6 R1 K124 - 0x7C080800, // 0005 CALL R2 4 - 0x8C08037A, // 0006 GETMET R2 R1 K122 - 0x5810007B, // 0007 LDCONST R4 K123 - 0x84140001, // 0008 CLOSURE R5 P1 - 0x8818037D, // 0009 GETMBR R6 R1 K125 - 0x7C080800, // 000A CALL R2 4 - 0xA0000000, // 000B CLOSE R0 - 0x80000000, // 000C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: clear_first_time -********************************************************************/ -be_local_closure(class_Autoconf_clear_first_time, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Autoconf, /* shared constants */ - &be_const_str_clear_first_time, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0xA4060200, // 0000 IMPORT R1 K1 - 0x8C08036A, // 0001 GETMET R2 R1 K106 - 0x5810006B, // 0002 LDCONST R4 K107 - 0x7C080400, // 0003 CALL R2 2 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_current_module_path -********************************************************************/ -be_local_closure(class_Autoconf_get_current_module_path, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Autoconf, /* shared constants */ - &be_const_str_get_current_module_path, - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040127, // 0000 GETMBR R1 R0 K39 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: Autoconf -********************************************************************/ -be_local_class(Autoconf, - 2, - NULL, - be_nested_map(18, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(page_autoconf_ctl, -1), be_const_closure(class_Autoconf_page_autoconf_ctl_closure) }, - { be_const_key(autoexec, -1), be_const_closure(class_Autoconf_autoexec_closure) }, - { be_const_key(run_bat, 17), be_const_closure(class_Autoconf_run_bat_closure) }, - { be_const_key(page_autoconf_mgr, -1), be_const_closure(class_Autoconf_page_autoconf_mgr_closure) }, - { be_const_key(get_current_module_path, 13), be_const_closure(class_Autoconf_get_current_module_path_closure) }, - { be_const_key(preinit, -1), be_const_closure(class_Autoconf_preinit_closure) }, - { be_const_key(clear_first_time, -1), be_const_closure(class_Autoconf_clear_first_time_closure) }, - { be_const_key(load_templates, -1), be_const_closure(class_Autoconf_load_templates_closure) }, - { be_const_key(_archive, -1), be_const_var(0) }, - { be_const_key(web_add_config_button, -1), be_const_closure(class_Autoconf_web_add_config_button_closure) }, - { be_const_key(is_first_time, -1), be_const_closure(class_Autoconf_is_first_time_closure) }, - { be_const_key(web_add_handler, -1), be_const_closure(class_Autoconf_web_add_handler_closure) }, - { be_const_key(delete_all_configs, 4), be_const_closure(class_Autoconf_delete_all_configs_closure) }, - { be_const_key(reset, 5), be_const_closure(class_Autoconf_reset_closure) }, - { be_const_key(get_current_module_name, 11), be_const_closure(class_Autoconf_get_current_module_name_closure) }, - { be_const_key(init, 6), be_const_closure(class_Autoconf_init_closure) }, - { be_const_key(_error, -1), be_const_var(1) }, - { be_const_key(set_first_time, -1), be_const_closure(class_Autoconf_set_first_time_closure) }, - })), - (bstring*) &be_const_str_Autoconf -); - -/******************************************************************** -** Solidified function: _anonymous_ -********************************************************************/ -be_local_closure(_anonymous_, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_const_class(be_class_Autoconf), - }), - &be_const_str__anonymous_, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x58040000, // 0000 LDCONST R1 K0 - 0xB4000000, // 0001 CLASS K0 - 0x5C080200, // 0002 MOVE R2 R1 - 0x7C080000, // 0003 CALL R2 0 - 0x80040400, // 0004 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified module: autoconf -********************************************************************/ -be_local_module(autoconf, - "autoconf", - be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(init, -1), be_const_closure(_anonymous__closure) }, - })) -); -BE_EXPORT_VARIABLE be_define_const_native_module(autoconf); -/********************************************************************/ -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_crypto_pbkdf2_hmac_sha256.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_crypto_pbkdf2_hmac_sha256.h deleted file mode 100644 index 365a97a07..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_crypto_pbkdf2_hmac_sha256.h +++ /dev/null @@ -1,203 +0,0 @@ -/* Solidification of crypto_pbkdf2_hmac_sha256.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" - -/******************************************************************** -** Solidified function: _f -********************************************************************/ -be_local_closure(_f, /* name */ - be_nested_proto( - 12, /* nstack */ - 4, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 1]) { - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(size), - /* K1 */ be_const_int(0), - /* K2 */ be_const_int(1), - }), - be_str_weak(xor), - &be_const_str_solidified, - ( &(const binstruction[19]) { /* code */ - 0x60080000, // 0000 GETGBL R2 G0 - 0x8C0C0100, // 0001 GETMET R3 R0 K0 - 0x7C0C0200, // 0002 CALL R3 1 - 0x8C100300, // 0003 GETMET R4 R1 K0 - 0x7C100200, // 0004 CALL R4 1 - 0x1C0C0604, // 0005 EQ R3 R3 R4 - 0x7C080200, // 0006 CALL R2 1 - 0x8C080100, // 0007 GETMET R2 R0 K0 - 0x7C080200, // 0008 CALL R2 1 - 0x580C0001, // 0009 LDCONST R3 K1 - 0x14100602, // 000A LT R4 R3 R2 - 0x78120005, // 000B JMPF R4 #0012 - 0x94100003, // 000C GETIDX R4 R0 R3 - 0x94140203, // 000D GETIDX R5 R1 R3 - 0x34100805, // 000E XOR R4 R4 R5 - 0x98000604, // 000F SETIDX R0 R3 R4 - 0x000C0702, // 0010 ADD R3 R3 K2 - 0x7001FFF7, // 0011 JMP #000A - 0x80000000, // 0012 RET 0 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[10]) { /* constants */ - /* K0 */ be_nested_str_weak(crypto), - /* K1 */ be_nested_str_weak(HMAC_SHA256), - /* K2 */ be_nested_str_weak(update), - /* K3 */ be_nested_str_weak(out), - /* K4 */ be_nested_str_weak(setbytes), - /* K5 */ be_const_int(0), - /* K6 */ be_const_int(2), - /* K7 */ be_const_int(1), - /* K8 */ be_nested_str_weak(tasmota), - /* K9 */ be_nested_str_weak(yield), - }), - be_str_weak(_f), - &be_const_str_solidified, - ( &(const binstruction[37]) { /* code */ - 0x84100000, // 0000 CLOSURE R4 P0 - 0xA4160000, // 0001 IMPORT R5 K0 - 0x8C180B01, // 0002 GETMET R6 R5 K1 - 0x5C200000, // 0003 MOVE R8 R0 - 0x7C180400, // 0004 CALL R6 2 - 0x8C1C0D02, // 0005 GETMET R7 R6 K2 - 0x5C240200, // 0006 MOVE R9 R1 - 0x7C1C0400, // 0007 CALL R7 2 - 0x8C1C0D03, // 0008 GETMET R7 R6 K3 - 0x7C1C0200, // 0009 CALL R7 1 - 0x8C200704, // 000A GETMET R8 R3 K4 - 0x58280005, // 000B LDCONST R10 K5 - 0x5C2C0E00, // 000C MOVE R11 R7 - 0x7C200600, // 000D CALL R8 3 - 0x58200006, // 000E LDCONST R8 K6 - 0x18241002, // 000F LE R9 R8 R2 - 0x78260012, // 0010 JMPF R9 #0024 - 0x8C240B01, // 0011 GETMET R9 R5 K1 - 0x5C2C0000, // 0012 MOVE R11 R0 - 0x7C240400, // 0013 CALL R9 2 - 0x5C181200, // 0014 MOVE R6 R9 - 0x8C240D02, // 0015 GETMET R9 R6 K2 - 0x5C2C0E00, // 0016 MOVE R11 R7 - 0x7C240400, // 0017 CALL R9 2 - 0x8C240D03, // 0018 GETMET R9 R6 K3 - 0x7C240200, // 0019 CALL R9 1 - 0x5C1C1200, // 001A MOVE R7 R9 - 0x5C240800, // 001B MOVE R9 R4 - 0x5C280600, // 001C MOVE R10 R3 - 0x5C2C0E00, // 001D MOVE R11 R7 - 0x7C240400, // 001E CALL R9 2 - 0x00201107, // 001F ADD R8 R8 K7 - 0xB8261000, // 0020 GETNGBL R9 K8 - 0x8C241309, // 0021 GETMET R9 R9 K9 - 0x7C240200, // 0022 CALL R9 1 - 0x7001FFEA, // 0023 JMP #000F - 0x80000000, // 0024 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: PBKDF2_HMAC_SHA256 -********************************************************************/ -be_local_closure(PBKDF2_HMAC_SHA256, /* name */ - be_nested_proto( - 15, /* nstack */ - 5, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(fromstring), - /* K2 */ be_const_int(1), - /* K3 */ be_nested_str_weak(size), - /* K4 */ be_nested_str_weak(copy), - /* K5 */ be_nested_str_weak(add), - /* K6 */ be_nested_str_weak(resize), - /* K7 */ be_nested_str_weak(_f), - /* K8 */ be_const_int(0), - }), - be_str_weak(PBKDF2_HMAC_SHA256), - &be_const_str_solidified, - ( &(const binstruction[53]) { /* code */ - 0x60140004, // 0000 GETGBL R5 G4 - 0x5C180200, // 0001 MOVE R6 R1 - 0x7C140200, // 0002 CALL R5 1 - 0x1C140B00, // 0003 EQ R5 R5 K0 - 0x78160005, // 0004 JMPF R5 #000B - 0x60140015, // 0005 GETGBL R5 G21 - 0x7C140000, // 0006 CALL R5 0 - 0x8C140B01, // 0007 GETMET R5 R5 K1 - 0x5C1C0200, // 0008 MOVE R7 R1 - 0x7C140400, // 0009 CALL R5 2 - 0x5C040A00, // 000A MOVE R1 R5 - 0x60140004, // 000B GETGBL R5 G4 - 0x5C180400, // 000C MOVE R6 R2 - 0x7C140200, // 000D CALL R5 1 - 0x1C140B00, // 000E EQ R5 R5 K0 - 0x78160005, // 000F JMPF R5 #0016 - 0x60140015, // 0010 GETGBL R5 G21 - 0x7C140000, // 0011 CALL R5 0 - 0x8C140B01, // 0012 GETMET R5 R5 K1 - 0x5C1C0400, // 0013 MOVE R7 R2 - 0x7C140400, // 0014 CALL R5 2 - 0x5C080A00, // 0015 MOVE R2 R5 - 0x60140015, // 0016 GETGBL R5 G21 - 0x7C140000, // 0017 CALL R5 0 - 0x58180002, // 0018 LDCONST R6 K2 - 0x8C1C0B03, // 0019 GETMET R7 R5 K3 - 0x7C1C0200, // 001A CALL R7 1 - 0x141C0E04, // 001B LT R7 R7 R4 - 0x781E0013, // 001C JMPF R7 #0031 - 0x8C1C0504, // 001D GETMET R7 R2 K4 - 0x7C1C0200, // 001E CALL R7 1 - 0x8C200F05, // 001F GETMET R8 R7 K5 - 0x5C280C00, // 0020 MOVE R10 R6 - 0x542DFFFB, // 0021 LDINT R11 -4 - 0x7C200600, // 0022 CALL R8 3 - 0x60200015, // 0023 GETGBL R8 G21 - 0x7C200000, // 0024 CALL R8 0 - 0x8C201106, // 0025 GETMET R8 R8 K6 - 0x542A001F, // 0026 LDINT R10 32 - 0x7C200400, // 0027 CALL R8 2 - 0x8C240107, // 0028 GETMET R9 R0 K7 - 0x5C2C0200, // 0029 MOVE R11 R1 - 0x5C300E00, // 002A MOVE R12 R7 - 0x5C340600, // 002B MOVE R13 R3 - 0x5C381000, // 002C MOVE R14 R8 - 0x7C240A00, // 002D CALL R9 5 - 0x00140A08, // 002E ADD R5 R5 R8 - 0x00180D02, // 002F ADD R6 R6 K2 - 0x7001FFE7, // 0030 JMP #0019 - 0x041C0902, // 0031 SUB R7 R4 K2 - 0x401E1007, // 0032 CONNECT R7 K8 R7 - 0x941C0A07, // 0033 GETIDX R7 R5 R7 - 0x80040E00, // 0034 RET 1 R7 - }) - ) -); -/*******************************************************************/ - -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_crypto_spake2p_matter.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_crypto_spake2p_matter.h deleted file mode 100644 index ed42f2852..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_crypto_spake2p_matter.h +++ /dev/null @@ -1,638 +0,0 @@ -/* Solidification of crypto_spake2p_matter.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -extern const bclass be_class_SPAKE_Hasher; -// compact class 'SPAKE_Hasher' ktab size: 8, total: 10 (saved 16 bytes) -static const bvalue be_ktab_class_SPAKE_Hasher[8] = { - /* K0 */ be_nested_str_weak(crypto), - /* K1 */ be_nested_str_weak(hash), - /* K2 */ be_nested_str_weak(SHA256), - /* K3 */ be_nested_str_weak(size), - /* K4 */ be_nested_str_weak(add), - /* K5 */ be_const_int(0), - /* K6 */ be_nested_str_weak(update), - /* K7 */ be_nested_str_weak(out), -}; - - -extern const bclass be_class_SPAKE_Hasher; - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_SPAKE_Hasher_init, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_SPAKE_Hasher, /* shared constants */ - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C080302, // 0001 GETMET R2 R1 K2 - 0x7C080200, // 0002 CALL R2 1 - 0x90020202, // 0003 SETMBR R0 K1 R2 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: add_item -********************************************************************/ -be_local_closure(class_SPAKE_Hasher_add_item, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_SPAKE_Hasher, /* shared constants */ - be_str_weak(add_item), - &be_const_str_solidified, - ( &(const binstruction[21]) { /* code */ - 0x8C080303, // 0000 GETMET R2 R1 K3 - 0x7C080200, // 0001 CALL R2 1 - 0x600C0015, // 0002 GETGBL R3 G21 - 0x7C0C0000, // 0003 CALL R3 0 - 0x8C0C0704, // 0004 GETMET R3 R3 K4 - 0x5C140400, // 0005 MOVE R5 R2 - 0x541A0003, // 0006 LDINT R6 4 - 0x7C0C0600, // 0007 CALL R3 3 - 0x8C0C0704, // 0008 GETMET R3 R3 K4 - 0x58140005, // 0009 LDCONST R5 K5 - 0x541A0003, // 000A LDINT R6 4 - 0x7C0C0600, // 000B CALL R3 3 - 0x88100101, // 000C GETMBR R4 R0 K1 - 0x8C100906, // 000D GETMET R4 R4 K6 - 0x5C180600, // 000E MOVE R6 R3 - 0x7C100400, // 000F CALL R4 2 - 0x88100101, // 0010 GETMBR R4 R0 K1 - 0x8C100906, // 0011 GETMET R4 R4 K6 - 0x5C180200, // 0012 MOVE R6 R1 - 0x7C100400, // 0013 CALL R4 2 - 0x80000000, // 0014 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: out -********************************************************************/ -be_local_closure(class_SPAKE_Hasher_out, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_SPAKE_Hasher, /* shared constants */ - be_str_weak(out), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040101, // 0000 GETMBR R1 R0 K1 - 0x8C040307, // 0001 GETMET R1 R1 K7 - 0x7C040200, // 0002 CALL R1 1 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: SPAKE_Hasher -********************************************************************/ -be_local_class(SPAKE_Hasher, - 1, - NULL, - be_nested_map(4, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(out, -1), be_const_closure(class_SPAKE_Hasher_out_closure) }, - { be_const_key_weak(hash, -1), be_const_var(0) }, - { be_const_key_weak(add_item, -1), be_const_closure(class_SPAKE_Hasher_add_item_closure) }, - { be_const_key_weak(init, 0), be_const_closure(class_SPAKE_Hasher_init_closure) }, - })), - be_str_weak(SPAKE_Hasher) -); -// compact class 'SPAKE2P_Matter' ktab size: 43, total: 84 (saved 328 bytes) -static const bvalue be_ktab_class_SPAKE2P_Matter[43] = { - /* K0 */ be_nested_str_weak(crypto), - /* K1 */ be_nested_str_weak(random), - /* K2 */ be_nested_str_weak(EC_P256), - /* K3 */ be_nested_str_weak(y), - /* K4 */ be_nested_str_weak(mod), - /* K5 */ be_nested_str_weak(pB), - /* K6 */ be_nested_str_weak(muladd), - /* K7 */ be_nested_str_weak(w0), - /* K8 */ be_nested_str_weak(N), - /* K9 */ be_const_class(be_class_SPAKE_Hasher), - /* K10 */ be_nested_str_weak(add_item), - /* K11 */ be_nested_str_weak(Context), - /* K12 */ be_nested_str_weak(A), - /* K13 */ be_nested_str_weak(B), - /* K14 */ be_nested_str_weak(M), - /* K15 */ be_nested_str_weak(pA), - /* K16 */ be_nested_str_weak(Z), - /* K17 */ be_nested_str_weak(V), - /* K18 */ be_nested_str_weak(Kmain), - /* K19 */ be_nested_str_weak(out), - /* K20 */ be_nested_str_weak(Ke), - /* K21 */ be_const_int(0), - /* K22 */ be_nested_str_weak(HKDF_SHA256), - /* K23 */ be_nested_str_weak(derive), - /* K24 */ be_nested_str_weak(fromstring), - /* K25 */ be_nested_str_weak(ConfirmationKeys), - /* K26 */ be_nested_str_weak(KcA), - /* K27 */ be_nested_str_weak(KcB), - /* K28 */ be_nested_str_weak(K_shared), - /* K29 */ be_nested_str_weak(SharedKey), - /* K30 */ be_nested_str_weak(cA), - /* K31 */ be_nested_str_weak(HMAC_SHA256), - /* K32 */ be_nested_str_weak(update), - /* K33 */ be_nested_str_weak(cB), - /* K34 */ be_nested_str_weak(fromhex), - /* K35 */ be_nested_str_weak(spake_M_hex), - /* K36 */ be_nested_str_weak(spake_N_hex), - /* K37 */ be_nested_str_weak(w1), - /* K38 */ be_nested_str_weak(L), - /* K39 */ be_nested_str_weak(x), - /* K40 */ be_nested_str_weak(neg), - /* K41 */ be_nested_str_weak(01), - /* K42 */ be_nested_str_weak(mul), -}; - - -extern const bclass be_class_SPAKE2P_Matter; - -/******************************************************************** -** Solidified function: compute_pB -********************************************************************/ -be_local_closure(class_SPAKE2P_Matter_compute_pB, /* name */ - be_nested_proto( - 10, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_SPAKE2P_Matter, /* shared constants */ - be_str_weak(compute_pB), - &be_const_str_solidified, - ( &(const binstruction[24]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x4C0C0000, // 0001 LDNIL R3 - 0x1C0C0203, // 0002 EQ R3 R1 R3 - 0x780E0003, // 0003 JMPF R3 #0008 - 0x8C0C0501, // 0004 GETMET R3 R2 K1 - 0x5416001F, // 0005 LDINT R5 32 - 0x7C0C0400, // 0006 CALL R3 2 - 0x5C040600, // 0007 MOVE R1 R3 - 0x8C0C0502, // 0008 GETMET R3 R2 K2 - 0x7C0C0200, // 0009 CALL R3 1 - 0x8C100704, // 000A GETMET R4 R3 K4 - 0x5C180200, // 000B MOVE R6 R1 - 0x7C100400, // 000C CALL R4 2 - 0x90020604, // 000D SETMBR R0 K3 R4 - 0x8C100706, // 000E GETMET R4 R3 K6 - 0x88180107, // 000F GETMBR R6 R0 K7 - 0x881C0108, // 0010 GETMBR R7 R0 K8 - 0x88200103, // 0011 GETMBR R8 R0 K3 - 0x60240015, // 0012 GETGBL R9 G21 - 0x7C240000, // 0013 CALL R9 0 - 0x7C100A00, // 0014 CALL R4 5 - 0x90020A04, // 0015 SETMBR R0 K5 R4 - 0x88100105, // 0016 GETMBR R4 R0 K5 - 0x80040800, // 0017 RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: compute_TT_hash -********************************************************************/ -be_local_closure(class_SPAKE2P_Matter_compute_TT_hash, /* name */ - be_nested_proto( - 14, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_SPAKE2P_Matter, /* shared constants */ - be_str_weak(compute_TT_hash), - &be_const_str_solidified, - ( &(const binstruction[115]) { /* code */ - 0x58080009, // 0000 LDCONST R2 K9 - 0xB4000009, // 0001 CLASS K9 - 0x5C0C0400, // 0002 MOVE R3 R2 - 0xA40E0000, // 0003 IMPORT R3 K0 - 0x5C100400, // 0004 MOVE R4 R2 - 0x7C100000, // 0005 CALL R4 0 - 0x8C14090A, // 0006 GETMET R5 R4 K10 - 0x881C010B, // 0007 GETMBR R7 R0 K11 - 0x7C140400, // 0008 CALL R5 2 - 0x8C14090A, // 0009 GETMET R5 R4 K10 - 0x881C010C, // 000A GETMBR R7 R0 K12 - 0x7C140400, // 000B CALL R5 2 - 0x8C14090A, // 000C GETMET R5 R4 K10 - 0x881C010D, // 000D GETMBR R7 R0 K13 - 0x7C140400, // 000E CALL R5 2 - 0x8C14090A, // 000F GETMET R5 R4 K10 - 0x881C010E, // 0010 GETMBR R7 R0 K14 - 0x7C140400, // 0011 CALL R5 2 - 0x8C14090A, // 0012 GETMET R5 R4 K10 - 0x881C0108, // 0013 GETMBR R7 R0 K8 - 0x7C140400, // 0014 CALL R5 2 - 0x8C14090A, // 0015 GETMET R5 R4 K10 - 0x881C010F, // 0016 GETMBR R7 R0 K15 - 0x7C140400, // 0017 CALL R5 2 - 0x8C14090A, // 0018 GETMET R5 R4 K10 - 0x881C0105, // 0019 GETMBR R7 R0 K5 - 0x7C140400, // 001A CALL R5 2 - 0x8C14090A, // 001B GETMET R5 R4 K10 - 0x881C0110, // 001C GETMBR R7 R0 K16 - 0x7C140400, // 001D CALL R5 2 - 0x8C14090A, // 001E GETMET R5 R4 K10 - 0x881C0111, // 001F GETMBR R7 R0 K17 - 0x7C140400, // 0020 CALL R5 2 - 0x8C14090A, // 0021 GETMET R5 R4 K10 - 0x881C0107, // 0022 GETMBR R7 R0 K7 - 0x7C140400, // 0023 CALL R5 2 - 0x8C140913, // 0024 GETMET R5 R4 K19 - 0x7C140200, // 0025 CALL R5 1 - 0x90022405, // 0026 SETMBR R0 K18 R5 - 0x7806000A, // 0027 JMPF R1 #0033 - 0x5416000F, // 0028 LDINT R5 16 - 0x541A001E, // 0029 LDINT R6 31 - 0x40140A06, // 002A CONNECT R5 R5 R6 - 0x88180112, // 002B GETMBR R6 R0 K18 - 0x94140C05, // 002C GETIDX R5 R6 R5 - 0x90022805, // 002D SETMBR R0 K20 R5 - 0x5416000E, // 002E LDINT R5 15 - 0x40162A05, // 002F CONNECT R5 K21 R5 - 0x88180112, // 0030 GETMBR R6 R0 K18 - 0x94140C05, // 0031 GETIDX R5 R6 R5 - 0x90022405, // 0032 SETMBR R0 K18 R5 - 0x8C140716, // 0033 GETMET R5 R3 K22 - 0x7C140200, // 0034 CALL R5 1 - 0x8C180B17, // 0035 GETMET R6 R5 K23 - 0x88200112, // 0036 GETMBR R8 R0 K18 - 0x60240015, // 0037 GETGBL R9 G21 - 0x7C240000, // 0038 CALL R9 0 - 0x60280015, // 0039 GETGBL R10 G21 - 0x7C280000, // 003A CALL R10 0 - 0x8C281518, // 003B GETMET R10 R10 K24 - 0x58300019, // 003C LDCONST R12 K25 - 0x7C280400, // 003D CALL R10 2 - 0x542E003F, // 003E LDINT R11 64 - 0x7C180A00, // 003F CALL R6 5 - 0x78060003, // 0040 JMPF R1 #0045 - 0x541E000E, // 0041 LDINT R7 15 - 0x401E2A07, // 0042 CONNECT R7 K21 R7 - 0x941C0C07, // 0043 GETIDX R7 R6 R7 - 0x70020002, // 0044 JMP #0048 - 0x541E001E, // 0045 LDINT R7 31 - 0x401E2A07, // 0046 CONNECT R7 K21 R7 - 0x941C0C07, // 0047 GETIDX R7 R6 R7 - 0x90023407, // 0048 SETMBR R0 K26 R7 - 0x78060004, // 0049 JMPF R1 #004F - 0x541E000F, // 004A LDINT R7 16 - 0x5422001E, // 004B LDINT R8 31 - 0x401C0E08, // 004C CONNECT R7 R7 R8 - 0x941C0C07, // 004D GETIDX R7 R6 R7 - 0x70020003, // 004E JMP #0053 - 0x541E001F, // 004F LDINT R7 32 - 0x5422003E, // 0050 LDINT R8 63 - 0x401C0E08, // 0051 CONNECT R7 R7 R8 - 0x941C0C07, // 0052 GETIDX R7 R6 R7 - 0x90023607, // 0053 SETMBR R0 K27 R7 - 0x8C1C0B17, // 0054 GETMET R7 R5 K23 - 0x88240112, // 0055 GETMBR R9 R0 K18 - 0x60280015, // 0056 GETGBL R10 G21 - 0x7C280000, // 0057 CALL R10 0 - 0x602C0015, // 0058 GETGBL R11 G21 - 0x7C2C0000, // 0059 CALL R11 0 - 0x8C2C1718, // 005A GETMET R11 R11 K24 - 0x5834001D, // 005B LDCONST R13 K29 - 0x7C2C0400, // 005C CALL R11 2 - 0x5432001F, // 005D LDINT R12 32 - 0x7C1C0A00, // 005E CALL R7 5 - 0x90023807, // 005F SETMBR R0 K28 R7 - 0x8C1C071F, // 0060 GETMET R7 R3 K31 - 0x8824011A, // 0061 GETMBR R9 R0 K26 - 0x7C1C0400, // 0062 CALL R7 2 - 0x8C1C0F20, // 0063 GETMET R7 R7 K32 - 0x88240105, // 0064 GETMBR R9 R0 K5 - 0x7C1C0400, // 0065 CALL R7 2 - 0x8C1C0F13, // 0066 GETMET R7 R7 K19 - 0x7C1C0200, // 0067 CALL R7 1 - 0x90023C07, // 0068 SETMBR R0 K30 R7 - 0x8C1C071F, // 0069 GETMET R7 R3 K31 - 0x8824011B, // 006A GETMBR R9 R0 K27 - 0x7C1C0400, // 006B CALL R7 2 - 0x8C1C0F20, // 006C GETMET R7 R7 K32 - 0x8824010F, // 006D GETMBR R9 R0 K15 - 0x7C1C0400, // 006E CALL R7 2 - 0x8C1C0F13, // 006F GETMET R7 R7 K19 - 0x7C1C0200, // 0070 CALL R7 1 - 0x90024207, // 0071 SETMBR R0 K33 R7 - 0x80000000, // 0072 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_SPAKE2P_Matter_init, /* name */ - be_nested_proto( - 7, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_SPAKE2P_Matter, /* shared constants */ - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[16]) { /* code */ - 0x60100015, // 0000 GETGBL R4 G21 - 0x7C100000, // 0001 CALL R4 0 - 0x8C100922, // 0002 GETMET R4 R4 K34 - 0x88180123, // 0003 GETMBR R6 R0 K35 - 0x7C100400, // 0004 CALL R4 2 - 0x90021C04, // 0005 SETMBR R0 K14 R4 - 0x60100015, // 0006 GETGBL R4 G21 - 0x7C100000, // 0007 CALL R4 0 - 0x8C100922, // 0008 GETMET R4 R4 K34 - 0x88180124, // 0009 GETMBR R6 R0 K36 - 0x7C100400, // 000A CALL R4 2 - 0x90021004, // 000B SETMBR R0 K8 R4 - 0x90020E01, // 000C SETMBR R0 K7 R1 - 0x90024A02, // 000D SETMBR R0 K37 R2 - 0x90024C03, // 000E SETMBR R0 K38 R3 - 0x80000000, // 000F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: compute_pA -********************************************************************/ -be_local_closure(class_SPAKE2P_Matter_compute_pA, /* name */ - be_nested_proto( - 10, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_SPAKE2P_Matter, /* shared constants */ - be_str_weak(compute_pA), - &be_const_str_solidified, - ( &(const binstruction[24]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x4C0C0000, // 0001 LDNIL R3 - 0x1C0C0203, // 0002 EQ R3 R1 R3 - 0x780E0003, // 0003 JMPF R3 #0008 - 0x8C0C0501, // 0004 GETMET R3 R2 K1 - 0x5416001F, // 0005 LDINT R5 32 - 0x7C0C0400, // 0006 CALL R3 2 - 0x5C040600, // 0007 MOVE R1 R3 - 0x8C0C0502, // 0008 GETMET R3 R2 K2 - 0x7C0C0200, // 0009 CALL R3 1 - 0x8C100704, // 000A GETMET R4 R3 K4 - 0x5C180200, // 000B MOVE R6 R1 - 0x7C100400, // 000C CALL R4 2 - 0x90024E04, // 000D SETMBR R0 K39 R4 - 0x8C100706, // 000E GETMET R4 R3 K6 - 0x88180107, // 000F GETMBR R6 R0 K7 - 0x881C010E, // 0010 GETMBR R7 R0 K14 - 0x88200127, // 0011 GETMBR R8 R0 K39 - 0x60240015, // 0012 GETGBL R9 G21 - 0x7C240000, // 0013 CALL R9 0 - 0x7C100A00, // 0014 CALL R4 5 - 0x90021E04, // 0015 SETMBR R0 K15 R4 - 0x8810010F, // 0016 GETMBR R4 R0 K15 - 0x80040800, // 0017 RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_context -********************************************************************/ -be_local_closure(class_SPAKE2P_Matter_set_context, /* name */ - be_nested_proto( - 5, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_SPAKE2P_Matter, /* shared constants */ - be_str_weak(set_context), - &be_const_str_solidified, - ( &(const binstruction[16]) { /* code */ - 0x4C100000, // 0000 LDNIL R4 - 0x1C100404, // 0001 EQ R4 R2 R4 - 0x78120002, // 0002 JMPF R4 #0006 - 0x60100015, // 0003 GETGBL R4 G21 - 0x7C100000, // 0004 CALL R4 0 - 0x5C080800, // 0005 MOVE R2 R4 - 0x4C100000, // 0006 LDNIL R4 - 0x1C100604, // 0007 EQ R4 R3 R4 - 0x78120002, // 0008 JMPF R4 #000C - 0x60100015, // 0009 GETGBL R4 G21 - 0x7C100000, // 000A CALL R4 0 - 0x5C0C0800, // 000B MOVE R3 R4 - 0x90021601, // 000C SETMBR R0 K11 R1 - 0x90021802, // 000D SETMBR R0 K12 R2 - 0x90021A03, // 000E SETMBR R0 K13 R3 - 0x80000000, // 000F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: compute_ZV_verifier -********************************************************************/ -be_local_closure(class_SPAKE2P_Matter_compute_ZV_verifier, /* name */ - be_nested_proto( - 11, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_SPAKE2P_Matter, /* shared constants */ - be_str_weak(compute_ZV_verifier), - &be_const_str_solidified, - ( &(const binstruction[26]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x8C0C0502, // 0001 GETMET R3 R2 K2 - 0x7C0C0200, // 0002 CALL R3 1 - 0x90021E01, // 0003 SETMBR R0 K15 R1 - 0x8C100728, // 0004 GETMET R4 R3 K40 - 0x88180107, // 0005 GETMBR R6 R0 K7 - 0x7C100400, // 0006 CALL R4 2 - 0x8C140706, // 0007 GETMET R5 R3 K6 - 0x601C0015, // 0008 GETGBL R7 G21 - 0x58200029, // 0009 LDCONST R8 K41 - 0x7C1C0200, // 000A CALL R7 1 - 0x8820010F, // 000B GETMBR R8 R0 K15 - 0x5C240800, // 000C MOVE R9 R4 - 0x8828010E, // 000D GETMBR R10 R0 K14 - 0x7C140A00, // 000E CALL R5 5 - 0x8C18072A, // 000F GETMET R6 R3 K42 - 0x88200103, // 0010 GETMBR R8 R0 K3 - 0x5C240A00, // 0011 MOVE R9 R5 - 0x7C180600, // 0012 CALL R6 3 - 0x90022006, // 0013 SETMBR R0 K16 R6 - 0x8C18072A, // 0014 GETMET R6 R3 K42 - 0x88200103, // 0015 GETMBR R8 R0 K3 - 0x88240126, // 0016 GETMBR R9 R0 K38 - 0x7C180600, // 0017 CALL R6 3 - 0x90022206, // 0018 SETMBR R0 K17 R6 - 0x80000000, // 0019 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: compute_ZV_prover -********************************************************************/ -be_local_closure(class_SPAKE2P_Matter_compute_ZV_prover, /* name */ - be_nested_proto( - 11, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_SPAKE2P_Matter, /* shared constants */ - be_str_weak(compute_ZV_prover), - &be_const_str_solidified, - ( &(const binstruction[26]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x8C0C0502, // 0001 GETMET R3 R2 K2 - 0x7C0C0200, // 0002 CALL R3 1 - 0x90020A01, // 0003 SETMBR R0 K5 R1 - 0x8C100728, // 0004 GETMET R4 R3 K40 - 0x88180107, // 0005 GETMBR R6 R0 K7 - 0x7C100400, // 0006 CALL R4 2 - 0x8C140706, // 0007 GETMET R5 R3 K6 - 0x601C0015, // 0008 GETGBL R7 G21 - 0x58200029, // 0009 LDCONST R8 K41 - 0x7C1C0200, // 000A CALL R7 1 - 0x88200105, // 000B GETMBR R8 R0 K5 - 0x5C240800, // 000C MOVE R9 R4 - 0x88280108, // 000D GETMBR R10 R0 K8 - 0x7C140A00, // 000E CALL R5 5 - 0x8C18072A, // 000F GETMET R6 R3 K42 - 0x88200127, // 0010 GETMBR R8 R0 K39 - 0x5C240A00, // 0011 MOVE R9 R5 - 0x7C180600, // 0012 CALL R6 3 - 0x90022006, // 0013 SETMBR R0 K16 R6 - 0x8C18072A, // 0014 GETMET R6 R3 K42 - 0x88200125, // 0015 GETMBR R8 R0 K37 - 0x5C240A00, // 0016 MOVE R9 R5 - 0x7C180600, // 0017 CALL R6 3 - 0x90022206, // 0018 SETMBR R0 K17 R6 - 0x80000000, // 0019 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: SPAKE2P_Matter -********************************************************************/ -be_local_class(SPAKE2P_Matter, - 21, - NULL, - be_nested_map(32, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(compute_ZV_prover, 21), be_const_closure(class_SPAKE2P_Matter_compute_ZV_prover_closure) }, - { be_const_key_weak(cA, -1), be_const_var(14) }, - { be_const_key_weak(CRYPTO_W_SIZE_BYTES, -1), be_const_int(40) }, - { be_const_key_weak(Kmain, 14), be_const_var(9) }, - { be_const_key_weak(compute_pB, -1), be_const_closure(class_SPAKE2P_Matter_compute_pB_closure) }, - { be_const_key_weak(B, 31), be_const_var(17) }, - { be_const_key_weak(K_shared, -1), be_const_var(12) }, - { be_const_key_weak(x, -1), be_const_var(7) }, - { be_const_key_weak(CRYPTO_GROUP_SIZE_BYTES, -1), be_const_int(32) }, - { be_const_key_weak(V, 1), be_const_var(6) }, - { be_const_key_weak(pA, -1), be_const_var(3) }, - { be_const_key_weak(KcB, 27), be_const_var(11) }, - { be_const_key_weak(A, -1), be_const_var(16) }, - { be_const_key_weak(Z, 4), be_const_var(5) }, - { be_const_key_weak(spake_M_hex, -1), be_nested_str_weak(04886e2f97ace46e55ba9dd7242579f2993b64e16ef3dcab95afd497333d8fa12f5ff355163e43ce224e0b0e65ff02ac8e5c7be09419c785e0ca547d55a12e2d20) }, - { be_const_key_weak(compute_ZV_verifier, -1), be_const_closure(class_SPAKE2P_Matter_compute_ZV_verifier_closure) }, - { be_const_key_weak(compute_TT_hash, 0), be_const_closure(class_SPAKE2P_Matter_compute_TT_hash_closure) }, - { be_const_key_weak(N, -1), be_const_var(20) }, - { be_const_key_weak(w0, -1), be_const_var(0) }, - { be_const_key_weak(init, -1), be_const_closure(class_SPAKE2P_Matter_init_closure) }, - { be_const_key_weak(compute_pA, 25), be_const_closure(class_SPAKE2P_Matter_compute_pA_closure) }, - { be_const_key_weak(cB, -1), be_const_var(15) }, - { be_const_key_weak(set_context, -1), be_const_closure(class_SPAKE2P_Matter_set_context_closure) }, - { be_const_key_weak(pB, 22), be_const_var(4) }, - { be_const_key_weak(M, -1), be_const_var(19) }, - { be_const_key_weak(y, -1), be_const_var(8) }, - { be_const_key_weak(spake_N_hex, 15), be_nested_str_weak(04d8bbd6c639c62937b04d997f38c3770719c629d7014d49a24b4f98baa1292b4907d60aa6bfade45008a636337f5168c64d9bd36034808cd564490b1e656edbe7) }, - { be_const_key_weak(L, -1), be_const_var(2) }, - { be_const_key_weak(Context, 8), be_const_var(18) }, - { be_const_key_weak(Ke, -1), be_const_var(13) }, - { be_const_key_weak(KcA, -1), be_const_var(10) }, - { be_const_key_weak(w1, -1), be_const_var(1) }, - })), - be_str_weak(SPAKE2P_Matter) -); -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_driver_class.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_driver_class.h deleted file mode 100644 index b022dc55a..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_driver_class.h +++ /dev/null @@ -1,96 +0,0 @@ -/* Solidification of driver_class.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" - -extern const bclass be_class_Driver; - -/******************************************************************** -** Solidified function: add_cmd -********************************************************************/ -be_local_closure(class_Driver_add_cmd, /* name */ - be_nested_proto( - 7, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 1]) { - be_nested_proto( - 10, /* nstack */ - 4, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 2]) { /* upvals */ - be_local_const_upval(1, 2), - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - &be_const_str__X3Clambda_X3E, - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x68100000, // 0000 GETUPV R4 U0 - 0x68140001, // 0001 GETUPV R5 U1 - 0x5C180000, // 0002 MOVE R6 R0 - 0x5C1C0200, // 0003 MOVE R7 R1 - 0x5C200400, // 0004 MOVE R8 R2 - 0x5C240600, // 0005 MOVE R9 R3 - 0x7C100A00, // 0006 CALL R4 5 - 0x80040800, // 0007 RET 1 R4 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str(tasmota), - /* K1 */ be_nested_str(add_cmd), - }), - &be_const_str_add_cmd, - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0xB80E0000, // 0000 GETNGBL R3 K0 - 0x8C0C0701, // 0001 GETMET R3 R3 K1 - 0x5C140200, // 0002 MOVE R5 R1 - 0x84180000, // 0003 CLOSURE R6 P0 - 0x7C0C0600, // 0004 CALL R3 3 - 0xA0000000, // 0005 CLOSE R0 - 0x80000000, // 0006 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: Driver -********************************************************************/ -be_local_class(Driver, - 14, - NULL, - be_nested_map(15, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(web_add_config_button, 12), be_const_var(6) }, - { be_const_key(web_add_main_button, -1), be_const_var(4) }, - { be_const_key(web_add_handler, 10), be_const_var(2) }, - { be_const_key(save_before_restart, 5), be_const_var(8) }, - { be_const_key(add_cmd, -1), be_const_closure(class_Driver_add_cmd_closure) }, - { be_const_key(web_add_button, -1), be_const_var(3) }, - { be_const_key(web_add_management_button, -1), be_const_var(5) }, - { be_const_key(display, -1), be_const_var(13) }, - { be_const_key(after_teleperiod, -1), be_const_var(11) }, - { be_const_key(every_100ms, -1), be_const_var(1) }, - { be_const_key(web_add_console_button, 13), be_const_var(7) }, - { be_const_key(button_pressed, -1), be_const_var(12) }, - { be_const_key(every_second, -1), be_const_var(0) }, - { be_const_key(web_sensor, -1), be_const_var(9) }, - { be_const_key(json_append, 1), be_const_var(10) }, - })), - (bstring*) &be_const_str_Driver -); -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_dyn.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_dyn.h deleted file mode 100644 index 5632678a0..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_dyn.h +++ /dev/null @@ -1,149 +0,0 @@ -/* Solidification of dyn.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -// compact class 'dyn' ktab size: 4, total: 7 (saved 24 bytes) -static const bvalue be_ktab_class_dyn[4] = { - /* K0 */ be_nested_str(_attr), - /* K1 */ be_nested_str(tostring), - /* K2 */ be_nested_str(contains), - /* K3 */ be_nested_str(undefined), -}; - - -extern const bclass be_class_dyn; - -/******************************************************************** -** Solidified function: tostring -********************************************************************/ -be_local_closure(class_dyn_tostring, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_dyn, /* shared constants */ - &be_const_str_tostring, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: member -********************************************************************/ -be_local_closure(class_dyn_member, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_dyn, /* shared constants */ - &be_const_str_member, - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080502, // 0001 GETMET R2 R2 K2 - 0x5C100200, // 0002 MOVE R4 R1 - 0x7C080400, // 0003 CALL R2 2 - 0x780A0003, // 0004 JMPF R2 #0009 - 0x88080100, // 0005 GETMBR R2 R0 K0 - 0x94080401, // 0006 GETIDX R2 R2 R1 - 0x80040400, // 0007 RET 1 R2 - 0x70020001, // 0008 JMP #000B - 0xA40A0600, // 0009 IMPORT R2 K3 - 0x80040400, // 000A RET 1 R2 - 0x80000000, // 000B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: setmember -********************************************************************/ -be_local_closure(class_dyn_setmember, /* name */ - be_nested_proto( - 4, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_dyn, /* shared constants */ - &be_const_str_setmember, - &be_const_str_solidified, - ( &(const binstruction[ 3]) { /* code */ - 0x880C0100, // 0000 GETMBR R3 R0 K0 - 0x980C0202, // 0001 SETIDX R3 R1 R2 - 0x80000000, // 0002 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_dyn_init, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_dyn, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x60040013, // 0000 GETGBL R1 G19 - 0x7C040000, // 0001 CALL R1 0 - 0x90020001, // 0002 SETMBR R0 K0 R1 - 0x80000000, // 0003 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: dyn -********************************************************************/ -be_local_class(dyn, - 1, - NULL, - be_nested_map(5, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(tostring, 2), be_const_closure(class_dyn_tostring_closure) }, - { be_const_key(member, 3), be_const_closure(class_dyn_member_closure) }, - { be_const_key(init, 4), be_const_closure(class_dyn_init_closure) }, - { be_const_key(setmember, -1), be_const_closure(class_dyn_setmember_closure) }, - { be_const_key(_attr, -1), be_const_var(0) }, - })), - (bstring*) &be_const_str_dyn -); -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_energy.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_energy.h deleted file mode 100644 index d1765fd6c..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_energy.h +++ /dev/null @@ -1,749 +0,0 @@ -/* Solidification of energy.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -// compact class 'bytes_array' ktab size: 18, total: 34 (saved 128 bytes) -static const bvalue be_ktab_class_bytes_array[18] = { - /* K0 */ be_nested_str(item_type), - /* K1 */ be_nested_str(sz), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str(value_X20error), - /* K4 */ be_nested_str(unsupported_X20item_type_X20number), - /* K5 */ be_nested_str(item_size), - /* K6 */ be_nested_str(init), - /* K7 */ be_nested_str(_X5B), - /* K8 */ be_nested_str(_X2C), - /* K9 */ be_nested_str(getfloat), - /* K10 */ be_nested_str(get), - /* K11 */ be_const_int(1), - /* K12 */ be_nested_str(_X5D), - /* K13 */ be_nested_str(index_error), - /* K14 */ be_nested_str(list_X20index_X20out_X20of_X20range), - /* K15 */ be_nested_str(list_X20assignment_X20index_X20out_X20of_X20range), - /* K16 */ be_nested_str(setfloat), - /* K17 */ be_nested_str(set), -}; - - -extern const bclass be_class_bytes_array; - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_bytes_array_init, /* name */ - be_nested_proto( - 10, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_bytes_array, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[35]) { /* code */ - 0x90020002, // 0000 SETMBR R0 K0 R2 - 0x90020203, // 0001 SETMBR R0 K1 R3 - 0x4C100000, // 0002 LDNIL R4 - 0x5415FFFB, // 0003 LDINT R5 -4 - 0x28140405, // 0004 GE R5 R2 R5 - 0x7816000B, // 0005 JMPF R5 #0012 - 0x54160003, // 0006 LDINT R5 4 - 0x18140405, // 0007 LE R5 R2 R5 - 0x78160008, // 0008 JMPF R5 #0012 - 0x20140502, // 0009 NE R5 R2 K2 - 0x78160006, // 000A JMPF R5 #0012 - 0x24140502, // 000B GT R5 R2 K2 - 0x78160001, // 000C JMPF R5 #000F - 0x5C140400, // 000D MOVE R5 R2 - 0x70020000, // 000E JMP #0010 - 0x44140400, // 000F NEG R5 R2 - 0x5C100A00, // 0010 MOVE R4 R5 - 0x70020005, // 0011 JMP #0018 - 0x54160004, // 0012 LDINT R5 5 - 0x1C140405, // 0013 EQ R5 R2 R5 - 0x78160001, // 0014 JMPF R5 #0017 - 0x54120003, // 0015 LDINT R4 4 - 0x70020000, // 0016 JMP #0018 - 0xB0060704, // 0017 RAISE 1 K3 K4 - 0x90020A04, // 0018 SETMBR R0 K5 R4 - 0x60140003, // 0019 GETGBL R5 G3 - 0x5C180000, // 001A MOVE R6 R0 - 0x7C140200, // 001B CALL R5 1 - 0x8C140B06, // 001C GETMET R5 R5 K6 - 0x5C1C0200, // 001D MOVE R7 R1 - 0x88200105, // 001E GETMBR R8 R0 K5 - 0x88240101, // 001F GETMBR R9 R0 K1 - 0x08201009, // 0020 MUL R8 R8 R9 - 0x7C140600, // 0021 CALL R5 3 - 0x80000000, // 0022 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: size -********************************************************************/ -be_local_closure(class_bytes_array_size, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_bytes_array, /* shared constants */ - &be_const_str_size, - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040101, // 0000 GETMBR R1 R0 K1 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: tostring -********************************************************************/ -be_local_closure(class_bytes_array_tostring, /* name */ - be_nested_proto( - 8, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_bytes_array, /* shared constants */ - &be_const_str_tostring, - &be_const_str_solidified, - ( &(const binstruction[32]) { /* code */ - 0x58040007, // 0000 LDCONST R1 K7 - 0x58080002, // 0001 LDCONST R2 K2 - 0x880C0101, // 0002 GETMBR R3 R0 K1 - 0x140C0403, // 0003 LT R3 R2 R3 - 0x780E0018, // 0004 JMPF R3 #001E - 0x240C0502, // 0005 GT R3 R2 K2 - 0x780E0000, // 0006 JMPF R3 #0008 - 0x00040308, // 0007 ADD R1 R1 K8 - 0x880C0100, // 0008 GETMBR R3 R0 K0 - 0x54120004, // 0009 LDINT R4 5 - 0x1C0C0604, // 000A EQ R3 R3 R4 - 0x780E0007, // 000B JMPF R3 #0014 - 0x600C0008, // 000C GETGBL R3 G8 - 0x8C100109, // 000D GETMET R4 R0 K9 - 0x88180105, // 000E GETMBR R6 R0 K5 - 0x08180406, // 000F MUL R6 R2 R6 - 0x7C100400, // 0010 CALL R4 2 - 0x7C0C0200, // 0011 CALL R3 1 - 0x00040203, // 0012 ADD R1 R1 R3 - 0x70020007, // 0013 JMP #001C - 0x600C0008, // 0014 GETGBL R3 G8 - 0x8C10010A, // 0015 GETMET R4 R0 K10 - 0x88180105, // 0016 GETMBR R6 R0 K5 - 0x08180406, // 0017 MUL R6 R2 R6 - 0x881C0100, // 0018 GETMBR R7 R0 K0 - 0x7C100600, // 0019 CALL R4 3 - 0x7C0C0200, // 001A CALL R3 1 - 0x00040203, // 001B ADD R1 R1 R3 - 0x0008050B, // 001C ADD R2 R2 K11 - 0x7001FFE3, // 001D JMP #0002 - 0x0004030C, // 001E ADD R1 R1 K12 - 0x80040200, // 001F RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: item -********************************************************************/ -be_local_closure(class_bytes_array_item, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_bytes_array, /* shared constants */ - &be_const_str_item, - &be_const_str_solidified, - ( &(const binstruction[27]) { /* code */ - 0x14080302, // 0000 LT R2 R1 K2 - 0x780A0001, // 0001 JMPF R2 #0004 - 0x88080101, // 0002 GETMBR R2 R0 K1 - 0x00040202, // 0003 ADD R1 R1 R2 - 0x14080302, // 0004 LT R2 R1 K2 - 0x740A0002, // 0005 JMPT R2 #0009 - 0x88080101, // 0006 GETMBR R2 R0 K1 - 0x28080202, // 0007 GE R2 R1 R2 - 0x780A0000, // 0008 JMPF R2 #000A - 0xB0061B0E, // 0009 RAISE 1 K13 K14 - 0x88080100, // 000A GETMBR R2 R0 K0 - 0x540E0004, // 000B LDINT R3 5 - 0x1C080403, // 000C EQ R2 R2 R3 - 0x780A0005, // 000D JMPF R2 #0014 - 0x8C080109, // 000E GETMET R2 R0 K9 - 0x88100105, // 000F GETMBR R4 R0 K5 - 0x08100204, // 0010 MUL R4 R1 R4 - 0x7C080400, // 0011 CALL R2 2 - 0x80040400, // 0012 RET 1 R2 - 0x70020005, // 0013 JMP #001A - 0x8C08010A, // 0014 GETMET R2 R0 K10 - 0x88100105, // 0015 GETMBR R4 R0 K5 - 0x08100204, // 0016 MUL R4 R1 R4 - 0x88140100, // 0017 GETMBR R5 R0 K0 - 0x7C080600, // 0018 CALL R2 3 - 0x80040400, // 0019 RET 1 R2 - 0x80000000, // 001A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: setitem -********************************************************************/ -be_local_closure(class_bytes_array_setitem, /* name */ - be_nested_proto( - 8, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_bytes_array, /* shared constants */ - &be_const_str_setitem, - &be_const_str_solidified, - ( &(const binstruction[29]) { /* code */ - 0x140C0302, // 0000 LT R3 R1 K2 - 0x780E0001, // 0001 JMPF R3 #0004 - 0x880C0101, // 0002 GETMBR R3 R0 K1 - 0x00040203, // 0003 ADD R1 R1 R3 - 0x140C0302, // 0004 LT R3 R1 K2 - 0x740E0002, // 0005 JMPT R3 #0009 - 0x880C0101, // 0006 GETMBR R3 R0 K1 - 0x280C0203, // 0007 GE R3 R1 R3 - 0x780E0000, // 0008 JMPF R3 #000A - 0xB0061B0F, // 0009 RAISE 1 K13 K15 - 0x880C0100, // 000A GETMBR R3 R0 K0 - 0x54120004, // 000B LDINT R4 5 - 0x1C0C0604, // 000C EQ R3 R3 R4 - 0x780E0006, // 000D JMPF R3 #0015 - 0x8C0C0110, // 000E GETMET R3 R0 K16 - 0x88140105, // 000F GETMBR R5 R0 K5 - 0x08140205, // 0010 MUL R5 R1 R5 - 0x5C180400, // 0011 MOVE R6 R2 - 0x7C0C0600, // 0012 CALL R3 3 - 0x80040600, // 0013 RET 1 R3 - 0x70020006, // 0014 JMP #001C - 0x8C0C0111, // 0015 GETMET R3 R0 K17 - 0x88140105, // 0016 GETMBR R5 R0 K5 - 0x08140205, // 0017 MUL R5 R1 R5 - 0x88180100, // 0018 GETMBR R6 R0 K0 - 0x5C1C0400, // 0019 MOVE R7 R2 - 0x7C0C0800, // 001A CALL R3 4 - 0x80040600, // 001B RET 1 R3 - 0x80000000, // 001C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: bytes_array -********************************************************************/ -extern const bclass be_class_bytes; -be_local_class(bytes_array, - 3, - &be_class_bytes, - be_nested_map(8, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(sz, -1), be_const_var(1) }, - { be_const_key(setitem, -1), be_const_closure(class_bytes_array_setitem_closure) }, - { be_const_key(item_size, -1), be_const_var(2) }, - { be_const_key(init, 7), be_const_closure(class_bytes_array_init_closure) }, - { be_const_key(size, 1), be_const_closure(class_bytes_array_size_closure) }, - { be_const_key(tostring, -1), be_const_closure(class_bytes_array_tostring_closure) }, - { be_const_key(item, -1), be_const_closure(class_bytes_array_item_closure) }, - { be_const_key(item_type, -1), be_const_var(0) }, - })), - (bstring*) &be_const_str_bytes_array -); - -extern const bclass be_class_energy_phases_float; - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_energy_phases_float_init, /* name */ - be_nested_proto( - 8, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str(energy), - /* K1 */ be_nested_str(init), - /* K2 */ be_nested_str(_phases), - }), - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x600C0003, // 0001 GETGBL R3 G3 - 0x5C100000, // 0002 MOVE R4 R0 - 0x7C0C0200, // 0003 CALL R3 1 - 0x8C0C0701, // 0004 GETMET R3 R3 K1 - 0x5C140200, // 0005 MOVE R5 R1 - 0x541A0004, // 0006 LDINT R6 5 - 0x881C0502, // 0007 GETMBR R7 R2 K2 - 0x7C0C0800, // 0008 CALL R3 4 - 0x80000000, // 0009 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: energy_phases_float -********************************************************************/ -extern const bclass be_class_bytes_array; -be_local_class(energy_phases_float, - 0, - &be_class_bytes_array, - be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(init, -1), be_const_closure(class_energy_phases_float_init_closure) }, - })), - (bstring*) &be_const_str_energy_phases_float -); - -extern const bclass be_class_energy_phases_int32; - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_energy_phases_int32_init, /* name */ - be_nested_proto( - 8, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str(energy), - /* K1 */ be_nested_str(init), - /* K2 */ be_nested_str(_phases), - }), - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x600C0003, // 0001 GETGBL R3 G3 - 0x5C100000, // 0002 MOVE R4 R0 - 0x7C0C0200, // 0003 CALL R3 1 - 0x8C0C0701, // 0004 GETMET R3 R3 K1 - 0x5C140200, // 0005 MOVE R5 R1 - 0x541A0003, // 0006 LDINT R6 4 - 0x881C0502, // 0007 GETMBR R7 R2 K2 - 0x7C0C0800, // 0008 CALL R3 4 - 0x80000000, // 0009 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: energy_phases_int32 -********************************************************************/ -extern const bclass be_class_bytes_array; -be_local_class(energy_phases_int32, - 0, - &be_class_bytes_array, - be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(init, -1), be_const_closure(class_energy_phases_int32_init_closure) }, - })), - (bstring*) &be_const_str_energy_phases_int32 -); - -extern const bclass be_class_energy_phases_uint8; - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_energy_phases_uint8_init, /* name */ - be_nested_proto( - 8, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str(energy), - /* K1 */ be_nested_str(init), - /* K2 */ be_const_int(1), - /* K3 */ be_nested_str(_phases), - }), - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x600C0003, // 0001 GETGBL R3 G3 - 0x5C100000, // 0002 MOVE R4 R0 - 0x7C0C0200, // 0003 CALL R3 1 - 0x8C0C0701, // 0004 GETMET R3 R3 K1 - 0x5C140200, // 0005 MOVE R5 R1 - 0x58180002, // 0006 LDCONST R6 K2 - 0x881C0503, // 0007 GETMBR R7 R2 K3 - 0x7C0C0800, // 0008 CALL R3 4 - 0x80000000, // 0009 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: energy_phases_uint8 -********************************************************************/ -extern const bclass be_class_bytes_array; -be_local_class(energy_phases_uint8, - 0, - &be_class_bytes_array, - be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(init, -1), be_const_closure(class_energy_phases_uint8_init_closure) }, - })), - (bstring*) &be_const_str_energy_phases_uint8 -); - -extern const bclass be_class_energy_phases_uint16; - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_energy_phases_uint16_init, /* name */ - be_nested_proto( - 8, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str(energy), - /* K1 */ be_nested_str(init), - /* K2 */ be_const_int(2), - /* K3 */ be_nested_str(_phases), - }), - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x600C0003, // 0001 GETGBL R3 G3 - 0x5C100000, // 0002 MOVE R4 R0 - 0x7C0C0200, // 0003 CALL R3 1 - 0x8C0C0701, // 0004 GETMET R3 R3 K1 - 0x5C140200, // 0005 MOVE R5 R1 - 0x58180002, // 0006 LDCONST R6 K2 - 0x881C0503, // 0007 GETMBR R7 R2 K3 - 0x7C0C0800, // 0008 CALL R3 4 - 0x80000000, // 0009 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: energy_phases_uint16 -********************************************************************/ -extern const bclass be_class_bytes_array; -be_local_class(energy_phases_uint16, - 0, - &be_class_bytes_array, - be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(init, -1), be_const_closure(class_energy_phases_uint16_init_closure) }, - })), - (bstring*) &be_const_str_energy_phases_uint16 -); - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(module_energy_init, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str(global), - /* K1 */ be_nested_str(_energy), - }), - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 - 0x4C080000, // 0001 LDNIL R2 - 0x90060202, // 0002 SETMBR R1 K1 R2 - 0x80040000, // 0003 RET 1 R0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: _deref -********************************************************************/ -be_local_closure(module_energy__deref, /* name */ - be_nested_proto( - 7, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ - /* K0 */ be_nested_str(global), - /* K1 */ be_nested_str(_energy), - /* K2 */ be_nested_str(introspect), - /* K3 */ be_nested_str(energy), - /* K4 */ be_nested_str(_ptr), - /* K5 */ be_nested_str(get), - /* K6 */ be_const_int(0), - /* K7 */ be_nested_str(energy_struct), - /* K8 */ be_nested_str(toptr), - }), - &be_const_str__deref, - &be_const_str_solidified, - ( &(const binstruction[25]) { /* code */ - 0xB8020000, // 0000 GETNGBL R0 K0 - 0x88000101, // 0001 GETMBR R0 R0 K1 - 0x4C040000, // 0002 LDNIL R1 - 0x1C000001, // 0003 EQ R0 R0 R1 - 0x78020012, // 0004 JMPF R0 #0018 - 0xA4020400, // 0005 IMPORT R0 K2 - 0x60040015, // 0006 GETGBL R1 G21 - 0xB80A0600, // 0007 GETNGBL R2 K3 - 0x88080504, // 0008 GETMBR R2 R2 K4 - 0x540E0003, // 0009 LDINT R3 4 - 0x7C040400, // 000A CALL R1 2 - 0x8C040305, // 000B GETMET R1 R1 K5 - 0x580C0006, // 000C LDCONST R3 K6 - 0x54120003, // 000D LDINT R4 4 - 0x7C040600, // 000E CALL R1 3 - 0x20080306, // 000F NE R2 R1 K6 - 0x780A0006, // 0010 JMPF R2 #0018 - 0xB80A0000, // 0011 GETNGBL R2 K0 - 0xB80E0E00, // 0012 GETNGBL R3 K7 - 0x8C100108, // 0013 GETMET R4 R0 K8 - 0x5C180200, // 0014 MOVE R6 R1 - 0x7C100400, // 0015 CALL R4 2 - 0x7C0C0200, // 0016 CALL R3 1 - 0x900A0203, // 0017 SETMBR R2 K1 R3 - 0x80000000, // 0018 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: read -********************************************************************/ -be_local_closure(module_energy_read, /* name */ - be_nested_proto( - 2, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str(energy), - /* K1 */ be_nested_str(_deref), - /* K2 */ be_nested_str(global), - /* K3 */ be_nested_str(_energy), - /* K4 */ be_nested_str(tomap), - }), - &be_const_str_read, - &be_const_str_solidified, - ( &(const binstruction[11]) { /* code */ - 0xB8020000, // 0000 GETNGBL R0 K0 - 0x8C000101, // 0001 GETMET R0 R0 K1 - 0x7C000200, // 0002 CALL R0 1 - 0xB8020400, // 0003 GETNGBL R0 K2 - 0x88000103, // 0004 GETMBR R0 R0 K3 - 0x78020003, // 0005 JMPF R0 #000A - 0xB8020600, // 0006 GETNGBL R0 K3 - 0x8C000104, // 0007 GETMET R0 R0 K4 - 0x7C000200, // 0008 CALL R0 1 - 0x80040000, // 0009 RET 1 R0 - 0x80000000, // 000A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: member -********************************************************************/ -be_local_closure(module_energy_member, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str(energy), - /* K1 */ be_nested_str(_deref), - /* K2 */ be_nested_str(global), - /* K3 */ be_nested_str(_energy), - }), - &be_const_str_member, - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0xB8060400, // 0003 GETNGBL R1 K2 - 0x88040303, // 0004 GETMBR R1 R1 K3 - 0x78060002, // 0005 JMPF R1 #0009 - 0xB8060600, // 0006 GETNGBL R1 K3 - 0x88040200, // 0007 GETMBR R1 R1 R0 - 0x80040200, // 0008 RET 1 R1 - 0x80000000, // 0009 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: setmember -********************************************************************/ -be_local_closure(module_energy_setmember, /* name */ - be_nested_proto( - 4, /* nstack */ - 2, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str(energy), - /* K1 */ be_nested_str(_deref), - /* K2 */ be_nested_str(global), - /* K3 */ be_nested_str(_energy), - }), - &be_const_str_setmember, - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0xB80A0000, // 0000 GETNGBL R2 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x7C080200, // 0002 CALL R2 1 - 0xB80A0400, // 0003 GETNGBL R2 K2 - 0x88080503, // 0004 GETMBR R2 R2 K3 - 0x780A0001, // 0005 JMPF R2 #0008 - 0xB80A0600, // 0006 GETNGBL R2 K3 - 0x90080001, // 0007 SETMBR R2 R0 R1 - 0x80000000, // 0008 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: tomap -********************************************************************/ -be_local_closure(module_energy_tomap, /* name */ - be_nested_proto( - 2, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str(energy), - /* K1 */ be_nested_str(_deref), - /* K2 */ be_nested_str(global), - /* K3 */ be_nested_str(_energy), - /* K4 */ be_nested_str(tomap), - }), - &be_const_str_tomap, - &be_const_str_solidified, - ( &(const binstruction[11]) { /* code */ - 0xB8020000, // 0000 GETNGBL R0 K0 - 0x8C000101, // 0001 GETMET R0 R0 K1 - 0x7C000200, // 0002 CALL R0 1 - 0xB8020400, // 0003 GETNGBL R0 K2 - 0x88000103, // 0004 GETMBR R0 R0 K3 - 0x78020003, // 0005 JMPF R0 #000A - 0xB8020600, // 0006 GETNGBL R0 K3 - 0x8C000104, // 0007 GETMET R0 R0 K4 - 0x7C000200, // 0008 CALL R0 1 - 0x80040000, // 0009 RET 1 R0 - 0x80000000, // 000A RET 0 - }) - ) -); -/*******************************************************************/ - -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_hue_bridge.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_hue_bridge.h deleted file mode 100644 index 567efa5eb..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_hue_bridge.h +++ /dev/null @@ -1,674 +0,0 @@ -/* Solidification of hue_bridge.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -// compact class 'hue_bridge_monad' ktab size: 50, total: 85 (saved 280 bytes) -static const bvalue be_ktab_class_hue_bridge_monad[50] = { - /* K0 */ be_nested_str(hue_ntv), - /* K1 */ be_nested_str(lights), - /* K2 */ be_nested_str(contains), - /* K3 */ be_nested_str(full_state), - /* K4 */ be_nested_str(light), - /* K5 */ be_nested_str(name), - /* K6 */ be_nested_str(model), - /* K7 */ be_nested_str(manuf), - /* K8 */ be_nested_str(light_state), - /* K9 */ be_nested_str(int), - /* K10 */ be_nested_str(value_error), - /* K11 */ be_nested_str(id_X20must_X20be_X20of_X20type_X20_X27int_X27), - /* K12 */ be_nested_str(light_X20must_X20be_X20of_X20class_X20_X27light_state_X27), - /* K13 */ be_const_int(0), - /* K14 */ be_nested_str(missing_X20name), - /* K15 */ be_nested_str(Unknown), - /* K16 */ be_nested_str(Tasmota), - /* K17 */ be_nested_str(remove), - /* K18 */ be_nested_str(json), - /* K19 */ be_nested_str(keys), - /* K20 */ be_nested_str(full_status), - /* K21 */ be_nested_str(_X22), - /* K22 */ be_nested_str(_X22_X3A), - /* K23 */ be_nested_str(push), - /* K24 */ be_nested_str(stop_iteration), - /* K25 */ be_nested_str(concat), - /* K26 */ be_nested_str(_X2C), - /* K27 */ be_nested_str(load), - /* K28 */ be_nested_str(tasmota), - /* K29 */ be_nested_str(log), - /* K30 */ be_nested_str(BRY_X3A_X20invalid_X20hue_X20payload_X3A_X20), - /* K31 */ be_const_int(3), - /* K32 */ be_nested_str(on), - /* K33 */ be_nested_str(set_power), - /* K34 */ be_nested_str(xy), - /* K35 */ be_const_int(1), - /* K36 */ be_nested_str(set_xy), - /* K37 */ be_nested_str(hue), - /* K38 */ be_nested_str(sat), - /* K39 */ be_nested_str(type), - /* K40 */ be_nested_str(set_hue16sat), - /* K41 */ be_nested_str(ct), - /* K42 */ be_nested_str(set_ct), - /* K43 */ be_nested_str(bri), - /* K44 */ be_nested_str(set_bri), - /* K45 */ be_nested_str(_X2Flights_X2F), - /* K46 */ be_nested_str(_X2Fstate_X2F), - /* K47 */ be_nested_str(success), - /* K48 */ be_nested_str(signal_change), - /* K49 */ be_nested_str(dump), -}; - - -extern const bclass be_class_hue_bridge_monad; - -/******************************************************************** -** Solidified function: full_status -********************************************************************/ -be_local_closure(class_hue_bridge_monad_full_status, /* name */ - be_nested_proto( - 11, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_hue_bridge_monad, /* shared constants */ - &be_const_str_full_status, - &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x880C0101, // 0001 GETMBR R3 R0 K1 - 0x8C0C0702, // 0002 GETMET R3 R3 K2 - 0x5C140200, // 0003 MOVE R5 R1 - 0x7C0C0400, // 0004 CALL R3 2 - 0x780E0009, // 0005 JMPF R3 #0010 - 0x880C0101, // 0006 GETMBR R3 R0 K1 - 0x940C0601, // 0007 GETIDX R3 R3 R1 - 0x8C100503, // 0008 GETMET R4 R2 K3 - 0x5C180200, // 0009 MOVE R6 R1 - 0x941C0704, // 000A GETIDX R7 R3 K4 - 0x94200705, // 000B GETIDX R8 R3 K5 - 0x94240706, // 000C GETIDX R9 R3 K6 - 0x94280707, // 000D GETIDX R10 R3 K7 - 0x7C100C00, // 000E CALL R4 6 - 0x80040800, // 000F RET 1 R4 - 0x80000000, // 0010 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: hue_status -********************************************************************/ -be_local_closure(class_hue_bridge_monad_hue_status, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_hue_bridge_monad, /* shared constants */ - &be_const_str_hue_status, - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x880C0101, // 0001 GETMBR R3 R0 K1 - 0x8C0C0702, // 0002 GETMET R3 R3 K2 - 0x5C140200, // 0003 MOVE R5 R1 - 0x7C0C0400, // 0004 CALL R3 2 - 0x780E0005, // 0005 JMPF R3 #000C - 0x8C0C0508, // 0006 GETMET R3 R2 K8 - 0x88140101, // 0007 GETMBR R5 R0 K1 - 0x94140A01, // 0008 GETIDX R5 R5 R1 - 0x94140B04, // 0009 GETIDX R5 R5 K4 - 0x7C0C0400, // 000A CALL R3 2 - 0x80040600, // 000B RET 1 R3 - 0x80000000, // 000C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: add_light -********************************************************************/ -be_local_closure(class_hue_bridge_monad_add_light, /* name */ - be_nested_proto( - 10, /* nstack */ - 6, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_hue_bridge_monad, /* shared constants */ - &be_const_str_add_light, - &be_const_str_solidified, - ( &(const binstruction[43]) { /* code */ - 0x60180004, // 0000 GETGBL R6 G4 - 0x5C1C0200, // 0001 MOVE R7 R1 - 0x7C180200, // 0002 CALL R6 1 - 0x20180D09, // 0003 NE R6 R6 K9 - 0x781A0000, // 0004 JMPF R6 #0006 - 0xB006150B, // 0005 RAISE 1 K10 K11 - 0x6018000F, // 0006 GETGBL R6 G15 - 0x5C1C0400, // 0007 MOVE R7 R2 - 0xB8221000, // 0008 GETNGBL R8 K8 - 0x7C180400, // 0009 CALL R6 2 - 0x741A0000, // 000A JMPT R6 #000C - 0xB006150C, // 000B RAISE 1 K10 K12 - 0x60180008, // 000C GETGBL R6 G8 - 0x5C1C0600, // 000D MOVE R7 R3 - 0x7C180200, // 000E CALL R6 1 - 0x5C0C0C00, // 000F MOVE R3 R6 - 0x6018000C, // 0010 GETGBL R6 G12 - 0x5C1C0600, // 0011 MOVE R7 R3 - 0x7C180200, // 0012 CALL R6 1 - 0x1C180D0D, // 0013 EQ R6 R6 K13 - 0x781A0000, // 0014 JMPF R6 #0016 - 0xB006150E, // 0015 RAISE 1 K10 K14 - 0x5C180800, // 0016 MOVE R6 R4 - 0x741A0000, // 0017 JMPT R6 #0019 - 0x5810000F, // 0018 LDCONST R4 K15 - 0x5C180A00, // 0019 MOVE R6 R5 - 0x741A0000, // 001A JMPT R6 #001C - 0x58140010, // 001B LDCONST R5 K16 - 0x88180101, // 001C GETMBR R6 R0 K1 - 0x601C0013, // 001D GETGBL R7 G19 - 0x7C1C0000, // 001E CALL R7 0 - 0x981E0802, // 001F SETIDX R7 K4 R2 - 0x981E0A03, // 0020 SETIDX R7 K5 R3 - 0x60200008, // 0021 GETGBL R8 G8 - 0x5C240800, // 0022 MOVE R9 R4 - 0x7C200200, // 0023 CALL R8 1 - 0x981E0C08, // 0024 SETIDX R7 K6 R8 - 0x60200008, // 0025 GETGBL R8 G8 - 0x5C240A00, // 0026 MOVE R9 R5 - 0x7C200200, // 0027 CALL R8 1 - 0x981E0E08, // 0028 SETIDX R7 K7 R8 - 0x98180207, // 0029 SETIDX R6 R1 R7 - 0x80040400, // 002A RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: remove_light -********************************************************************/ -be_local_closure(class_hue_bridge_monad_remove_light, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_hue_bridge_monad, /* shared constants */ - &be_const_str_remove_light, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x88080101, // 0000 GETMBR R2 R0 K1 - 0x8C080511, // 0001 GETMET R2 R2 K17 - 0x5C100200, // 0002 MOVE R4 R1 - 0x7C080400, // 0003 CALL R2 2 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_hue_bridge_monad_init, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_hue_bridge_monad, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x60040013, // 0000 GETGBL R1 G19 - 0x7C040000, // 0001 CALL R1 0 - 0x90020201, // 0002 SETMBR R0 K1 R1 - 0x80000000, // 0003 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: discover -********************************************************************/ -be_local_closure(class_hue_bridge_monad_discover, /* name */ - be_nested_proto( - 10, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_hue_bridge_monad, /* shared constants */ - &be_const_str_discover, - &be_const_str_solidified, - ( &(const binstruction[39]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A2400, // 0001 IMPORT R2 K18 - 0x600C0012, // 0002 GETGBL R3 G18 - 0x7C0C0000, // 0003 CALL R3 0 - 0x60100010, // 0004 GETGBL R4 G16 - 0x88140101, // 0005 GETMBR R5 R0 K1 - 0x8C140B13, // 0006 GETMET R5 R5 K19 - 0x7C140200, // 0007 CALL R5 1 - 0x7C100200, // 0008 CALL R4 1 - 0xA802000F, // 0009 EXBLK 0 #001A - 0x5C140800, // 000A MOVE R5 R4 - 0x7C140000, // 000B CALL R5 0 - 0x8C180114, // 000C GETMET R6 R0 K20 - 0x5C200A00, // 000D MOVE R8 R5 - 0x7C180400, // 000E CALL R6 2 - 0x781A0008, // 000F JMPF R6 #0019 - 0x601C0008, // 0010 GETGBL R7 G8 - 0x5C200A00, // 0011 MOVE R8 R5 - 0x7C1C0200, // 0012 CALL R7 1 - 0x001E2A07, // 0013 ADD R7 K21 R7 - 0x001C0F16, // 0014 ADD R7 R7 K22 - 0x00180E06, // 0015 ADD R6 R7 R6 - 0x8C1C0717, // 0016 GETMET R7 R3 K23 - 0x5C240C00, // 0017 MOVE R9 R6 - 0x7C1C0400, // 0018 CALL R7 2 - 0x7001FFEF, // 0019 JMP #000A - 0x58100018, // 001A LDCONST R4 K24 - 0xAC100200, // 001B CATCH R4 1 0 - 0xB0080000, // 001C RAISE 2 R0 R0 - 0x6010000C, // 001D GETGBL R4 G12 - 0x5C140600, // 001E MOVE R5 R3 - 0x7C100200, // 001F CALL R4 1 - 0x2410090D, // 0020 GT R4 R4 K13 - 0x78120003, // 0021 JMPF R4 #0026 - 0x8C100719, // 0022 GETMET R4 R3 K25 - 0x5818001A, // 0023 LDCONST R6 K26 - 0x7C100400, // 0024 CALL R4 2 - 0x80040800, // 0025 RET 1 R4 - 0x80000000, // 0026 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: light_to_id -********************************************************************/ -be_local_closure(class_hue_bridge_monad_light_to_id, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_hue_bridge_monad, /* shared constants */ - &be_const_str_light_to_id, - &be_const_str_solidified, - ( &(const binstruction[20]) { /* code */ - 0x60080010, // 0000 GETGBL R2 G16 - 0x880C0101, // 0001 GETMBR R3 R0 K1 - 0x8C0C0713, // 0002 GETMET R3 R3 K19 - 0x7C0C0200, // 0003 CALL R3 1 - 0x7C080200, // 0004 CALL R2 1 - 0xA8020009, // 0005 EXBLK 0 #0010 - 0x5C0C0400, // 0006 MOVE R3 R2 - 0x7C0C0000, // 0007 CALL R3 0 - 0x88100101, // 0008 GETMBR R4 R0 K1 - 0x94100803, // 0009 GETIDX R4 R4 R3 - 0x94100904, // 000A GETIDX R4 R4 K4 - 0x1C100204, // 000B EQ R4 R1 R4 - 0x78120001, // 000C JMPF R4 #000F - 0xA8040001, // 000D EXBLK 1 1 - 0x80040600, // 000E RET 1 R3 - 0x7001FFF5, // 000F JMP #0006 - 0x58080018, // 0010 LDCONST R2 K24 - 0xAC080200, // 0011 CATCH R2 1 0 - 0xB0080000, // 0012 RAISE 2 R0 R0 - 0x80000000, // 0013 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: cmd -********************************************************************/ -be_local_closure(class_hue_bridge_monad_cmd, /* name */ - be_nested_proto( - 18, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_hue_bridge_monad, /* shared constants */ - &be_const_str_cmd, - &be_const_str_solidified, - ( &(const binstruction[167]) { /* code */ - 0xA40E2400, // 0000 IMPORT R3 K18 - 0x88100101, // 0001 GETMBR R4 R0 K1 - 0x8C100902, // 0002 GETMET R4 R4 K2 - 0x5C180200, // 0003 MOVE R6 R1 - 0x7C100400, // 0004 CALL R4 2 - 0x74120000, // 0005 JMPT R4 #0007 - 0x80000800, // 0006 RET 0 - 0x88100101, // 0007 GETMBR R4 R0 K1 - 0x94100801, // 0008 GETIDX R4 R4 R1 - 0x94100904, // 0009 GETIDX R4 R4 K4 - 0x60140013, // 000A GETGBL R5 G19 - 0x7C140000, // 000B CALL R5 0 - 0x8C18071B, // 000C GETMET R6 R3 K27 - 0x5C200400, // 000D MOVE R8 R2 - 0x7C180400, // 000E CALL R6 2 - 0x4C1C0000, // 000F LDNIL R7 - 0x1C1C0407, // 0010 EQ R7 R2 R7 - 0x781E0008, // 0011 JMPF R7 #001B - 0xB81E3800, // 0012 GETNGBL R7 K28 - 0x8C1C0F1D, // 0013 GETMET R7 R7 K29 - 0x60240008, // 0014 GETGBL R9 G8 - 0x5C280400, // 0015 MOVE R10 R2 - 0x7C240200, // 0016 CALL R9 1 - 0x00263C09, // 0017 ADD R9 K30 R9 - 0x5828001F, // 0018 LDCONST R10 K31 - 0x7C1C0600, // 0019 CALL R7 3 - 0x80000E00, // 001A RET 0 - 0x8C1C0D02, // 001B GETMET R7 R6 K2 - 0x58240020, // 001C LDCONST R9 K32 - 0x7C1C0400, // 001D CALL R7 2 - 0x781E0006, // 001E JMPF R7 #0026 - 0x601C0017, // 001F GETGBL R7 G23 - 0x94200D20, // 0020 GETIDX R8 R6 K32 - 0x7C1C0200, // 0021 CALL R7 1 - 0x98164007, // 0022 SETIDX R5 K32 R7 - 0x8C200921, // 0023 GETMET R8 R4 K33 - 0x5C280E00, // 0024 MOVE R10 R7 - 0x7C200400, // 0025 CALL R8 2 - 0x8C1C0D02, // 0026 GETMET R7 R6 K2 - 0x58240022, // 0027 LDCONST R9 K34 - 0x7C1C0400, // 0028 CALL R7 2 - 0x781E0013, // 0029 JMPF R7 #003E - 0x941C0D22, // 002A GETIDX R7 R6 K34 - 0x6020000A, // 002B GETGBL R8 G10 - 0x94240F0D, // 002C GETIDX R9 R7 K13 - 0x7C200200, // 002D CALL R8 1 - 0x6024000A, // 002E GETGBL R9 G10 - 0x94280F23, // 002F GETIDX R10 R7 K35 - 0x7C240200, // 0030 CALL R9 1 - 0x60280012, // 0031 GETGBL R10 G18 - 0x7C280000, // 0032 CALL R10 0 - 0x402C1408, // 0033 CONNECT R11 R10 R8 - 0x402C1409, // 0034 CONNECT R11 R10 R9 - 0x9816440A, // 0035 SETIDX R5 K34 R10 - 0x542AFFFF, // 0036 LDINT R10 65536 - 0x0820100A, // 0037 MUL R8 R8 R10 - 0x542AFFFF, // 0038 LDINT R10 65536 - 0x0824120A, // 0039 MUL R9 R9 R10 - 0x8C280924, // 003A GETMET R10 R4 K36 - 0x5C301000, // 003B MOVE R12 R8 - 0x5C341200, // 003C MOVE R13 R9 - 0x7C280600, // 003D CALL R10 3 - 0x501C0000, // 003E LDBOOL R7 0 0 - 0x88200925, // 003F GETMBR R8 R4 K37 - 0x88240926, // 0040 GETMBR R9 R4 K38 - 0x8C280D02, // 0041 GETMET R10 R6 K2 - 0x58300025, // 0042 LDCONST R12 K37 - 0x7C280400, // 0043 CALL R10 2 - 0x782A0009, // 0044 JMPF R10 #004F - 0x60280009, // 0045 GETGBL R10 G9 - 0x942C0D25, // 0046 GETIDX R11 R6 K37 - 0x7C280200, // 0047 CALL R10 1 - 0x5C201400, // 0048 MOVE R8 R10 - 0x98164A08, // 0049 SETIDX R5 K37 R8 - 0x542AFFFE, // 004A LDINT R10 65535 - 0x2428100A, // 004B GT R10 R8 R10 - 0x782A0000, // 004C JMPF R10 #004E - 0x5422FFFE, // 004D LDINT R8 65535 - 0x501C0200, // 004E LDBOOL R7 1 0 - 0x8C280D02, // 004F GETMET R10 R6 K2 - 0x58300026, // 0050 LDCONST R12 K38 - 0x7C280400, // 0051 CALL R10 2 - 0x782A000C, // 0052 JMPF R10 #0060 - 0x60280009, // 0053 GETGBL R10 G9 - 0x942C0D26, // 0054 GETIDX R11 R6 K38 - 0x7C280200, // 0055 CALL R10 1 - 0x5C241400, // 0056 MOVE R9 R10 - 0x98164C09, // 0057 SETIDX R5 K38 R9 - 0x542A00FD, // 0058 LDINT R10 254 - 0x2828120A, // 0059 GE R10 R9 R10 - 0x782A0000, // 005A JMPF R10 #005C - 0x542600FE, // 005B LDINT R9 255 - 0x88280927, // 005C GETMBR R10 R4 K39 - 0x2828151F, // 005D GE R10 R10 K31 - 0x782A0000, // 005E JMPF R10 #0060 - 0x501C0200, // 005F LDBOOL R7 1 0 - 0x781E0003, // 0060 JMPF R7 #0065 - 0x8C280928, // 0061 GETMET R10 R4 K40 - 0x5C301000, // 0062 MOVE R12 R8 - 0x5C341200, // 0063 MOVE R13 R9 - 0x7C280600, // 0064 CALL R10 3 - 0x8C280D02, // 0065 GETMET R10 R6 K2 - 0x58300029, // 0066 LDCONST R12 K41 - 0x7C280400, // 0067 CALL R10 2 - 0x782A0006, // 0068 JMPF R10 #0070 - 0x60280009, // 0069 GETGBL R10 G9 - 0x942C0D29, // 006A GETIDX R11 R6 K41 - 0x7C280200, // 006B CALL R10 1 - 0x9816520A, // 006C SETIDX R5 K41 R10 - 0x8C2C092A, // 006D GETMET R11 R4 K42 - 0x5C341400, // 006E MOVE R13 R10 - 0x7C2C0400, // 006F CALL R11 2 - 0x8C280D02, // 0070 GETMET R10 R6 K2 - 0x5830002B, // 0071 LDCONST R12 K43 - 0x7C280400, // 0072 CALL R10 2 - 0x782A000A, // 0073 JMPF R10 #007F - 0x60280009, // 0074 GETGBL R10 G9 - 0x942C0D2B, // 0075 GETIDX R11 R6 K43 - 0x7C280200, // 0076 CALL R10 1 - 0x9816560A, // 0077 SETIDX R5 K43 R10 - 0x542E00FD, // 0078 LDINT R11 254 - 0x282C140B, // 0079 GE R11 R10 R11 - 0x782E0000, // 007A JMPF R11 #007C - 0x542A00FE, // 007B LDINT R10 255 - 0x8C2C092C, // 007C GETMET R11 R4 K44 - 0x5C341400, // 007D MOVE R13 R10 - 0x7C2C0400, // 007E CALL R11 2 - 0x60280012, // 007F GETGBL R10 G18 - 0x7C280000, // 0080 CALL R10 0 - 0x602C0010, // 0081 GETGBL R11 G16 - 0x8C300B13, // 0082 GETMET R12 R5 K19 - 0x7C300200, // 0083 CALL R12 1 - 0x7C2C0200, // 0084 CALL R11 1 - 0xA8020012, // 0085 EXBLK 0 #0099 - 0x5C301600, // 0086 MOVE R12 R11 - 0x7C300000, // 0087 CALL R12 0 - 0x60340008, // 0088 GETGBL R13 G8 - 0x5C380200, // 0089 MOVE R14 R1 - 0x7C340200, // 008A CALL R13 1 - 0x00365A0D, // 008B ADD R13 K45 R13 - 0x00341B2E, // 008C ADD R13 R13 K46 - 0x00341A0C, // 008D ADD R13 R13 R12 - 0x60380013, // 008E GETGBL R14 G19 - 0x7C380000, // 008F CALL R14 0 - 0x603C0013, // 0090 GETGBL R15 G19 - 0x7C3C0000, // 0091 CALL R15 0 - 0x94400A0C, // 0092 GETIDX R16 R5 R12 - 0x983C1A10, // 0093 SETIDX R15 R13 R16 - 0x983A5E0F, // 0094 SETIDX R14 K47 R15 - 0x8C3C1517, // 0095 GETMET R15 R10 K23 - 0x5C441C00, // 0096 MOVE R17 R14 - 0x7C3C0400, // 0097 CALL R15 2 - 0x7001FFEC, // 0098 JMP #0086 - 0x582C0018, // 0099 LDCONST R11 K24 - 0xAC2C0200, // 009A CATCH R11 1 0 - 0xB0080000, // 009B RAISE 2 R0 R0 - 0x602C000C, // 009C GETGBL R11 G12 - 0x5C301400, // 009D MOVE R12 R10 - 0x7C2C0200, // 009E CALL R11 1 - 0x242C170D, // 009F GT R11 R11 K13 - 0x782E0001, // 00A0 JMPF R11 #00A3 - 0x8C2C0930, // 00A1 GETMET R11 R4 K48 - 0x7C2C0200, // 00A2 CALL R11 1 - 0x8C2C0731, // 00A3 GETMET R11 R3 K49 - 0x5C341400, // 00A4 MOVE R13 R10 - 0x7C2C0400, // 00A5 CALL R11 2 - 0x80041600, // 00A6 RET 1 R11 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: groups -********************************************************************/ -be_local_closure(class_hue_bridge_monad_groups, /* name */ - be_nested_proto( - 8, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_hue_bridge_monad, /* shared constants */ - &be_const_str_groups, - &be_const_str_solidified, - ( &(const binstruction[31]) { /* code */ - 0x60040012, // 0000 GETGBL R1 G18 - 0x7C040000, // 0001 CALL R1 0 - 0x60080010, // 0002 GETGBL R2 G16 - 0x880C0101, // 0003 GETMBR R3 R0 K1 - 0x8C0C0713, // 0004 GETMET R3 R3 K19 - 0x7C0C0200, // 0005 CALL R3 1 - 0x7C080200, // 0006 CALL R2 1 - 0xA8020009, // 0007 EXBLK 0 #0012 - 0x5C0C0400, // 0008 MOVE R3 R2 - 0x7C0C0000, // 0009 CALL R3 0 - 0x8C100317, // 000A GETMET R4 R1 K23 - 0x60180008, // 000B GETGBL R6 G8 - 0x5C1C0600, // 000C MOVE R7 R3 - 0x7C180200, // 000D CALL R6 1 - 0x001A2A06, // 000E ADD R6 K21 R6 - 0x00180D15, // 000F ADD R6 R6 K21 - 0x7C100400, // 0010 CALL R4 2 - 0x7001FFF5, // 0011 JMP #0008 - 0x58080018, // 0012 LDCONST R2 K24 - 0xAC080200, // 0013 CATCH R2 1 0 - 0xB0080000, // 0014 RAISE 2 R0 R0 - 0x6008000C, // 0015 GETGBL R2 G12 - 0x5C0C0200, // 0016 MOVE R3 R1 - 0x7C080200, // 0017 CALL R2 1 - 0x2408050D, // 0018 GT R2 R2 K13 - 0x780A0003, // 0019 JMPF R2 #001E - 0x8C080319, // 001A GETMET R2 R1 K25 - 0x5810001A, // 001B LDCONST R4 K26 - 0x7C080400, // 001C CALL R2 2 - 0x80040400, // 001D RET 1 R2 - 0x80000000, // 001E RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: hue_bridge_monad -********************************************************************/ -be_local_class(hue_bridge_monad, - 1, - NULL, - be_nested_map(10, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(lights, -1), be_const_var(0) }, - { be_const_key(groups, 6), be_const_closure(class_hue_bridge_monad_groups_closure) }, - { be_const_key(hue_status, -1), be_const_closure(class_hue_bridge_monad_hue_status_closure) }, - { be_const_key(add_light, -1), be_const_closure(class_hue_bridge_monad_add_light_closure) }, - { be_const_key(remove_light, 8), be_const_closure(class_hue_bridge_monad_remove_light_closure) }, - { be_const_key(init, -1), be_const_closure(class_hue_bridge_monad_init_closure) }, - { be_const_key(cmd, -1), be_const_closure(class_hue_bridge_monad_cmd_closure) }, - { be_const_key(light_to_id, -1), be_const_closure(class_hue_bridge_monad_light_to_id_closure) }, - { be_const_key(discover, -1), be_const_closure(class_hue_bridge_monad_discover_closure) }, - { be_const_key(full_status, 1), be_const_closure(class_hue_bridge_monad_full_status_closure) }, - })), - (bstring*) &be_const_str_hue_bridge_monad -); - -/******************************************************************** -** Solidified function: _anonymous_ -********************************************************************/ -be_local_closure(_anonymous_, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_const_class(be_class_hue_bridge_monad), - }), - &be_const_str__anonymous_, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x58040000, // 0000 LDCONST R1 K0 - 0xB4000000, // 0001 CLASS K0 - 0x5C080200, // 0002 MOVE R2 R1 - 0x7C080000, // 0003 CALL R2 0 - 0x80040400, // 0004 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified module: hue_bridge -********************************************************************/ -be_local_module(hue_bridge, - "hue_bridge", - be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(init, -1), be_const_closure(_anonymous__closure) }, - })) -); -BE_EXPORT_VARIABLE be_define_const_native_module(hue_bridge); -/********************************************************************/ -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_i2c_driver.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_i2c_driver.h deleted file mode 100644 index cc8fcf12b..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_i2c_driver.h +++ /dev/null @@ -1,564 +0,0 @@ -/* Solidification of i2c_driver.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -// compact class 'I2C_Driver' ktab size: 20, total: 71 (saved 408 bytes) -static const bvalue be_ktab_class_I2C_Driver[20] = { - /* K0 */ be_nested_str(wire), - /* K1 */ be_nested_str(read_bytes), - /* K2 */ be_nested_str(addr), - /* K3 */ be_const_int(0), - /* K4 */ be_const_int(1), - /* K5 */ be_const_int(2), - /* K6 */ be_const_int(3), - /* K7 */ be_nested_str(tasmota), - /* K8 */ be_nested_str(i2c_enabled), - /* K9 */ be_nested_str(wire_scan), - /* K10 */ be_nested_str(function), - /* K11 */ be_nested_str(name), - /* K12 */ be_nested_str(I2C_X3A), - /* K13 */ be_nested_str(detected_X20on_X20bus), - /* K14 */ be_nested_str(bus), - /* K15 */ be_nested_str(write8), - /* K16 */ be_nested_str(read8), - /* K17 */ be_nested_str(write16), - /* K18 */ be_nested_str(read), - /* K19 */ be_nested_str(write), -}; - - -extern const bclass be_class_I2C_Driver; - -/******************************************************************** -** Solidified function: read32 -********************************************************************/ -be_local_closure(class_I2C_Driver_read32, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_I2C_Driver, /* shared constants */ - &be_const_str_read32, - &be_const_str_solidified, - ( &(const binstruction[20]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x88100102, // 0002 GETMBR R4 R0 K2 - 0x5C140200, // 0003 MOVE R5 R1 - 0x541A0003, // 0004 LDINT R6 4 - 0x7C080800, // 0005 CALL R2 4 - 0x940C0503, // 0006 GETIDX R3 R2 K3 - 0x54120017, // 0007 LDINT R4 24 - 0x380C0604, // 0008 SHL R3 R3 R4 - 0x94100504, // 0009 GETIDX R4 R2 K4 - 0x5416000F, // 000A LDINT R5 16 - 0x38100805, // 000B SHL R4 R4 R5 - 0x000C0604, // 000C ADD R3 R3 R4 - 0x94100505, // 000D GETIDX R4 R2 K5 - 0x54160007, // 000E LDINT R5 8 - 0x38100805, // 000F SHL R4 R4 R5 - 0x000C0604, // 0010 ADD R3 R3 R4 - 0x94100506, // 0011 GETIDX R4 R2 K6 - 0x000C0604, // 0012 ADD R3 R3 R4 - 0x80040600, // 0013 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_I2C_Driver_init, /* name */ - be_nested_proto( - 9, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_I2C_Driver, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[44]) { /* code */ - 0x4C100000, // 0000 LDNIL R4 - 0x20100604, // 0001 NE R4 R3 R4 - 0x78120005, // 0002 JMPF R4 #0009 - 0xB8120E00, // 0003 GETNGBL R4 K7 - 0x8C100908, // 0004 GETMET R4 R4 K8 - 0x5C180600, // 0005 MOVE R6 R3 - 0x7C100400, // 0006 CALL R4 2 - 0x74120000, // 0007 JMPT R4 #0009 - 0x80000800, // 0008 RET 0 - 0x90020402, // 0009 SETMBR R0 K2 R2 - 0xB8120E00, // 000A GETNGBL R4 K7 - 0x8C100909, // 000B GETMET R4 R4 K9 - 0x88180102, // 000C GETMBR R6 R0 K2 - 0x7C100400, // 000D CALL R4 2 - 0x90020004, // 000E SETMBR R0 K0 R4 - 0x88100100, // 000F GETMBR R4 R0 K0 - 0x78120019, // 0010 JMPF R4 #002B - 0x60100004, // 0011 GETGBL R4 G4 - 0x5C140200, // 0012 MOVE R5 R1 - 0x7C100200, // 0013 CALL R4 1 - 0x1C10090A, // 0014 EQ R4 R4 K10 - 0x78120004, // 0015 JMPF R4 #001B - 0x5C100200, // 0016 MOVE R4 R1 - 0x5C140000, // 0017 MOVE R5 R0 - 0x7C100200, // 0018 CALL R4 1 - 0x90021604, // 0019 SETMBR R0 K11 R4 - 0x70020000, // 001A JMP #001C - 0x90021601, // 001B SETMBR R0 K11 R1 - 0x8810010B, // 001C GETMBR R4 R0 K11 - 0x4C140000, // 001D LDNIL R5 - 0x1C100805, // 001E EQ R4 R4 R5 - 0x78120001, // 001F JMPF R4 #0022 - 0x4C100000, // 0020 LDNIL R4 - 0x90020004, // 0021 SETMBR R0 K0 R4 - 0x88100100, // 0022 GETMBR R4 R0 K0 - 0x78120006, // 0023 JMPF R4 #002B - 0x60100001, // 0024 GETGBL R4 G1 - 0x5814000C, // 0025 LDCONST R5 K12 - 0x8818010B, // 0026 GETMBR R6 R0 K11 - 0x581C000D, // 0027 LDCONST R7 K13 - 0x88200100, // 0028 GETMBR R8 R0 K0 - 0x8820110E, // 0029 GETMBR R8 R8 K14 - 0x7C100800, // 002A CALL R4 4 - 0x80000000, // 002B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: read24 -********************************************************************/ -be_local_closure(class_I2C_Driver_read24, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_I2C_Driver, /* shared constants */ - &be_const_str_read24, - &be_const_str_solidified, - ( &(const binstruction[16]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x88100102, // 0002 GETMBR R4 R0 K2 - 0x5C140200, // 0003 MOVE R5 R1 - 0x58180006, // 0004 LDCONST R6 K6 - 0x7C080800, // 0005 CALL R2 4 - 0x940C0503, // 0006 GETIDX R3 R2 K3 - 0x5412000F, // 0007 LDINT R4 16 - 0x380C0604, // 0008 SHL R3 R3 R4 - 0x94100504, // 0009 GETIDX R4 R2 K4 - 0x54160007, // 000A LDINT R5 8 - 0x38100805, // 000B SHL R4 R4 R5 - 0x000C0604, // 000C ADD R3 R3 R4 - 0x94100505, // 000D GETIDX R4 R2 K5 - 0x000C0604, // 000E ADD R3 R3 R4 - 0x80040600, // 000F RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: write_bit -********************************************************************/ -be_local_closure(class_I2C_Driver_write_bit, /* name */ - be_nested_proto( - 11, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_I2C_Driver, /* shared constants */ - &be_const_str_write_bit, - &be_const_str_solidified, - ( &(const binstruction[26]) { /* code */ - 0x14100503, // 0000 LT R4 R2 K3 - 0x74120002, // 0001 JMPT R4 #0005 - 0x54120006, // 0002 LDINT R4 7 - 0x24100404, // 0003 GT R4 R2 R4 - 0x78120000, // 0004 JMPF R4 #0006 - 0x80000800, // 0005 RET 0 - 0x38120802, // 0006 SHL R4 K4 R2 - 0x780E0007, // 0007 JMPF R3 #0010 - 0x8C14010F, // 0008 GETMET R5 R0 K15 - 0x5C1C0200, // 0009 MOVE R7 R1 - 0x8C200110, // 000A GETMET R8 R0 K16 - 0x5C280200, // 000B MOVE R10 R1 - 0x7C200400, // 000C CALL R8 2 - 0x30201004, // 000D OR R8 R8 R4 - 0x7C140600, // 000E CALL R5 3 - 0x70020008, // 000F JMP #0019 - 0x8C14010F, // 0010 GETMET R5 R0 K15 - 0x5C1C0200, // 0011 MOVE R7 R1 - 0x8C200110, // 0012 GETMET R8 R0 K16 - 0x5C280200, // 0013 MOVE R10 R1 - 0x7C200400, // 0014 CALL R8 2 - 0x542600FE, // 0015 LDINT R9 255 - 0x04241204, // 0016 SUB R9 R9 R4 - 0x2C201009, // 0017 AND R8 R8 R9 - 0x7C140600, // 0018 CALL R5 3 - 0x80000000, // 0019 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: write16LE -********************************************************************/ -be_local_closure(class_I2C_Driver_write16LE, /* name */ - be_nested_proto( - 7, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_I2C_Driver, /* shared constants */ - &be_const_str_write16LE, - &be_const_str_solidified, - ( &(const binstruction[15]) { /* code */ - 0x540E00FE, // 0000 LDINT R3 255 - 0x2C0C0403, // 0001 AND R3 R2 R3 - 0x54120007, // 0002 LDINT R4 8 - 0x380C0604, // 0003 SHL R3 R3 R4 - 0x5412FEFF, // 0004 LDINT R4 65280 - 0x2C100404, // 0005 AND R4 R2 R4 - 0x54160007, // 0006 LDINT R5 8 - 0x3C100805, // 0007 SHR R4 R4 R5 - 0x300C0604, // 0008 OR R3 R3 R4 - 0x5C080600, // 0009 MOVE R2 R3 - 0x8C0C0111, // 000A GETMET R3 R0 K17 - 0x5C140200, // 000B MOVE R5 R1 - 0x5C180400, // 000C MOVE R6 R2 - 0x7C0C0600, // 000D CALL R3 3 - 0x80040600, // 000E RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: read8 -********************************************************************/ -be_local_closure(class_I2C_Driver_read8, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_I2C_Driver, /* shared constants */ - &be_const_str_read8, - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080512, // 0001 GETMET R2 R2 K18 - 0x88100102, // 0002 GETMBR R4 R0 K2 - 0x5C140200, // 0003 MOVE R5 R1 - 0x58180004, // 0004 LDCONST R6 K4 - 0x7C080800, // 0005 CALL R2 4 - 0x80040400, // 0006 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: read14 -********************************************************************/ -be_local_closure(class_I2C_Driver_read14, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_I2C_Driver, /* shared constants */ - &be_const_str_read14, - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x88100102, // 0002 GETMBR R4 R0 K2 - 0x5C140200, // 0003 MOVE R5 R1 - 0x58180005, // 0004 LDCONST R6 K5 - 0x7C080800, // 0005 CALL R2 4 - 0x940C0503, // 0006 GETIDX R3 R2 K3 - 0x54120005, // 0007 LDINT R4 6 - 0x380C0604, // 0008 SHL R3 R3 R4 - 0x94100504, // 0009 GETIDX R4 R2 K4 - 0x000C0604, // 000A ADD R3 R3 R4 - 0x80040600, // 000B RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: read16LE -********************************************************************/ -be_local_closure(class_I2C_Driver_read16LE, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_I2C_Driver, /* shared constants */ - &be_const_str_read16LE, - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x88100102, // 0002 GETMBR R4 R0 K2 - 0x5C140200, // 0003 MOVE R5 R1 - 0x58180005, // 0004 LDCONST R6 K5 - 0x7C080800, // 0005 CALL R2 4 - 0x940C0504, // 0006 GETIDX R3 R2 K4 - 0x54120007, // 0007 LDINT R4 8 - 0x380C0604, // 0008 SHL R3 R3 R4 - 0x94100503, // 0009 GETIDX R4 R2 K3 - 0x000C0604, // 000A ADD R3 R3 R4 - 0x80040600, // 000B RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: read12 -********************************************************************/ -be_local_closure(class_I2C_Driver_read12, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_I2C_Driver, /* shared constants */ - &be_const_str_read12, - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x88100102, // 0002 GETMBR R4 R0 K2 - 0x5C140200, // 0003 MOVE R5 R1 - 0x58180005, // 0004 LDCONST R6 K5 - 0x7C080800, // 0005 CALL R2 4 - 0x940C0503, // 0006 GETIDX R3 R2 K3 - 0x54120003, // 0007 LDINT R4 4 - 0x380C0604, // 0008 SHL R3 R3 R4 - 0x94100504, // 0009 GETIDX R4 R2 K4 - 0x000C0604, // 000A ADD R3 R3 R4 - 0x80040600, // 000B RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: write8 -********************************************************************/ -be_local_closure(class_I2C_Driver_write8, /* name */ - be_nested_proto( - 9, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_I2C_Driver, /* shared constants */ - &be_const_str_write8, - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x880C0100, // 0000 GETMBR R3 R0 K0 - 0x8C0C0713, // 0001 GETMET R3 R3 K19 - 0x88140102, // 0002 GETMBR R5 R0 K2 - 0x5C180200, // 0003 MOVE R6 R1 - 0x5C1C0400, // 0004 MOVE R7 R2 - 0x58200004, // 0005 LDCONST R8 K4 - 0x7C0C0A00, // 0006 CALL R3 5 - 0x80040600, // 0007 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: read13 -********************************************************************/ -be_local_closure(class_I2C_Driver_read13, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_I2C_Driver, /* shared constants */ - &be_const_str_read13, - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x88100102, // 0002 GETMBR R4 R0 K2 - 0x5C140200, // 0003 MOVE R5 R1 - 0x58180005, // 0004 LDCONST R6 K5 - 0x7C080800, // 0005 CALL R2 4 - 0x940C0503, // 0006 GETIDX R3 R2 K3 - 0x54120004, // 0007 LDINT R4 5 - 0x380C0604, // 0008 SHL R3 R3 R4 - 0x94100504, // 0009 GETIDX R4 R2 K4 - 0x000C0604, // 000A ADD R3 R3 R4 - 0x80040600, // 000B RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: read16 -********************************************************************/ -be_local_closure(class_I2C_Driver_read16, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_I2C_Driver, /* shared constants */ - &be_const_str_read16, - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x88100102, // 0002 GETMBR R4 R0 K2 - 0x5C140200, // 0003 MOVE R5 R1 - 0x58180005, // 0004 LDCONST R6 K5 - 0x7C080800, // 0005 CALL R2 4 - 0x940C0503, // 0006 GETIDX R3 R2 K3 - 0x54120007, // 0007 LDINT R4 8 - 0x380C0604, // 0008 SHL R3 R3 R4 - 0x94100504, // 0009 GETIDX R4 R2 K4 - 0x000C0604, // 000A ADD R3 R3 R4 - 0x80040600, // 000B RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: write16 -********************************************************************/ -be_local_closure(class_I2C_Driver_write16, /* name */ - be_nested_proto( - 9, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_I2C_Driver, /* shared constants */ - &be_const_str_write16, - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x880C0100, // 0000 GETMBR R3 R0 K0 - 0x8C0C0713, // 0001 GETMET R3 R3 K19 - 0x88140102, // 0002 GETMBR R5 R0 K2 - 0x5C180200, // 0003 MOVE R6 R1 - 0x5C1C0400, // 0004 MOVE R7 R2 - 0x58200005, // 0005 LDCONST R8 K5 - 0x7C0C0A00, // 0006 CALL R3 5 - 0x80040600, // 0007 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: I2C_Driver -********************************************************************/ -be_local_class(I2C_Driver, - 3, - NULL, - be_nested_map(16, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(read32, -1), be_const_closure(class_I2C_Driver_read32_closure) }, - { be_const_key(write16, 15), be_const_closure(class_I2C_Driver_write16_closure) }, - { be_const_key(addr, -1), be_const_var(1) }, - { be_const_key(init, 1), be_const_closure(class_I2C_Driver_init_closure) }, - { be_const_key(write_bit, -1), be_const_closure(class_I2C_Driver_write_bit_closure) }, - { be_const_key(read14, -1), be_const_closure(class_I2C_Driver_read14_closure) }, - { be_const_key(name, -1), be_const_var(2) }, - { be_const_key(read8, -1), be_const_closure(class_I2C_Driver_read8_closure) }, - { be_const_key(write16LE, 11), be_const_closure(class_I2C_Driver_write16LE_closure) }, - { be_const_key(read16LE, -1), be_const_closure(class_I2C_Driver_read16LE_closure) }, - { be_const_key(read12, -1), be_const_closure(class_I2C_Driver_read12_closure) }, - { be_const_key(wire, 5), be_const_var(0) }, - { be_const_key(write8, -1), be_const_closure(class_I2C_Driver_write8_closure) }, - { be_const_key(read13, -1), be_const_closure(class_I2C_Driver_read13_closure) }, - { be_const_key(read16, -1), be_const_closure(class_I2C_Driver_read16_closure) }, - { be_const_key(read24, -1), be_const_closure(class_I2C_Driver_read24_closure) }, - })), - (bstring*) &be_const_str_I2C_Driver -); -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_i2c_ft3663.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_i2c_ft3663.h deleted file mode 100644 index e643c05b9..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_i2c_ft3663.h +++ /dev/null @@ -1,248 +0,0 @@ -/* Solidification of i2c_ft3663.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -// compact class 'FT3663' ktab size: 21, total: 25 (saved 32 bytes) -static const bvalue be_ktab_class_FT3663[21] = { - /* K0 */ be_nested_str(wire), - /* K1 */ be_nested_str(ts_loop), - /* K2 */ be_nested_str(init), - /* K3 */ be_nested_str(FT3663), - /* K4 */ be_nested_str(read8), - /* K5 */ be_nested_str(tasmota), - /* K6 */ be_nested_str(log), - /* K7 */ be_nested_str(I2C_X3A_X20ignoring_X20address_X200x38_X2C_X20not_X20FT3663), - /* K8 */ be_const_int(2), - /* K9 */ be_nested_str(TS_X20_X3A_X20FT3663_X20Touch_X20Screen_X20detected), - /* K10 */ be_nested_str(write8), - /* K11 */ be_const_int(0), - /* K12 */ be_nested_str(add_driver), - /* K13 */ be_nested_str(display), - /* K14 */ be_nested_str(read_bytes), - /* K15 */ be_nested_str(addr), - /* K16 */ be_const_int(3), - /* K17 */ be_nested_str(gest_id_codes), - /* K18 */ be_nested_str(find), - /* K19 */ be_const_int(1), - /* K20 */ be_nested_str(touch_update), -}; - - -extern const bclass be_class_FT3663; - -/******************************************************************** -** Solidified function: every_100ms -********************************************************************/ -be_local_closure(class_FT3663_every_100ms, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_FT3663, /* shared constants */ - &be_const_str_every_100ms, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x78060001, // 0001 JMPF R1 #0004 - 0x8C040101, // 0002 GETMET R1 R0 K1 - 0x7C040200, // 0003 CALL R1 1 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_FT3663_init, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_FT3663, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[50]) { /* code */ - 0x60040003, // 0000 GETGBL R1 G3 - 0x5C080000, // 0001 MOVE R2 R0 - 0x7C040200, // 0002 CALL R1 1 - 0x8C040302, // 0003 GETMET R1 R1 K2 - 0x580C0003, // 0004 LDCONST R3 K3 - 0x54120037, // 0005 LDINT R4 56 - 0x7C040600, // 0006 CALL R1 3 - 0x88040100, // 0007 GETMBR R1 R0 K0 - 0x78060027, // 0008 JMPF R1 #0031 - 0x8C040104, // 0009 GETMET R1 R0 K4 - 0x540E00A7, // 000A LDINT R3 168 - 0x7C040400, // 000B CALL R1 2 - 0x8C080104, // 000C GETMET R2 R0 K4 - 0x541200A2, // 000D LDINT R4 163 - 0x7C080400, // 000E CALL R2 2 - 0x540E0010, // 000F LDINT R3 17 - 0x200C0203, // 0010 NE R3 R1 R3 - 0x740E0002, // 0011 JMPT R3 #0015 - 0x540E0063, // 0012 LDINT R3 100 - 0x200C0403, // 0013 NE R3 R2 R3 - 0x780E0007, // 0014 JMPF R3 #001D - 0xB80E0A00, // 0015 GETNGBL R3 K5 - 0x8C0C0706, // 0016 GETMET R3 R3 K6 - 0x58140007, // 0017 LDCONST R5 K7 - 0x58180008, // 0018 LDCONST R6 K8 - 0x7C0C0600, // 0019 CALL R3 3 - 0x4C0C0000, // 001A LDNIL R3 - 0x90020003, // 001B SETMBR R0 K0 R3 - 0x80000600, // 001C RET 0 - 0xB80E0A00, // 001D GETNGBL R3 K5 - 0x8C0C0706, // 001E GETMET R3 R3 K6 - 0x58140009, // 001F LDCONST R5 K9 - 0x7C0C0400, // 0020 CALL R3 2 - 0x8C0C010A, // 0021 GETMET R3 R0 K10 - 0x5814000B, // 0022 LDCONST R5 K11 - 0x5818000B, // 0023 LDCONST R6 K11 - 0x7C0C0600, // 0024 CALL R3 3 - 0x8C0C010A, // 0025 GETMET R3 R0 K10 - 0x5416007F, // 0026 LDINT R5 128 - 0x541A0015, // 0027 LDINT R6 22 - 0x7C0C0600, // 0028 CALL R3 3 - 0x8C0C010A, // 0029 GETMET R3 R0 K10 - 0x54160087, // 002A LDINT R5 136 - 0x541A000D, // 002B LDINT R6 14 - 0x7C0C0600, // 002C CALL R3 3 - 0xB80E0A00, // 002D GETNGBL R3 K5 - 0x8C0C070C, // 002E GETMET R3 R3 K12 - 0x5C140000, // 002F MOVE R5 R0 - 0x7C0C0400, // 0030 CALL R3 2 - 0x80000000, // 0031 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: ts_loop -********************************************************************/ -be_local_closure(class_FT3663_ts_loop, /* name */ - be_nested_proto( - 17, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_FT3663, /* shared constants */ - &be_const_str_ts_loop, - &be_const_str_solidified, - ( &(const binstruction[63]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x74060000, // 0001 JMPT R1 #0003 - 0x80000200, // 0002 RET 0 - 0xA4061A00, // 0003 IMPORT R1 K13 - 0x88080100, // 0004 GETMBR R2 R0 K0 - 0x8C08050E, // 0005 GETMET R2 R2 K14 - 0x8810010F, // 0006 GETMBR R4 R0 K15 - 0x5814000B, // 0007 LDCONST R5 K11 - 0x541A000E, // 0008 LDINT R6 15 - 0x7C080800, // 0009 CALL R2 4 - 0x940C0508, // 000A GETIDX R3 R2 K8 - 0x5412000E, // 000B LDINT R4 15 - 0x2C0C0604, // 000C AND R3 R3 R4 - 0x94100510, // 000D GETIDX R4 R2 K16 - 0x5416000E, // 000E LDINT R5 15 - 0x2C100805, // 000F AND R4 R4 R5 - 0x54160007, // 0010 LDINT R5 8 - 0x38100805, // 0011 SHL R4 R4 R5 - 0x54160003, // 0012 LDINT R5 4 - 0x94140405, // 0013 GETIDX R5 R2 R5 - 0x30100805, // 0014 OR R4 R4 R5 - 0x54160004, // 0015 LDINT R5 5 - 0x94140405, // 0016 GETIDX R5 R2 R5 - 0x541A000E, // 0017 LDINT R6 15 - 0x2C140A06, // 0018 AND R5 R5 R6 - 0x541A0007, // 0019 LDINT R6 8 - 0x38140A06, // 001A SHL R5 R5 R6 - 0x541A0005, // 001B LDINT R6 6 - 0x94180406, // 001C GETIDX R6 R2 R6 - 0x30140A06, // 001D OR R5 R5 R6 - 0x541A0006, // 001E LDINT R6 7 - 0x94180406, // 001F GETIDX R6 R2 R6 - 0x941C0510, // 0020 GETIDX R7 R2 K16 - 0x54220008, // 0021 LDINT R8 9 - 0x2C1C0E08, // 0022 AND R7 R7 R8 - 0x54220007, // 0023 LDINT R8 8 - 0x381C0E08, // 0024 SHL R7 R7 R8 - 0x54220009, // 0025 LDINT R8 10 - 0x94200408, // 0026 GETIDX R8 R2 R8 - 0x301C0E08, // 0027 OR R7 R7 R8 - 0x54220004, // 0028 LDINT R8 5 - 0x94200408, // 0029 GETIDX R8 R2 R8 - 0x5426000A, // 002A LDINT R9 11 - 0x2C201009, // 002B AND R8 R8 R9 - 0x54260007, // 002C LDINT R9 8 - 0x38201009, // 002D SHL R8 R8 R9 - 0x5426000B, // 002E LDINT R9 12 - 0x94240409, // 002F GETIDX R9 R2 R9 - 0x30201009, // 0030 OR R8 R8 R9 - 0x5426000C, // 0031 LDINT R9 13 - 0x94240409, // 0032 GETIDX R9 R2 R9 - 0x88280111, // 0033 GETMBR R10 R0 K17 - 0x8C281512, // 0034 GETMET R10 R10 K18 - 0x94300513, // 0035 GETIDX R12 R2 K19 - 0x5834000B, // 0036 LDCONST R13 K11 - 0x7C280600, // 0037 CALL R10 3 - 0x8C2C0314, // 0038 GETMET R11 R1 K20 - 0x5C340600, // 0039 MOVE R13 R3 - 0x5C380800, // 003A MOVE R14 R4 - 0x5C3C0A00, // 003B MOVE R15 R5 - 0x5C401400, // 003C MOVE R16 R10 - 0x7C2C0A00, // 003D CALL R11 5 - 0x80000000, // 003E RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: FT3663 -********************************************************************/ -extern const bclass be_class_I2C_Driver; -be_local_class(FT3663, - 0, - &be_class_I2C_Driver, - be_nested_map(4, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(every_100ms, -1), be_const_closure(class_FT3663_every_100ms_closure) }, - { be_const_key(ts_loop, 2), be_const_closure(class_FT3663_ts_loop_closure) }, - { be_const_key(gest_id_codes, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { - be_const_map( * be_nested_map(7, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_int(0, 4), be_const_int(0) }, - { be_const_key_int(72, -1), be_const_int(32) }, - { be_const_key_int(16, 1), be_const_int(16) }, - { be_const_key_int(73, 5), be_const_int(33) }, - { be_const_key_int(28, -1), be_const_int(18) }, - { be_const_key_int(24, -1), be_const_int(17) }, - { be_const_key_int(20, -1), be_const_int(19) }, - })) ) } )) }, - { be_const_key(init, 1), be_const_closure(class_FT3663_init_closure) }, - })), - (bstring*) &be_const_str_FT3663 -); -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_leds.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_leds.h deleted file mode 100644 index 2d94561e7..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_leds.h +++ /dev/null @@ -1,2384 +0,0 @@ -/* Solidification of leds.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -extern const bclass be_class_Leds_segment; -extern const bclass be_class_Leds; -extern const bclass be_class_Leds_matrix; -// compact class 'Leds_segment' ktab size: 16, total: 34 (saved 144 bytes) -static const bvalue be_ktab_class_Leds_segment[16] = { - /* K0 */ be_nested_str(offset), - /* K1 */ be_nested_str(bri), - /* K2 */ be_nested_str(strip), - /* K3 */ be_nested_str(call_native), - /* K4 */ be_nested_str(to_gamma), - /* K5 */ be_nested_str(leds), - /* K6 */ be_nested_str(dirty), - /* K7 */ be_nested_str(can_show), - /* K8 */ be_nested_str(set_pixel_color), - /* K9 */ be_nested_str(is_dirty), - /* K10 */ be_nested_str(clear_to), - /* K11 */ be_const_int(0), - /* K12 */ be_nested_str(show), - /* K13 */ be_nested_str(get_pixel_color), - /* K14 */ be_nested_str(offseta), - /* K15 */ be_nested_str(pixel_size), -}; - - -extern const bclass be_class_Leds_segment; - -/******************************************************************** -** Solidified function: pixel_offset -********************************************************************/ -be_local_closure(class_Leds_segment_pixel_offset, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_segment, /* shared constants */ - &be_const_str_pixel_offset, - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: clear_to -********************************************************************/ -be_local_closure(class_Leds_segment_clear_to, /* name */ - be_nested_proto( - 10, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_segment, /* shared constants */ - &be_const_str_clear_to, - &be_const_str_solidified, - ( &(const binstruction[16]) { /* code */ - 0x4C0C0000, // 0000 LDNIL R3 - 0x1C0C0403, // 0001 EQ R3 R2 R3 - 0x780E0000, // 0002 JMPF R3 #0004 - 0x88080101, // 0003 GETMBR R2 R0 K1 - 0x880C0102, // 0004 GETMBR R3 R0 K2 - 0x8C0C0703, // 0005 GETMET R3 R3 K3 - 0x54160008, // 0006 LDINT R5 9 - 0x88180102, // 0007 GETMBR R6 R0 K2 - 0x8C180D04, // 0008 GETMET R6 R6 K4 - 0x5C200200, // 0009 MOVE R8 R1 - 0x5C240400, // 000A MOVE R9 R2 - 0x7C180600, // 000B CALL R6 3 - 0x881C0100, // 000C GETMBR R7 R0 K0 - 0x88200105, // 000D GETMBR R8 R0 K5 - 0x7C0C0A00, // 000E CALL R3 5 - 0x80000000, // 000F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: pixel_count -********************************************************************/ -be_local_closure(class_Leds_segment_pixel_count, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_segment, /* shared constants */ - &be_const_str_pixel_count, - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040105, // 0000 GETMBR R1 R0 K5 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: pixels_buffer -********************************************************************/ -be_local_closure(class_Leds_segment_pixels_buffer, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_segment, /* shared constants */ - &be_const_str_pixels_buffer, - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x4C040000, // 0000 LDNIL R1 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: dirty -********************************************************************/ -be_local_closure(class_Leds_segment_dirty, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_segment, /* shared constants */ - &be_const_str_dirty, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040102, // 0000 GETMBR R1 R0 K2 - 0x8C040306, // 0001 GETMET R1 R1 K6 - 0x7C040200, // 0002 CALL R1 1 - 0x80000000, // 0003 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: can_show -********************************************************************/ -be_local_closure(class_Leds_segment_can_show, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_segment, /* shared constants */ - &be_const_str_can_show, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040102, // 0000 GETMBR R1 R0 K2 - 0x8C040307, // 0001 GETMET R1 R1 K7 - 0x7C040200, // 0002 CALL R1 1 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_pixel_color -********************************************************************/ -be_local_closure(class_Leds_segment_set_pixel_color, /* name */ - be_nested_proto( - 9, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_segment, /* shared constants */ - &be_const_str_set_pixel_color, - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x4C100000, // 0000 LDNIL R4 - 0x1C100604, // 0001 EQ R4 R3 R4 - 0x78120000, // 0002 JMPF R4 #0004 - 0x880C0101, // 0003 GETMBR R3 R0 K1 - 0x88100102, // 0004 GETMBR R4 R0 K2 - 0x8C100908, // 0005 GETMET R4 R4 K8 - 0x88180100, // 0006 GETMBR R6 R0 K0 - 0x00180206, // 0007 ADD R6 R1 R6 - 0x5C1C0400, // 0008 MOVE R7 R2 - 0x5C200600, // 0009 MOVE R8 R3 - 0x7C100800, // 000A CALL R4 4 - 0x80000000, // 000B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: is_dirty -********************************************************************/ -be_local_closure(class_Leds_segment_is_dirty, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_segment, /* shared constants */ - &be_const_str_is_dirty, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040102, // 0000 GETMBR R1 R0 K2 - 0x8C040309, // 0001 GETMET R1 R1 K9 - 0x7C040200, // 0002 CALL R1 1 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: clear -********************************************************************/ -be_local_closure(class_Leds_segment_clear, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_segment, /* shared constants */ - &be_const_str_clear, - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x8C04010A, // 0000 GETMET R1 R0 K10 - 0x580C000B, // 0001 LDCONST R3 K11 - 0x7C040400, // 0002 CALL R1 2 - 0x8C04010C, // 0003 GETMET R1 R0 K12 - 0x7C040200, // 0004 CALL R1 1 - 0x80000000, // 0005 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: begin -********************************************************************/ -be_local_closure(class_Leds_segment_begin, /* name */ - be_nested_proto( - 1, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_segment, /* shared constants */ - &be_const_str_begin, - &be_const_str_solidified, - ( &(const binstruction[ 1]) { /* code */ - 0x80000000, // 0000 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_pixel_color -********************************************************************/ -be_local_closure(class_Leds_segment_get_pixel_color, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_segment, /* shared constants */ - &be_const_str_get_pixel_color, - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x88080102, // 0000 GETMBR R2 R0 K2 - 0x8C08050D, // 0001 GETMET R2 R2 K13 - 0x8810010E, // 0002 GETMBR R4 R0 K14 - 0x00100204, // 0003 ADD R4 R1 R4 - 0x7C080400, // 0004 CALL R2 2 - 0x80040400, // 0005 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: pixel_size -********************************************************************/ -be_local_closure(class_Leds_segment_pixel_size, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_segment, /* shared constants */ - &be_const_str_pixel_size, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040102, // 0000 GETMBR R1 R0 K2 - 0x8C04030F, // 0001 GETMET R1 R1 K15 - 0x7C040200, // 0002 CALL R1 1 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_Leds_segment_init, /* name */ - be_nested_proto( - 6, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_segment, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0x90020401, // 0000 SETMBR R0 K2 R1 - 0x60100009, // 0001 GETGBL R4 G9 - 0x5C140400, // 0002 MOVE R5 R2 - 0x7C100200, // 0003 CALL R4 1 - 0x90020004, // 0004 SETMBR R0 K0 R4 - 0x60100009, // 0005 GETGBL R4 G9 - 0x5C140600, // 0006 MOVE R5 R3 - 0x7C100200, // 0007 CALL R4 1 - 0x90020A04, // 0008 SETMBR R0 K5 R4 - 0x80000000, // 0009 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: show -********************************************************************/ -be_local_closure(class_Leds_segment_show, /* name */ - be_nested_proto( - 4, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_segment, /* shared constants */ - &be_const_str_show, - &be_const_str_solidified, - ( &(const binstruction[16]) { /* code */ - 0x60080017, // 0000 GETGBL R2 G23 - 0x5C0C0200, // 0001 MOVE R3 R1 - 0x7C080200, // 0002 CALL R2 1 - 0x740A0007, // 0003 JMPT R2 #000C - 0x88080100, // 0004 GETMBR R2 R0 K0 - 0x1C08050B, // 0005 EQ R2 R2 K11 - 0x780A0007, // 0006 JMPF R2 #000F - 0x88080105, // 0007 GETMBR R2 R0 K5 - 0x880C0102, // 0008 GETMBR R3 R0 K2 - 0x880C0705, // 0009 GETMBR R3 R3 K5 - 0x1C080403, // 000A EQ R2 R2 R3 - 0x780A0002, // 000B JMPF R2 #000F - 0x88080102, // 000C GETMBR R2 R0 K2 - 0x8C08050C, // 000D GETMET R2 R2 K12 - 0x7C080200, // 000E CALL R2 1 - 0x80000000, // 000F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: Leds_segment -********************************************************************/ -be_local_class(Leds_segment, - 3, - NULL, - be_nested_map(17, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(pixel_offset, 9), be_const_closure(class_Leds_segment_pixel_offset_closure) }, - { be_const_key(clear_to, -1), be_const_closure(class_Leds_segment_clear_to_closure) }, - { be_const_key(show, -1), be_const_closure(class_Leds_segment_show_closure) }, - { be_const_key(pixels_buffer, 10), be_const_closure(class_Leds_segment_pixels_buffer_closure) }, - { be_const_key(offset, -1), be_const_var(1) }, - { be_const_key(dirty, -1), be_const_closure(class_Leds_segment_dirty_closure) }, - { be_const_key(can_show, -1), be_const_closure(class_Leds_segment_can_show_closure) }, - { be_const_key(set_pixel_color, 6), be_const_closure(class_Leds_segment_set_pixel_color_closure) }, - { be_const_key(get_pixel_color, -1), be_const_closure(class_Leds_segment_get_pixel_color_closure) }, - { be_const_key(pixel_count, -1), be_const_closure(class_Leds_segment_pixel_count_closure) }, - { be_const_key(strip, 7), be_const_var(0) }, - { be_const_key(leds, -1), be_const_var(2) }, - { be_const_key(begin, -1), be_const_closure(class_Leds_segment_begin_closure) }, - { be_const_key(is_dirty, 8), be_const_closure(class_Leds_segment_is_dirty_closure) }, - { be_const_key(pixel_size, -1), be_const_closure(class_Leds_segment_pixel_size_closure) }, - { be_const_key(init, -1), be_const_closure(class_Leds_segment_init_closure) }, - { be_const_key(clear, 2), be_const_closure(class_Leds_segment_clear_closure) }, - })), - (bstring*) &be_const_str_Leds_segment -); -// compact class 'Leds_matrix' ktab size: 28, total: 72 (saved 352 bytes) -static const bvalue be_ktab_class_Leds_matrix[28] = { - /* K0 */ be_nested_str(strip), - /* K1 */ be_nested_str(is_dirty), - /* K2 */ be_nested_str(dirty), - /* K3 */ be_nested_str(bri), - /* K4 */ be_nested_str(alternate), - /* K5 */ be_const_int(1), - /* K6 */ be_nested_str(set_pixel_color), - /* K7 */ be_nested_str(w), - /* K8 */ be_nested_str(h), - /* K9 */ be_nested_str(offset), - /* K10 */ be_nested_str(can_show), - /* K11 */ be_nested_str(pix_size), - /* K12 */ be_nested_str(pix_buffer), - /* K13 */ be_nested_str(setbytes), - /* K14 */ be_const_int(0), - /* K15 */ be_nested_str(leds), - /* K16 */ be_nested_str(show), - /* K17 */ be_nested_str(pixels_buffer), - /* K18 */ be_nested_str(get_pixel_color), - /* K19 */ be_nested_str(offseta), - /* K20 */ be_nested_str(call_native), - /* K21 */ be_nested_str(to_gamma), - /* K22 */ be_nested_str(pixel_size), - /* K23 */ be_nested_str(clear_to), - /* K24 */ be_const_int(3), - /* K25 */ be_const_int(2), - /* K26 */ be_nested_str(reverse), - /* K27 */ be_const_int(2147483647), -}; - - -extern const bclass be_class_Leds_matrix; - -/******************************************************************** -** Solidified function: is_dirty -********************************************************************/ -be_local_closure(class_Leds_matrix_is_dirty, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_is_dirty, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: dirty -********************************************************************/ -be_local_closure(class_Leds_matrix_dirty, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_dirty, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040302, // 0001 GETMET R1 R1 K2 - 0x7C040200, // 0002 CALL R1 1 - 0x80000000, // 0003 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_matrix_pixel_color -********************************************************************/ -be_local_closure(class_Leds_matrix_set_matrix_pixel_color, /* name */ - be_nested_proto( - 10, /* nstack */ - 5, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_set_matrix_pixel_color, - &be_const_str_solidified, - ( &(const binstruction[34]) { /* code */ - 0x4C140000, // 0000 LDNIL R5 - 0x1C140805, // 0001 EQ R5 R4 R5 - 0x78160001, // 0002 JMPF R5 #0005 - 0x88140100, // 0003 GETMBR R5 R0 K0 - 0x88100B03, // 0004 GETMBR R4 R5 K3 - 0x88140104, // 0005 GETMBR R5 R0 K4 - 0x7816000F, // 0006 JMPF R5 #0017 - 0x2C140505, // 0007 AND R5 R2 K5 - 0x7816000D, // 0008 JMPF R5 #0017 - 0x88140100, // 0009 GETMBR R5 R0 K0 - 0x8C140B06, // 000A GETMET R5 R5 K6 - 0x881C0107, // 000B GETMBR R7 R0 K7 - 0x081C0207, // 000C MUL R7 R1 R7 - 0x88200108, // 000D GETMBR R8 R0 K8 - 0x001C0E08, // 000E ADD R7 R7 R8 - 0x041C0E02, // 000F SUB R7 R7 R2 - 0x041C0F05, // 0010 SUB R7 R7 K5 - 0x88200109, // 0011 GETMBR R8 R0 K9 - 0x001C0E08, // 0012 ADD R7 R7 R8 - 0x5C200600, // 0013 MOVE R8 R3 - 0x5C240800, // 0014 MOVE R9 R4 - 0x7C140800, // 0015 CALL R5 4 - 0x70020009, // 0016 JMP #0021 - 0x88140100, // 0017 GETMBR R5 R0 K0 - 0x8C140B06, // 0018 GETMET R5 R5 K6 - 0x881C0107, // 0019 GETMBR R7 R0 K7 - 0x081C0207, // 001A MUL R7 R1 R7 - 0x001C0E02, // 001B ADD R7 R7 R2 - 0x88200109, // 001C GETMBR R8 R0 K9 - 0x001C0E08, // 001D ADD R7 R7 R8 - 0x5C200600, // 001E MOVE R8 R3 - 0x5C240800, // 001F MOVE R9 R4 - 0x7C140800, // 0020 CALL R5 4 - 0x80000000, // 0021 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: can_show -********************************************************************/ -be_local_closure(class_Leds_matrix_can_show, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_can_show, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C04030A, // 0001 GETMET R1 R1 K10 - 0x7C040200, // 0002 CALL R1 1 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_bytes -********************************************************************/ -be_local_closure(class_Leds_matrix_set_bytes, /* name */ - be_nested_proto( - 13, /* nstack */ - 5, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_set_bytes, - &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0x88140108, // 0000 GETMBR R5 R0 K8 - 0x8818010B, // 0001 GETMBR R6 R0 K11 - 0x08140A06, // 0002 MUL R5 R5 R6 - 0x24180805, // 0003 GT R6 R4 R5 - 0x781A0000, // 0004 JMPF R6 #0006 - 0x5C100A00, // 0005 MOVE R4 R5 - 0x88180109, // 0006 GETMBR R6 R0 K9 - 0x00180C01, // 0007 ADD R6 R6 R1 - 0x08180C05, // 0008 MUL R6 R6 R5 - 0x881C010C, // 0009 GETMBR R7 R0 K12 - 0x8C1C0F0D, // 000A GETMET R7 R7 K13 - 0x5C240C00, // 000B MOVE R9 R6 - 0x5C280400, // 000C MOVE R10 R2 - 0x5C2C0600, // 000D MOVE R11 R3 - 0x5C300800, // 000E MOVE R12 R4 - 0x7C1C0A00, // 000F CALL R7 5 - 0x80000000, // 0010 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: show -********************************************************************/ -be_local_closure(class_Leds_matrix_show, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_show, - &be_const_str_solidified, - ( &(const binstruction[23]) { /* code */ - 0x60080017, // 0000 GETGBL R2 G23 - 0x5C0C0200, // 0001 MOVE R3 R1 - 0x7C080200, // 0002 CALL R2 1 - 0x740A0009, // 0003 JMPT R2 #000E - 0x88080109, // 0004 GETMBR R2 R0 K9 - 0x1C08050E, // 0005 EQ R2 R2 K14 - 0x780A000E, // 0006 JMPF R2 #0016 - 0x88080107, // 0007 GETMBR R2 R0 K7 - 0x880C0108, // 0008 GETMBR R3 R0 K8 - 0x08080403, // 0009 MUL R2 R2 R3 - 0x880C0100, // 000A GETMBR R3 R0 K0 - 0x880C070F, // 000B GETMBR R3 R3 K15 - 0x1C080403, // 000C EQ R2 R2 R3 - 0x780A0007, // 000D JMPF R2 #0016 - 0x88080100, // 000E GETMBR R2 R0 K0 - 0x8C080510, // 000F GETMET R2 R2 K16 - 0x7C080200, // 0010 CALL R2 1 - 0x88080100, // 0011 GETMBR R2 R0 K0 - 0x8C080511, // 0012 GETMET R2 R2 K17 - 0x8810010C, // 0013 GETMBR R4 R0 K12 - 0x7C080400, // 0014 CALL R2 2 - 0x90021802, // 0015 SETMBR R0 K12 R2 - 0x80000000, // 0016 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_alternate -********************************************************************/ -be_local_closure(class_Leds_matrix_get_alternate, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_get_alternate, - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040104, // 0000 GETMBR R1 R0 K4 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: pixel_offset -********************************************************************/ -be_local_closure(class_Leds_matrix_pixel_offset, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_pixel_offset, - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040109, // 0000 GETMBR R1 R0 K9 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_pixel_color -********************************************************************/ -be_local_closure(class_Leds_matrix_get_pixel_color, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_get_pixel_color, - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080512, // 0001 GETMET R2 R2 K18 - 0x88100113, // 0002 GETMBR R4 R0 K19 - 0x00100204, // 0003 ADD R4 R1 R4 - 0x7C080400, // 0004 CALL R2 2 - 0x80040400, // 0005 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: pixel_size -********************************************************************/ -be_local_closure(class_Leds_matrix_pixel_size, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_pixel_size, - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x8804010B, // 0000 GETMBR R1 R0 K11 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: clear_to -********************************************************************/ -be_local_closure(class_Leds_matrix_clear_to, /* name */ - be_nested_proto( - 10, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_clear_to, - &be_const_str_solidified, - ( &(const binstruction[19]) { /* code */ - 0x4C0C0000, // 0000 LDNIL R3 - 0x1C0C0403, // 0001 EQ R3 R2 R3 - 0x780E0001, // 0002 JMPF R3 #0005 - 0x880C0100, // 0003 GETMBR R3 R0 K0 - 0x88080703, // 0004 GETMBR R2 R3 K3 - 0x880C0100, // 0005 GETMBR R3 R0 K0 - 0x8C0C0714, // 0006 GETMET R3 R3 K20 - 0x54160008, // 0007 LDINT R5 9 - 0x88180100, // 0008 GETMBR R6 R0 K0 - 0x8C180D15, // 0009 GETMET R6 R6 K21 - 0x5C200200, // 000A MOVE R8 R1 - 0x5C240400, // 000B MOVE R9 R2 - 0x7C180600, // 000C CALL R6 3 - 0x881C0109, // 000D GETMBR R7 R0 K9 - 0x88200107, // 000E GETMBR R8 R0 K7 - 0x88240108, // 000F GETMBR R9 R0 K8 - 0x08201009, // 0010 MUL R8 R8 R9 - 0x7C0C0A00, // 0011 CALL R3 5 - 0x80000000, // 0012 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: begin -********************************************************************/ -be_local_closure(class_Leds_matrix_begin, /* name */ - be_nested_proto( - 1, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_begin, - &be_const_str_solidified, - ( &(const binstruction[ 1]) { /* code */ - 0x80000000, // 0000 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_alternate -********************************************************************/ -be_local_closure(class_Leds_matrix_set_alternate, /* name */ - be_nested_proto( - 2, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_set_alternate, - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x90020801, // 0000 SETMBR R0 K4 R1 - 0x80000000, // 0001 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_Leds_matrix_init, /* name */ - be_nested_proto( - 7, /* nstack */ - 5, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[15]) { /* code */ - 0x90020001, // 0000 SETMBR R0 K0 R1 - 0x90021204, // 0001 SETMBR R0 K9 R4 - 0x90021003, // 0002 SETMBR R0 K8 R3 - 0x90020E02, // 0003 SETMBR R0 K7 R2 - 0x50140000, // 0004 LDBOOL R5 0 0 - 0x90020805, // 0005 SETMBR R0 K4 R5 - 0x88140100, // 0006 GETMBR R5 R0 K0 - 0x8C140B11, // 0007 GETMET R5 R5 K17 - 0x7C140200, // 0008 CALL R5 1 - 0x90021805, // 0009 SETMBR R0 K12 R5 - 0x88140100, // 000A GETMBR R5 R0 K0 - 0x8C140B16, // 000B GETMET R5 R5 K22 - 0x7C140200, // 000C CALL R5 1 - 0x90021605, // 000D SETMBR R0 K11 R5 - 0x80000000, // 000E RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: clear -********************************************************************/ -be_local_closure(class_Leds_matrix_clear, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_clear, - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x8C040117, // 0000 GETMET R1 R0 K23 - 0x580C000E, // 0001 LDCONST R3 K14 - 0x7C040400, // 0002 CALL R1 2 - 0x8C040110, // 0003 GETMET R1 R0 K16 - 0x7C040200, // 0004 CALL R1 1 - 0x80000000, // 0005 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: scroll -********************************************************************/ -be_local_closure(class_Leds_matrix_scroll, /* name */ - be_nested_proto( - 17, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_scroll, - &be_const_str_solidified, - ( &(const binstruction[258]) { /* code */ - 0x8810010C, // 0000 GETMBR R4 R0 K12 - 0x88140108, // 0001 GETMBR R5 R0 K8 - 0x88180107, // 0002 GETMBR R6 R0 K7 - 0x08180D18, // 0003 MUL R6 R6 K24 - 0x4C1C0000, // 0004 LDNIL R7 - 0x10200319, // 0005 MOD R8 R1 K25 - 0x1C20110E, // 0006 EQ R8 R8 K14 - 0x7822006B, // 0007 JMPF R8 #0074 - 0x1C20030E, // 0008 EQ R8 R1 K14 - 0x78220037, // 0009 JMPF R8 #0042 - 0x8C20050D, // 000A GETMET R8 R2 K13 - 0x5828000E, // 000B LDCONST R10 K14 - 0x042C0D05, // 000C SUB R11 R6 K5 - 0x402E1C0B, // 000D CONNECT R11 K14 R11 - 0x942C080B, // 000E GETIDX R11 R4 R11 - 0x8C2C171A, // 000F GETMET R11 R11 K26 - 0x5834000E, // 0010 LDCONST R13 K14 - 0x4C380000, // 0011 LDNIL R14 - 0x583C0018, // 0012 LDCONST R15 K24 - 0x7C2C0800, // 0013 CALL R11 4 - 0x7C200600, // 0014 CALL R8 3 - 0x5820000E, // 0015 LDCONST R8 K14 - 0x04240B05, // 0016 SUB R9 R5 K5 - 0x14241009, // 0017 LT R9 R8 R9 - 0x78260016, // 0018 JMPF R9 #0030 - 0x581C000E, // 0019 LDCONST R7 K14 - 0x08241006, // 001A MUL R9 R8 R6 - 0x00281119, // 001B ADD R10 R8 K25 - 0x08281406, // 001C MUL R10 R10 R6 - 0x04281518, // 001D SUB R10 R10 K24 - 0x142C0E06, // 001E LT R11 R7 R6 - 0x782E000D, // 001F JMPF R11 #002E - 0x002C0E09, // 0020 ADD R11 R7 R9 - 0x04301407, // 0021 SUB R12 R10 R7 - 0x9434080C, // 0022 GETIDX R13 R4 R12 - 0x9810160D, // 0023 SETIDX R4 R11 R13 - 0x00341705, // 0024 ADD R13 R11 K5 - 0x00381905, // 0025 ADD R14 R12 K5 - 0x9438080E, // 0026 GETIDX R14 R4 R14 - 0x98101A0E, // 0027 SETIDX R4 R13 R14 - 0x00341719, // 0028 ADD R13 R11 K25 - 0x00381919, // 0029 ADD R14 R12 K25 - 0x9438080E, // 002A GETIDX R14 R4 R14 - 0x98101A0E, // 002B SETIDX R4 R13 R14 - 0x001C0F18, // 002C ADD R7 R7 K24 - 0x7001FFEF, // 002D JMP #001E - 0x00201105, // 002E ADD R8 R8 K5 - 0x7001FFE5, // 002F JMP #0016 - 0x780E0001, // 0030 JMPF R3 #0033 - 0x5C240600, // 0031 MOVE R9 R3 - 0x70020000, // 0032 JMP #0034 - 0x5C240400, // 0033 MOVE R9 R2 - 0x10280B19, // 0034 MOD R10 R5 K25 - 0x1C281505, // 0035 EQ R10 R10 K5 - 0x782A0004, // 0036 JMPF R10 #003C - 0x8C28131A, // 0037 GETMET R10 R9 K26 - 0x5830000E, // 0038 LDCONST R12 K14 - 0x4C340000, // 0039 LDNIL R13 - 0x58380018, // 003A LDCONST R14 K24 - 0x7C280800, // 003B CALL R10 4 - 0x8C28090D, // 003C GETMET R10 R4 K13 - 0x04300B05, // 003D SUB R12 R5 K5 - 0x08301806, // 003E MUL R12 R12 R6 - 0x5C341200, // 003F MOVE R13 R9 - 0x7C280600, // 0040 CALL R10 3 - 0x70020030, // 0041 JMP #0073 - 0x8C20050D, // 0042 GETMET R8 R2 K13 - 0x5828000E, // 0043 LDCONST R10 K14 - 0x602C000C, // 0044 GETGBL R11 G12 - 0x5C300800, // 0045 MOVE R12 R4 - 0x7C2C0200, // 0046 CALL R11 1 - 0x042C1606, // 0047 SUB R11 R11 R6 - 0x402C171B, // 0048 CONNECT R11 R11 K27 - 0x942C080B, // 0049 GETIDX R11 R4 R11 - 0x8C2C171A, // 004A GETMET R11 R11 K26 - 0x5834000E, // 004B LDCONST R13 K14 - 0x4C380000, // 004C LDNIL R14 - 0x583C0018, // 004D LDCONST R15 K24 - 0x7C2C0800, // 004E CALL R11 4 - 0x7C200600, // 004F CALL R8 3 - 0x04200B05, // 0050 SUB R8 R5 K5 - 0x2424110E, // 0051 GT R9 R8 K14 - 0x7826000F, // 0052 JMPF R9 #0063 - 0x8C24090D, // 0053 GETMET R9 R4 K13 - 0x082C1006, // 0054 MUL R11 R8 R6 - 0x04301105, // 0055 SUB R12 R8 K5 - 0x08301806, // 0056 MUL R12 R12 R6 - 0x08341006, // 0057 MUL R13 R8 R6 - 0x04341B05, // 0058 SUB R13 R13 K5 - 0x4030180D, // 0059 CONNECT R12 R12 R13 - 0x9430080C, // 005A GETIDX R12 R4 R12 - 0x8C30191A, // 005B GETMET R12 R12 K26 - 0x5838000E, // 005C LDCONST R14 K14 - 0x4C3C0000, // 005D LDNIL R15 - 0x58400018, // 005E LDCONST R16 K24 - 0x7C300800, // 005F CALL R12 4 - 0x7C240600, // 0060 CALL R9 3 - 0x04201105, // 0061 SUB R8 R8 K5 - 0x7001FFED, // 0062 JMP #0051 - 0x780E0001, // 0063 JMPF R3 #0066 - 0x5C240600, // 0064 MOVE R9 R3 - 0x70020000, // 0065 JMP #0067 - 0x5C240400, // 0066 MOVE R9 R2 - 0x10280B19, // 0067 MOD R10 R5 K25 - 0x1C281505, // 0068 EQ R10 R10 K5 - 0x782A0004, // 0069 JMPF R10 #006F - 0x8C28131A, // 006A GETMET R10 R9 K26 - 0x5830000E, // 006B LDCONST R12 K14 - 0x4C340000, // 006C LDNIL R13 - 0x58380018, // 006D LDCONST R14 K24 - 0x7C280800, // 006E CALL R10 4 - 0x8C28090D, // 006F GETMET R10 R4 K13 - 0x5830000E, // 0070 LDCONST R12 K14 - 0x5C341200, // 0071 MOVE R13 R9 - 0x7C280600, // 0072 CALL R10 3 - 0x7002008C, // 0073 JMP #0101 - 0x5820000E, // 0074 LDCONST R8 K14 - 0x58240018, // 0075 LDCONST R9 K24 - 0x1C280318, // 0076 EQ R10 R1 K24 - 0x782A0001, // 0077 JMPF R10 #007A - 0x5429FFFE, // 0078 LDINT R10 -1 - 0x0824120A, // 0079 MUL R9 R9 R10 - 0x14281005, // 007A LT R10 R8 R5 - 0x782A0084, // 007B JMPF R10 #0101 - 0x08281006, // 007C MUL R10 R8 R6 - 0x5C1C1400, // 007D MOVE R7 R10 - 0x2428130E, // 007E GT R10 R9 K14 - 0x782A003E, // 007F JMPF R10 #00BF - 0x00280E06, // 0080 ADD R10 R7 R6 - 0x04281409, // 0081 SUB R10 R10 R9 - 0x082C1118, // 0082 MUL R11 R8 K24 - 0x94300807, // 0083 GETIDX R12 R4 R7 - 0x9808160C, // 0084 SETIDX R2 R11 R12 - 0x082C1118, // 0085 MUL R11 R8 K24 - 0x002C1705, // 0086 ADD R11 R11 K5 - 0x00300F05, // 0087 ADD R12 R7 K5 - 0x9430080C, // 0088 GETIDX R12 R4 R12 - 0x9808160C, // 0089 SETIDX R2 R11 R12 - 0x082C1118, // 008A MUL R11 R8 K24 - 0x002C1719, // 008B ADD R11 R11 K25 - 0x00300F19, // 008C ADD R12 R7 K25 - 0x9430080C, // 008D GETIDX R12 R4 R12 - 0x9808160C, // 008E SETIDX R2 R11 R12 - 0x142C0E0A, // 008F LT R11 R7 R10 - 0x782E000E, // 0090 JMPF R11 #00A0 - 0x002C0F18, // 0091 ADD R11 R7 K24 - 0x942C080B, // 0092 GETIDX R11 R4 R11 - 0x98100E0B, // 0093 SETIDX R4 R7 R11 - 0x002C0F05, // 0094 ADD R11 R7 K5 - 0x54320003, // 0095 LDINT R12 4 - 0x00300E0C, // 0096 ADD R12 R7 R12 - 0x9430080C, // 0097 GETIDX R12 R4 R12 - 0x9810160C, // 0098 SETIDX R4 R11 R12 - 0x002C0F19, // 0099 ADD R11 R7 K25 - 0x54320004, // 009A LDINT R12 5 - 0x00300E0C, // 009B ADD R12 R7 R12 - 0x9430080C, // 009C GETIDX R12 R4 R12 - 0x9810160C, // 009D SETIDX R4 R11 R12 - 0x001C0E09, // 009E ADD R7 R7 R9 - 0x7001FFEE, // 009F JMP #008F - 0x4C2C0000, // 00A0 LDNIL R11 - 0x1C2C060B, // 00A1 EQ R11 R3 R11 - 0x782E000D, // 00A2 JMPF R11 #00B1 - 0x082C1118, // 00A3 MUL R11 R8 K24 - 0x942C040B, // 00A4 GETIDX R11 R2 R11 - 0x9810140B, // 00A5 SETIDX R4 R10 R11 - 0x002C1505, // 00A6 ADD R11 R10 K5 - 0x08301118, // 00A7 MUL R12 R8 K24 - 0x00301905, // 00A8 ADD R12 R12 K5 - 0x9430040C, // 00A9 GETIDX R12 R2 R12 - 0x9810160C, // 00AA SETIDX R4 R11 R12 - 0x002C1519, // 00AB ADD R11 R10 K25 - 0x08301118, // 00AC MUL R12 R8 K24 - 0x00301919, // 00AD ADD R12 R12 K25 - 0x9430040C, // 00AE GETIDX R12 R2 R12 - 0x9810160C, // 00AF SETIDX R4 R11 R12 - 0x7002000C, // 00B0 JMP #00BE - 0x082C1118, // 00B1 MUL R11 R8 K24 - 0x942C060B, // 00B2 GETIDX R11 R3 R11 - 0x9810140B, // 00B3 SETIDX R4 R10 R11 - 0x002C1505, // 00B4 ADD R11 R10 K5 - 0x08301118, // 00B5 MUL R12 R8 K24 - 0x00301905, // 00B6 ADD R12 R12 K5 - 0x9430060C, // 00B7 GETIDX R12 R3 R12 - 0x9810160C, // 00B8 SETIDX R4 R11 R12 - 0x002C1519, // 00B9 ADD R11 R10 K25 - 0x08301118, // 00BA MUL R12 R8 K24 - 0x00301919, // 00BB ADD R12 R12 K25 - 0x9430060C, // 00BC GETIDX R12 R3 R12 - 0x9810160C, // 00BD SETIDX R4 R11 R12 - 0x7002003D, // 00BE JMP #00FD - 0x5C280E00, // 00BF MOVE R10 R7 - 0x002C0E06, // 00C0 ADD R11 R7 R6 - 0x002C1609, // 00C1 ADD R11 R11 R9 - 0x5C1C1600, // 00C2 MOVE R7 R11 - 0x082C1118, // 00C3 MUL R11 R8 K24 - 0x94300807, // 00C4 GETIDX R12 R4 R7 - 0x9808160C, // 00C5 SETIDX R2 R11 R12 - 0x082C1118, // 00C6 MUL R11 R8 K24 - 0x002C1705, // 00C7 ADD R11 R11 K5 - 0x00300F05, // 00C8 ADD R12 R7 K5 - 0x9430080C, // 00C9 GETIDX R12 R4 R12 - 0x9808160C, // 00CA SETIDX R2 R11 R12 - 0x082C1118, // 00CB MUL R11 R8 K24 - 0x002C1719, // 00CC ADD R11 R11 K25 - 0x00300F19, // 00CD ADD R12 R7 K25 - 0x9430080C, // 00CE GETIDX R12 R4 R12 - 0x9808160C, // 00CF SETIDX R2 R11 R12 - 0x242C0E0A, // 00D0 GT R11 R7 R10 - 0x782E000C, // 00D1 JMPF R11 #00DF - 0x042C0F18, // 00D2 SUB R11 R7 K24 - 0x942C080B, // 00D3 GETIDX R11 R4 R11 - 0x98100E0B, // 00D4 SETIDX R4 R7 R11 - 0x002C0F05, // 00D5 ADD R11 R7 K5 - 0x04300F19, // 00D6 SUB R12 R7 K25 - 0x9430080C, // 00D7 GETIDX R12 R4 R12 - 0x9810160C, // 00D8 SETIDX R4 R11 R12 - 0x002C0F19, // 00D9 ADD R11 R7 K25 - 0x04300F05, // 00DA SUB R12 R7 K5 - 0x9430080C, // 00DB GETIDX R12 R4 R12 - 0x9810160C, // 00DC SETIDX R4 R11 R12 - 0x001C0E09, // 00DD ADD R7 R7 R9 - 0x7001FFF0, // 00DE JMP #00D0 - 0x4C2C0000, // 00DF LDNIL R11 - 0x1C2C060B, // 00E0 EQ R11 R3 R11 - 0x782E000D, // 00E1 JMPF R11 #00F0 - 0x082C1118, // 00E2 MUL R11 R8 K24 - 0x942C040B, // 00E3 GETIDX R11 R2 R11 - 0x9810140B, // 00E4 SETIDX R4 R10 R11 - 0x002C1505, // 00E5 ADD R11 R10 K5 - 0x08301118, // 00E6 MUL R12 R8 K24 - 0x00301905, // 00E7 ADD R12 R12 K5 - 0x9430040C, // 00E8 GETIDX R12 R2 R12 - 0x9810160C, // 00E9 SETIDX R4 R11 R12 - 0x002C1519, // 00EA ADD R11 R10 K25 - 0x08301118, // 00EB MUL R12 R8 K24 - 0x00301919, // 00EC ADD R12 R12 K25 - 0x9430040C, // 00ED GETIDX R12 R2 R12 - 0x9810160C, // 00EE SETIDX R4 R11 R12 - 0x7002000C, // 00EF JMP #00FD - 0x082C1118, // 00F0 MUL R11 R8 K24 - 0x942C060B, // 00F1 GETIDX R11 R3 R11 - 0x9810140B, // 00F2 SETIDX R4 R10 R11 - 0x002C1505, // 00F3 ADD R11 R10 K5 - 0x08301118, // 00F4 MUL R12 R8 K24 - 0x00301905, // 00F5 ADD R12 R12 K5 - 0x9430060C, // 00F6 GETIDX R12 R3 R12 - 0x9810160C, // 00F7 SETIDX R4 R11 R12 - 0x002C1519, // 00F8 ADD R11 R10 K25 - 0x08301118, // 00F9 MUL R12 R8 K24 - 0x00301919, // 00FA ADD R12 R12 K25 - 0x9430060C, // 00FB GETIDX R12 R3 R12 - 0x9810160C, // 00FC SETIDX R4 R11 R12 - 0x5429FFFE, // 00FD LDINT R10 -1 - 0x0824120A, // 00FE MUL R9 R9 R10 - 0x00201105, // 00FF ADD R8 R8 K5 - 0x7001FF78, // 0100 JMP #007A - 0x80000000, // 0101 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: pixel_count -********************************************************************/ -be_local_closure(class_Leds_matrix_pixel_count, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_pixel_count, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040107, // 0000 GETMBR R1 R0 K7 - 0x88080108, // 0001 GETMBR R2 R0 K8 - 0x08040202, // 0002 MUL R1 R1 R2 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_pixel_color -********************************************************************/ -be_local_closure(class_Leds_matrix_set_pixel_color, /* name */ - be_nested_proto( - 9, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_set_pixel_color, - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0x4C100000, // 0000 LDNIL R4 - 0x1C100604, // 0001 EQ R4 R3 R4 - 0x78120001, // 0002 JMPF R4 #0005 - 0x88100100, // 0003 GETMBR R4 R0 K0 - 0x880C0903, // 0004 GETMBR R3 R4 K3 - 0x88100100, // 0005 GETMBR R4 R0 K0 - 0x8C100906, // 0006 GETMET R4 R4 K6 - 0x88180109, // 0007 GETMBR R6 R0 K9 - 0x00180206, // 0008 ADD R6 R1 R6 - 0x5C1C0400, // 0009 MOVE R7 R2 - 0x5C200600, // 000A MOVE R8 R3 - 0x7C100800, // 000B CALL R4 4 - 0x80000000, // 000C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: pixels_buffer -********************************************************************/ -be_local_closure(class_Leds_matrix_pixels_buffer, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_pixels_buffer, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040311, // 0001 GETMET R1 R1 K17 - 0x7C040200, // 0002 CALL R1 1 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: Leds_matrix -********************************************************************/ -be_local_class(Leds_matrix, - 7, - NULL, - be_nested_map(26, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(is_dirty, -1), be_const_closure(class_Leds_matrix_is_dirty_closure) }, - { be_const_key(pixels_buffer, -1), be_const_closure(class_Leds_matrix_pixels_buffer_closure) }, - { be_const_key(set_matrix_pixel_color, 10), be_const_closure(class_Leds_matrix_set_matrix_pixel_color_closure) }, - { be_const_key(can_show, -1), be_const_closure(class_Leds_matrix_can_show_closure) }, - { be_const_key(offset, -1), be_const_var(1) }, - { be_const_key(set_bytes, 15), be_const_closure(class_Leds_matrix_set_bytes_closure) }, - { be_const_key(show, -1), be_const_closure(class_Leds_matrix_show_closure) }, - { be_const_key(alternate, -1), be_const_var(4) }, - { be_const_key(set_pixel_color, -1), be_const_closure(class_Leds_matrix_set_pixel_color_closure) }, - { be_const_key(pixel_count, -1), be_const_closure(class_Leds_matrix_pixel_count_closure) }, - { be_const_key(w, -1), be_const_var(3) }, - { be_const_key(dirty, 24), be_const_closure(class_Leds_matrix_dirty_closure) }, - { be_const_key(get_alternate, 13), be_const_closure(class_Leds_matrix_get_alternate_closure) }, - { be_const_key(get_pixel_color, -1), be_const_closure(class_Leds_matrix_get_pixel_color_closure) }, - { be_const_key(pix_size, -1), be_const_var(6) }, - { be_const_key(strip, -1), be_const_var(0) }, - { be_const_key(clear_to, 21), be_const_closure(class_Leds_matrix_clear_to_closure) }, - { be_const_key(init, -1), be_const_closure(class_Leds_matrix_init_closure) }, - { be_const_key(set_alternate, 8), be_const_closure(class_Leds_matrix_set_alternate_closure) }, - { be_const_key(pix_buffer, 17), be_const_var(5) }, - { be_const_key(clear, -1), be_const_closure(class_Leds_matrix_clear_closure) }, - { be_const_key(begin, -1), be_const_closure(class_Leds_matrix_begin_closure) }, - { be_const_key(scroll, -1), be_const_closure(class_Leds_matrix_scroll_closure) }, - { be_const_key(h, 9), be_const_var(2) }, - { be_const_key(pixel_offset, -1), be_const_closure(class_Leds_matrix_pixel_offset_closure) }, - { be_const_key(pixel_size, 1), be_const_closure(class_Leds_matrix_pixel_size_closure) }, - })), - (bstring*) &be_const_str_Leds_matrix -); -// compact class 'Leds' ktab size: 39, total: 74 (saved 280 bytes) -static const bvalue be_ktab_class_Leds[39] = { - /* K0 */ be_nested_str(leds), - /* K1 */ be_const_int(0), - /* K2 */ be_nested_str(value_error), - /* K3 */ be_nested_str(out_X20of_X20range), - /* K4 */ be_const_class(be_class_Leds_segment), - /* K5 */ be_nested_str(gamma), - /* K6 */ be_const_class(be_class_Leds), - /* K7 */ be_nested_str(Leds), - /* K8 */ be_nested_str(create_matrix), - /* K9 */ be_nested_str(call_native), - /* K10 */ be_nested_str(pixel_size), - /* K11 */ be_nested_str(pixel_count), - /* K12 */ be_nested_str(_change_buffer), - /* K13 */ be_nested_str(animate), - /* K14 */ be_const_int(2), - /* K15 */ be_nested_str(bri), - /* K16 */ be_nested_str(to_gamma), - /* K17 */ be_nested_str(clear_to), - /* K18 */ be_nested_str(show), - /* K19 */ be_nested_str(apply_bri_gamma), - /* K20 */ be_const_int(1), - /* K21 */ be_const_class(be_class_Leds_matrix), - /* K22 */ be_const_int(3), - /* K23 */ be_nested_str(gpio), - /* K24 */ be_nested_str(pin), - /* K25 */ be_nested_str(WS2812), - /* K26 */ be_nested_str(ctor), - /* K27 */ be_nested_str(light), - /* K28 */ be_nested_str(get), - /* K29 */ be_nested_str(global), - /* K30 */ be_nested_str(contains), - /* K31 */ be_nested_str(_lhw), - /* K32 */ be_nested_str(find), - /* K33 */ be_nested_str(number_X20of_X20leds_X20do_X20not_X20match_X20with_X20previous_X20instanciation_X20_X25s_X20vs_X20_X25s), - /* K34 */ be_nested_str(_p), - /* K35 */ be_nested_str(begin), - /* K36 */ be_nested_str(internal_error), - /* K37 */ be_nested_str(couldn_X27t_X20not_X20initialize_X20noepixelbus), - /* K38 */ be_nested_str(WS2812_GRB), -}; - - -extern const bclass be_class_Leds; - -/******************************************************************** -** Solidified function: create_segment -********************************************************************/ -be_local_closure(class_Leds_create_segment, /* name */ - be_nested_proto( - 8, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_create_segment, - &be_const_str_solidified, - ( &(const binstruction[23]) { /* code */ - 0x600C0009, // 0000 GETGBL R3 G9 - 0x5C100200, // 0001 MOVE R4 R1 - 0x7C0C0200, // 0002 CALL R3 1 - 0x60100009, // 0003 GETGBL R4 G9 - 0x5C140400, // 0004 MOVE R5 R2 - 0x7C100200, // 0005 CALL R4 1 - 0x000C0604, // 0006 ADD R3 R3 R4 - 0x88100100, // 0007 GETMBR R4 R0 K0 - 0x240C0604, // 0008 GT R3 R3 R4 - 0x740E0003, // 0009 JMPT R3 #000E - 0x140C0301, // 000A LT R3 R1 K1 - 0x740E0001, // 000B JMPT R3 #000E - 0x140C0501, // 000C LT R3 R2 K1 - 0x780E0000, // 000D JMPF R3 #000F - 0xB0060503, // 000E RAISE 1 K2 K3 - 0x580C0004, // 000F LDCONST R3 K4 - 0xB4000004, // 0010 CLASS K4 - 0x5C100600, // 0011 MOVE R4 R3 - 0x5C140000, // 0012 MOVE R5 R0 - 0x5C180200, // 0013 MOVE R6 R1 - 0x5C1C0400, // 0014 MOVE R7 R2 - 0x7C100600, // 0015 CALL R4 3 - 0x80040800, // 0016 RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_gamma -********************************************************************/ -be_local_closure(class_Leds_get_gamma, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_get_gamma, - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040105, // 0000 GETMBR R1 R0 K5 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: matrix -********************************************************************/ -be_local_closure(class_Leds_matrix, /* name */ - be_nested_proto( - 11, /* nstack */ - 4, /* argc */ - 12, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_matrix, - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x58100006, // 0000 LDCONST R4 K6 - 0xB8160E00, // 0001 GETNGBL R5 K7 - 0x08180001, // 0002 MUL R6 R0 R1 - 0x5C1C0400, // 0003 MOVE R7 R2 - 0x5C200600, // 0004 MOVE R8 R3 - 0x7C140600, // 0005 CALL R5 3 - 0x8C180B08, // 0006 GETMET R6 R5 K8 - 0x5C200000, // 0007 MOVE R8 R0 - 0x5C240200, // 0008 MOVE R9 R1 - 0x58280001, // 0009 LDCONST R10 K1 - 0x7C180800, // 000A CALL R6 4 - 0x80040C00, // 000B RET 1 R6 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: pixels_buffer -********************************************************************/ -be_local_closure(class_Leds_pixels_buffer, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_pixels_buffer, - &be_const_str_solidified, - ( &(const binstruction[27]) { /* code */ - 0x8C080109, // 0000 GETMET R2 R0 K9 - 0x54120005, // 0001 LDINT R4 6 - 0x7C080400, // 0002 CALL R2 2 - 0x8C0C010A, // 0003 GETMET R3 R0 K10 - 0x7C0C0200, // 0004 CALL R3 1 - 0x8C10010B, // 0005 GETMET R4 R0 K11 - 0x7C100200, // 0006 CALL R4 1 - 0x080C0604, // 0007 MUL R3 R3 R4 - 0x4C100000, // 0008 LDNIL R4 - 0x1C100204, // 0009 EQ R4 R1 R4 - 0x74120004, // 000A JMPT R4 #0010 - 0x6010000C, // 000B GETGBL R4 G12 - 0x5C140400, // 000C MOVE R5 R2 - 0x7C100200, // 000D CALL R4 1 - 0x20100803, // 000E NE R4 R4 R3 - 0x78120005, // 000F JMPF R4 #0016 - 0x60100015, // 0010 GETGBL R4 G21 - 0x5C140400, // 0011 MOVE R5 R2 - 0x5C180600, // 0012 MOVE R6 R3 - 0x7C100400, // 0013 CALL R4 2 - 0x80040800, // 0014 RET 1 R4 - 0x70020003, // 0015 JMP #001A - 0x8C10030C, // 0016 GETMET R4 R1 K12 - 0x5C180400, // 0017 MOVE R6 R2 - 0x7C100400, // 0018 CALL R4 2 - 0x80040200, // 0019 RET 1 R1 - 0x80000000, // 001A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_animate -********************************************************************/ -be_local_closure(class_Leds_get_animate, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_get_animate, - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x8804010D, // 0000 GETMBR R1 R0 K13 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: show -********************************************************************/ -be_local_closure(class_Leds_show, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_show, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x8C040109, // 0000 GETMET R1 R0 K9 - 0x580C000E, // 0001 LDCONST R3 K14 - 0x7C040400, // 0002 CALL R1 2 - 0x80000000, // 0003 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_pixel_color -********************************************************************/ -be_local_closure(class_Leds_set_pixel_color, /* name */ - be_nested_proto( - 12, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_set_pixel_color, - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0x4C100000, // 0000 LDNIL R4 - 0x1C100604, // 0001 EQ R4 R3 R4 - 0x78120000, // 0002 JMPF R4 #0004 - 0x880C010F, // 0003 GETMBR R3 R0 K15 - 0x8C100109, // 0004 GETMET R4 R0 K9 - 0x541A0009, // 0005 LDINT R6 10 - 0x5C1C0200, // 0006 MOVE R7 R1 - 0x8C200110, // 0007 GETMET R8 R0 K16 - 0x5C280400, // 0008 MOVE R10 R2 - 0x5C2C0600, // 0009 MOVE R11 R3 - 0x7C200600, // 000A CALL R8 3 - 0x7C100800, // 000B CALL R4 4 - 0x80000000, // 000C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: is_dirty -********************************************************************/ -be_local_closure(class_Leds_is_dirty, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_is_dirty, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x8C040109, // 0000 GETMET R1 R0 K9 - 0x540E0003, // 0001 LDINT R3 4 - 0x7C040400, // 0002 CALL R1 2 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: clear -********************************************************************/ -be_local_closure(class_Leds_clear, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_clear, - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x8C040111, // 0000 GETMET R1 R0 K17 - 0x580C0001, // 0001 LDCONST R3 K1 - 0x7C040400, // 0002 CALL R1 2 - 0x8C040112, // 0003 GETMET R1 R0 K18 - 0x7C040200, // 0004 CALL R1 1 - 0x80000000, // 0005 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: pixel_size -********************************************************************/ -be_local_closure(class_Leds_pixel_size, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_pixel_size, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x8C040109, // 0000 GETMET R1 R0 K9 - 0x540E0006, // 0001 LDINT R3 7 - 0x7C040400, // 0002 CALL R1 2 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: pixel_count -********************************************************************/ -be_local_closure(class_Leds_pixel_count, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_pixel_count, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x8C040109, // 0000 GETMET R1 R0 K9 - 0x540E0007, // 0001 LDINT R3 8 - 0x7C040400, // 0002 CALL R1 2 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: to_gamma -********************************************************************/ -be_local_closure(class_Leds_to_gamma, /* name */ - be_nested_proto( - 8, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_to_gamma, - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0x4C0C0000, // 0000 LDNIL R3 - 0x1C0C0403, // 0001 EQ R3 R2 R3 - 0x780E0000, // 0002 JMPF R3 #0004 - 0x8808010F, // 0003 GETMBR R2 R0 K15 - 0x8C0C0113, // 0004 GETMET R3 R0 K19 - 0x5C140200, // 0005 MOVE R5 R1 - 0x5C180400, // 0006 MOVE R6 R2 - 0x881C0105, // 0007 GETMBR R7 R0 K5 - 0x7C0C0800, // 0008 CALL R3 4 - 0x80040600, // 0009 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: begin -********************************************************************/ -be_local_closure(class_Leds_begin, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_begin, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x8C040109, // 0000 GETMET R1 R0 K9 - 0x580C0014, // 0001 LDCONST R3 K20 - 0x7C040400, // 0002 CALL R1 2 - 0x80000000, // 0003 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: create_matrix -********************************************************************/ -be_local_closure(class_Leds_create_matrix, /* name */ - be_nested_proto( - 10, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_create_matrix, - &be_const_str_solidified, - ( &(const binstruction[37]) { /* code */ - 0x60100009, // 0000 GETGBL R4 G9 - 0x5C140600, // 0001 MOVE R5 R3 - 0x7C100200, // 0002 CALL R4 1 - 0x5C0C0800, // 0003 MOVE R3 R4 - 0x60100009, // 0004 GETGBL R4 G9 - 0x5C140200, // 0005 MOVE R5 R1 - 0x7C100200, // 0006 CALL R4 1 - 0x5C040800, // 0007 MOVE R1 R4 - 0x60100009, // 0008 GETGBL R4 G9 - 0x5C140400, // 0009 MOVE R5 R2 - 0x7C100200, // 000A CALL R4 1 - 0x5C080800, // 000B MOVE R2 R4 - 0x4C100000, // 000C LDNIL R4 - 0x1C100604, // 000D EQ R4 R3 R4 - 0x78120000, // 000E JMPF R4 #0010 - 0x580C0001, // 000F LDCONST R3 K1 - 0x08100202, // 0010 MUL R4 R1 R2 - 0x00100803, // 0011 ADD R4 R4 R3 - 0x88140100, // 0012 GETMBR R5 R0 K0 - 0x24100805, // 0013 GT R4 R4 R5 - 0x74120005, // 0014 JMPT R4 #001B - 0x14100501, // 0015 LT R4 R2 K1 - 0x74120003, // 0016 JMPT R4 #001B - 0x14100301, // 0017 LT R4 R1 K1 - 0x74120001, // 0018 JMPT R4 #001B - 0x14100701, // 0019 LT R4 R3 K1 - 0x78120000, // 001A JMPF R4 #001C - 0xB0060503, // 001B RAISE 1 K2 K3 - 0x58100015, // 001C LDCONST R4 K21 - 0xB4000015, // 001D CLASS K21 - 0x5C140800, // 001E MOVE R5 R4 - 0x5C180000, // 001F MOVE R6 R0 - 0x5C1C0200, // 0020 MOVE R7 R1 - 0x5C200400, // 0021 MOVE R8 R2 - 0x5C240600, // 0022 MOVE R9 R3 - 0x7C140800, // 0023 CALL R5 4 - 0x80040A00, // 0024 RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: dirty -********************************************************************/ -be_local_closure(class_Leds_dirty, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_dirty, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x8C040109, // 0000 GETMET R1 R0 K9 - 0x540E0004, // 0001 LDINT R3 5 - 0x7C040400, // 0002 CALL R1 2 - 0x80000000, // 0003 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_bri -********************************************************************/ -be_local_closure(class_Leds_set_bri, /* name */ - be_nested_proto( - 3, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_set_bri, - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x14080301, // 0000 LT R2 R1 K1 - 0x780A0000, // 0001 JMPF R2 #0003 - 0x58040001, // 0002 LDCONST R1 K1 - 0x540A00FE, // 0003 LDINT R2 255 - 0x24080202, // 0004 GT R2 R1 R2 - 0x780A0000, // 0005 JMPF R2 #0007 - 0x540600FE, // 0006 LDINT R1 255 - 0x90021E01, // 0007 SETMBR R0 K15 R1 - 0x80000000, // 0008 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: can_show -********************************************************************/ -be_local_closure(class_Leds_can_show, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_can_show, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x8C040109, // 0000 GETMET R1 R0 K9 - 0x580C0016, // 0001 LDCONST R3 K22 - 0x7C040400, // 0002 CALL R1 2 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_animate -********************************************************************/ -be_local_closure(class_Leds_set_animate, /* name */ - be_nested_proto( - 2, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_set_animate, - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x90021A01, // 0000 SETMBR R0 K13 R1 - 0x80000000, // 0001 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_bri -********************************************************************/ -be_local_closure(class_Leds_get_bri, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_get_bri, - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x8804010F, // 0000 GETMBR R1 R0 K15 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: clear_to -********************************************************************/ -be_local_closure(class_Leds_clear_to, /* name */ - be_nested_proto( - 12, /* nstack */ - 5, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_clear_to, - &be_const_str_solidified, - ( &(const binstruction[28]) { /* code */ - 0x4C140000, // 0000 LDNIL R5 - 0x1C140405, // 0001 EQ R5 R2 R5 - 0x78160000, // 0002 JMPF R5 #0004 - 0x8808010F, // 0003 GETMBR R2 R0 K15 - 0x4C140000, // 0004 LDNIL R5 - 0x20140605, // 0005 NE R5 R3 R5 - 0x7816000C, // 0006 JMPF R5 #0014 - 0x4C140000, // 0007 LDNIL R5 - 0x20140805, // 0008 NE R5 R4 R5 - 0x78160009, // 0009 JMPF R5 #0014 - 0x8C140109, // 000A GETMET R5 R0 K9 - 0x541E0008, // 000B LDINT R7 9 - 0x8C200110, // 000C GETMET R8 R0 K16 - 0x5C280200, // 000D MOVE R10 R1 - 0x5C2C0400, // 000E MOVE R11 R2 - 0x7C200600, // 000F CALL R8 3 - 0x5C240600, // 0010 MOVE R9 R3 - 0x5C280800, // 0011 MOVE R10 R4 - 0x7C140A00, // 0012 CALL R5 5 - 0x70020006, // 0013 JMP #001B - 0x8C140109, // 0014 GETMET R5 R0 K9 - 0x541E0008, // 0015 LDINT R7 9 - 0x8C200110, // 0016 GETMET R8 R0 K16 - 0x5C280200, // 0017 MOVE R10 R1 - 0x5C2C0400, // 0018 MOVE R11 R2 - 0x7C200600, // 0019 CALL R8 3 - 0x7C140600, // 001A CALL R5 3 - 0x80000000, // 001B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: pixel_offset -********************************************************************/ -be_local_closure(class_Leds_pixel_offset, /* name */ - be_nested_proto( - 1, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_pixel_offset, - &be_const_str_solidified, - ( &(const binstruction[ 1]) { /* code */ - 0x80060200, // 0000 RET 1 K1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_pixel_color -********************************************************************/ -be_local_closure(class_Leds_get_pixel_color, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_get_pixel_color, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x8C080109, // 0000 GETMET R2 R0 K9 - 0x5412000A, // 0001 LDINT R4 11 - 0x5C140200, // 0002 MOVE R5 R1 - 0x7C080600, // 0003 CALL R2 3 - 0x80040400, // 0004 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_Leds_init, /* name */ - be_nested_proto( - 12, /* nstack */ - 5, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[90]) { /* code */ - 0xA4162E00, // 0000 IMPORT R5 K23 - 0x50180200, // 0001 LDBOOL R6 1 0 - 0x90020A06, // 0002 SETMBR R0 K5 R6 - 0x4C180000, // 0003 LDNIL R6 - 0x1C180206, // 0004 EQ R6 R1 R6 - 0x741A0008, // 0005 JMPT R6 #000F - 0x4C180000, // 0006 LDNIL R6 - 0x1C180406, // 0007 EQ R6 R2 R6 - 0x741A0005, // 0008 JMPT R6 #000F - 0x8C180B18, // 0009 GETMET R6 R5 K24 - 0x88200B19, // 000A GETMBR R8 R5 K25 - 0x58240001, // 000B LDCONST R9 K1 - 0x7C180600, // 000C CALL R6 3 - 0x1C180406, // 000D EQ R6 R2 R6 - 0x781A000A, // 000E JMPF R6 #001A - 0x8C18011A, // 000F GETMET R6 R0 K26 - 0x7C180200, // 0010 CALL R6 1 - 0x8C18010B, // 0011 GETMET R6 R0 K11 - 0x7C180200, // 0012 CALL R6 1 - 0x90020006, // 0013 SETMBR R0 K0 R6 - 0xA41A3600, // 0014 IMPORT R6 K27 - 0x8C1C0D1C, // 0015 GETMET R7 R6 K28 - 0x7C1C0200, // 0016 CALL R7 1 - 0x941C0F0F, // 0017 GETIDX R7 R7 K15 - 0x90021E07, // 0018 SETMBR R0 K15 R7 - 0x70020039, // 0019 JMP #0054 - 0x60180009, // 001A GETGBL R6 G9 - 0x5C1C0200, // 001B MOVE R7 R1 - 0x7C180200, // 001C CALL R6 1 - 0x5C040C00, // 001D MOVE R1 R6 - 0x90020001, // 001E SETMBR R0 K0 R1 - 0x541A007E, // 001F LDINT R6 127 - 0x90021E06, // 0020 SETMBR R0 K15 R6 - 0xB81A3A00, // 0021 GETNGBL R6 K29 - 0x8C180D1E, // 0022 GETMET R6 R6 K30 - 0x5820001F, // 0023 LDCONST R8 K31 - 0x7C180400, // 0024 CALL R6 2 - 0x741A0003, // 0025 JMPT R6 #002A - 0xB81A3A00, // 0026 GETNGBL R6 K29 - 0x601C0013, // 0027 GETGBL R7 G19 - 0x7C1C0000, // 0028 CALL R7 0 - 0x901A3E07, // 0029 SETMBR R6 K31 R7 - 0xB81A3A00, // 002A GETNGBL R6 K29 - 0x88180D1F, // 002B GETMBR R6 R6 K31 - 0x8C180D20, // 002C GETMET R6 R6 K32 - 0x5C200200, // 002D MOVE R8 R1 - 0x7C180400, // 002E CALL R6 2 - 0x4C1C0000, // 002F LDNIL R7 - 0x20180C07, // 0030 NE R6 R6 R7 - 0x781A0016, // 0031 JMPF R6 #0049 - 0xB81A3A00, // 0032 GETNGBL R6 K29 - 0x88180D1F, // 0033 GETMBR R6 R6 K31 - 0x8C180D20, // 0034 GETMET R6 R6 K32 - 0x5C200200, // 0035 MOVE R8 R1 - 0x7C180400, // 0036 CALL R6 2 - 0x881C0100, // 0037 GETMBR R7 R0 K0 - 0x88200D00, // 0038 GETMBR R8 R6 K0 - 0x201C0E08, // 0039 NE R7 R7 R8 - 0x781E0005, // 003A JMPF R7 #0041 - 0x601C0018, // 003B GETGBL R7 G24 - 0x58200021, // 003C LDCONST R8 K33 - 0x88240100, // 003D GETMBR R9 R0 K0 - 0x88280D00, // 003E GETMBR R10 R6 K0 - 0x7C1C0600, // 003F CALL R7 3 - 0xB0060407, // 0040 RAISE 1 K2 R7 - 0x881C0D22, // 0041 GETMBR R7 R6 K34 - 0x90024407, // 0042 SETMBR R0 K34 R7 - 0x881C0D0D, // 0043 GETMBR R7 R6 K13 - 0x90021A07, // 0044 SETMBR R0 K13 R7 - 0xB81E3A00, // 0045 GETNGBL R7 K29 - 0x881C0F1F, // 0046 GETMBR R7 R7 K31 - 0x981C0200, // 0047 SETIDX R7 R1 R0 - 0x7002000A, // 0048 JMP #0054 - 0x8C18011A, // 0049 GETMET R6 R0 K26 - 0x5C200200, // 004A MOVE R8 R1 - 0x5C240400, // 004B MOVE R9 R2 - 0x5C280600, // 004C MOVE R10 R3 - 0x5C2C0800, // 004D MOVE R11 R4 - 0x7C180A00, // 004E CALL R6 5 - 0xB81A3A00, // 004F GETNGBL R6 K29 - 0x88180D1F, // 0050 GETMBR R6 R6 K31 - 0x98180200, // 0051 SETIDX R6 R1 R0 - 0x8C180123, // 0052 GETMET R6 R0 K35 - 0x7C180200, // 0053 CALL R6 1 - 0x88180122, // 0054 GETMBR R6 R0 K34 - 0x4C1C0000, // 0055 LDNIL R7 - 0x1C180C07, // 0056 EQ R6 R6 R7 - 0x781A0000, // 0057 JMPF R6 #0059 - 0xB0064925, // 0058 RAISE 1 K36 K37 - 0x80000000, // 0059 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: ctor -********************************************************************/ -be_local_closure(class_Leds_ctor, /* name */ - be_nested_proto( - 12, /* nstack */ - 5, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_ctor, - &be_const_str_solidified, - ( &(const binstruction[19]) { /* code */ - 0x4C140000, // 0000 LDNIL R5 - 0x1C140405, // 0001 EQ R5 R2 R5 - 0x78160003, // 0002 JMPF R5 #0007 - 0x8C140109, // 0003 GETMET R5 R0 K9 - 0x581C0001, // 0004 LDCONST R7 K1 - 0x7C140400, // 0005 CALL R5 2 - 0x7002000A, // 0006 JMP #0012 - 0x4C140000, // 0007 LDNIL R5 - 0x1C140605, // 0008 EQ R5 R3 R5 - 0x78160000, // 0009 JMPF R5 #000B - 0x880C0126, // 000A GETMBR R3 R0 K38 - 0x8C140109, // 000B GETMET R5 R0 K9 - 0x581C0001, // 000C LDCONST R7 K1 - 0x5C200200, // 000D MOVE R8 R1 - 0x5C240400, // 000E MOVE R9 R2 - 0x5C280600, // 000F MOVE R10 R3 - 0x5C2C0800, // 0010 MOVE R11 R4 - 0x7C140C00, // 0011 CALL R5 6 - 0x80000000, // 0012 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_gamma -********************************************************************/ -be_local_closure(class_Leds_set_gamma, /* name */ - be_nested_proto( - 4, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Leds, /* shared constants */ - &be_const_str_set_gamma, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x60080017, // 0000 GETGBL R2 G23 - 0x5C0C0200, // 0001 MOVE R3 R1 - 0x7C080200, // 0002 CALL R2 1 - 0x90020A02, // 0003 SETMBR R0 K5 R2 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: Leds -********************************************************************/ -extern const bclass be_class_Leds_ntv; -be_local_class(Leds, - 4, - &be_class_Leds_ntv, - be_nested_map(29, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(pixels_buffer, -1), be_const_closure(class_Leds_pixels_buffer_closure) }, - { be_const_key(get_gamma, 26), be_const_closure(class_Leds_get_gamma_closure) }, - { be_const_key(clear, -1), be_const_closure(class_Leds_clear_closure) }, - { be_const_key(matrix, 13), be_const_static_closure(class_Leds_matrix_closure) }, - { be_const_key(init, 23), be_const_closure(class_Leds_init_closure) }, - { be_const_key(get_animate, -1), be_const_closure(class_Leds_get_animate_closure) }, - { be_const_key(get_pixel_color, 12), be_const_closure(class_Leds_get_pixel_color_closure) }, - { be_const_key(set_pixel_color, -1), be_const_closure(class_Leds_set_pixel_color_closure) }, - { be_const_key(animate, -1), be_const_var(3) }, - { be_const_key(is_dirty, -1), be_const_closure(class_Leds_is_dirty_closure) }, - { be_const_key(create_segment, 4), be_const_closure(class_Leds_create_segment_closure) }, - { be_const_key(pixel_offset, -1), be_const_closure(class_Leds_pixel_offset_closure) }, - { be_const_key(clear_to, -1), be_const_closure(class_Leds_clear_to_closure) }, - { be_const_key(begin, 0), be_const_closure(class_Leds_begin_closure) }, - { be_const_key(set_animate, -1), be_const_closure(class_Leds_set_animate_closure) }, - { be_const_key(can_show, 24), be_const_closure(class_Leds_can_show_closure) }, - { be_const_key(create_matrix, -1), be_const_closure(class_Leds_create_matrix_closure) }, - { be_const_key(dirty, -1), be_const_closure(class_Leds_dirty_closure) }, - { be_const_key(set_bri, -1), be_const_closure(class_Leds_set_bri_closure) }, - { be_const_key(leds, 15), be_const_var(1) }, - { be_const_key(gamma, -1), be_const_var(0) }, - { be_const_key(bri, 14), be_const_var(2) }, - { be_const_key(get_bri, 11), be_const_closure(class_Leds_get_bri_closure) }, - { be_const_key(to_gamma, 2), be_const_closure(class_Leds_to_gamma_closure) }, - { be_const_key(pixel_count, -1), be_const_closure(class_Leds_pixel_count_closure) }, - { be_const_key(show, 6), be_const_closure(class_Leds_show_closure) }, - { be_const_key(pixel_size, -1), be_const_closure(class_Leds_pixel_size_closure) }, - { be_const_key(ctor, -1), be_const_closure(class_Leds_ctor_closure) }, - { be_const_key(set_gamma, -1), be_const_closure(class_Leds_set_gamma_closure) }, - })), - (bstring*) &be_const_str_Leds -); -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_lv_tasmota.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_lv_tasmota.h deleted file mode 100644 index addf5c8cc..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_lv_tasmota.h +++ /dev/null @@ -1,531 +0,0 @@ -/* Solidification of lv_tasmota.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(module_lv_tasmota_init, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[37]) { /* constants */ - /* K0 */ be_nested_str_weak(lv), - /* K1 */ be_nested_str_weak(start), - /* K2 */ be_nested_str_weak(_constants), - /* K3 */ be_nested_str_weak(splash_init), - /* K4 */ be_nested_str_weak(splash_remove), - /* K5 */ be_nested_str_weak(splash), - /* K6 */ be_nested_str_weak(_splash), - /* K7 */ be_nested_str_weak(font_montserrat), - /* K8 */ be_nested_str_weak(montserrat_font), - /* K9 */ be_nested_str_weak(font_seg7), - /* K10 */ be_nested_str_weak(seg7_font), - /* K11 */ be_nested_str_weak(font_embedded), - /* K12 */ be_nested_str_weak(load_freetype_font), - /* K13 */ be_nested_str_weak(register_button_encoder), - /* K14 */ be_nested_str_weak(screenshot), - /* K15 */ be_nested_str_weak(set_paint_cb), - /* K16 */ be_nested_str_weak(version), - /* K17 */ be_nested_str_weak(version_major), - /* K18 */ be_nested_str_weak(clock), - /* K19 */ be_nested_str_weak(lv_clock), - /* K20 */ be_nested_str_weak(clock_icon), - /* K21 */ be_nested_str_weak(lv_clock_icon), - /* K22 */ be_nested_str_weak(signal_arcs), - /* K23 */ be_nested_str_weak(lv_signal_arcs), - /* K24 */ be_nested_str_weak(signal_bars), - /* K25 */ be_nested_str_weak(lv_signal_bars), - /* K26 */ be_nested_str_weak(wifi_arcs_icon), - /* K27 */ be_nested_str_weak(lv_wifi_arcs_icon), - /* K28 */ be_nested_str_weak(wifi_arcs), - /* K29 */ be_nested_str_weak(lv_wifi_arcs), - /* K30 */ be_nested_str_weak(wifi_bars_icon), - /* K31 */ be_nested_str_weak(lv_wifi_bars_icon), - /* K32 */ be_nested_str_weak(wifi_bars), - /* K33 */ be_nested_str_weak(lv_wifi_bars), - /* K34 */ be_nested_str_weak(tasmota), - /* K35 */ be_nested_str_weak(get_option), - /* K36 */ be_const_int(0), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[60]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x88080101, // 0001 GETMBR R2 R0 K1 - 0x90060202, // 0002 SETMBR R1 K1 R2 - 0x88080102, // 0003 GETMBR R2 R0 K2 - 0x90060402, // 0004 SETMBR R1 K2 R2 - 0x88080103, // 0005 GETMBR R2 R0 K3 - 0x90060602, // 0006 SETMBR R1 K3 R2 - 0x88080104, // 0007 GETMBR R2 R0 K4 - 0x90060802, // 0008 SETMBR R1 K4 R2 - 0x88080105, // 0009 GETMBR R2 R0 K5 - 0x90060A02, // 000A SETMBR R1 K5 R2 - 0x4C080000, // 000B LDNIL R2 - 0x90060C02, // 000C SETMBR R1 K6 R2 - 0x88080107, // 000D GETMBR R2 R0 K7 - 0x90060E02, // 000E SETMBR R1 K7 R2 - 0x88080107, // 000F GETMBR R2 R0 K7 - 0x90061002, // 0010 SETMBR R1 K8 R2 - 0x88080109, // 0011 GETMBR R2 R0 K9 - 0x90061202, // 0012 SETMBR R1 K9 R2 - 0x88080109, // 0013 GETMBR R2 R0 K9 - 0x90061402, // 0014 SETMBR R1 K10 R2 - 0x8808010B, // 0015 GETMBR R2 R0 K11 - 0x90061602, // 0016 SETMBR R1 K11 R2 - 0x8808010C, // 0017 GETMBR R2 R0 K12 - 0x90061802, // 0018 SETMBR R1 K12 R2 - 0x8808010D, // 0019 GETMBR R2 R0 K13 - 0x90061A02, // 001A SETMBR R1 K13 R2 - 0x8808010E, // 001B GETMBR R2 R0 K14 - 0x90061C02, // 001C SETMBR R1 K14 R2 - 0x8808010F, // 001D GETMBR R2 R0 K15 - 0x90061E02, // 001E SETMBR R1 K15 R2 - 0x8C080311, // 001F GETMET R2 R1 K17 - 0x7C080200, // 0020 CALL R2 1 - 0x90062002, // 0021 SETMBR R1 K16 R2 - 0xB80A2600, // 0022 GETNGBL R2 K19 - 0x90062402, // 0023 SETMBR R1 K18 R2 - 0xB80A2A00, // 0024 GETNGBL R2 K21 - 0x90062802, // 0025 SETMBR R1 K20 R2 - 0xB80A2E00, // 0026 GETNGBL R2 K23 - 0x90062C02, // 0027 SETMBR R1 K22 R2 - 0xB80A3200, // 0028 GETNGBL R2 K25 - 0x90063002, // 0029 SETMBR R1 K24 R2 - 0xB80A3600, // 002A GETNGBL R2 K27 - 0x90063402, // 002B SETMBR R1 K26 R2 - 0xB80A3A00, // 002C GETNGBL R2 K29 - 0x90063802, // 002D SETMBR R1 K28 R2 - 0xB80A3E00, // 002E GETNGBL R2 K31 - 0x90063C02, // 002F SETMBR R1 K30 R2 - 0xB80A4200, // 0030 GETNGBL R2 K33 - 0x90064002, // 0031 SETMBR R1 K32 R2 - 0xB80A4400, // 0032 GETNGBL R2 K34 - 0x8C080523, // 0033 GETMET R2 R2 K35 - 0x54120086, // 0034 LDINT R4 135 - 0x7C080400, // 0035 CALL R2 2 - 0x1C080524, // 0036 EQ R2 R2 K36 - 0x780A0001, // 0037 JMPF R2 #003A - 0x8C080303, // 0038 GETMET R2 R1 K3 - 0x7C080200, // 0039 CALL R2 1 - 0x4C080000, // 003A LDNIL R2 - 0x80040400, // 003B RET 1 R2 - }) - ) -); -/*******************************************************************/ - -// compact class 'splash_runner' ktab size: 8, total: 9 (saved 8 bytes) -static const bvalue be_ktab_class_splash_runner[8] = { - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(add_driver), - /* K2 */ be_nested_str_weak(display), - /* K3 */ be_nested_str_weak(dim), - /* K4 */ be_nested_str_weak(started), - /* K5 */ be_nested_str_weak(remove_driver), - /* K6 */ be_nested_str_weak(lv), - /* K7 */ be_nested_str_weak(splash), -}; - - -extern const bclass be_class_splash_runner; - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_splash_runner_init, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_splash_runner, /* shared constants */ - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x5C0C0000, // 0002 MOVE R3 R0 - 0x7C040400, // 0003 CALL R1 2 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: display -********************************************************************/ -be_local_closure(class_splash_runner_display, /* name */ - be_nested_proto( - 9, /* nstack */ - 5, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_splash_runner, /* shared constants */ - be_str_weak(display), - &be_const_str_solidified, - ( &(const binstruction[14]) { /* code */ - 0xA4160400, // 0000 IMPORT R5 K2 - 0x1C180303, // 0001 EQ R6 R1 K3 - 0x781A0009, // 0002 JMPF R6 #000D - 0x8C180B04, // 0003 GETMET R6 R5 K4 - 0x7C180200, // 0004 CALL R6 1 - 0x781A0006, // 0005 JMPF R6 #000D - 0xB81A0000, // 0006 GETNGBL R6 K0 - 0x8C180D05, // 0007 GETMET R6 R6 K5 - 0x5C200000, // 0008 MOVE R8 R0 - 0x7C180400, // 0009 CALL R6 2 - 0xB81A0C00, // 000A GETNGBL R6 K6 - 0x8C180D07, // 000B GETMET R6 R6 K7 - 0x7C180200, // 000C CALL R6 1 - 0x80000000, // 000D RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: splash_runner -********************************************************************/ -be_local_class(splash_runner, - 0, - NULL, - be_nested_map(2, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(display, -1), be_const_closure(class_splash_runner_display_closure) }, - { be_const_key_weak(init, 0), be_const_closure(class_splash_runner_init_closure) }, - })), - be_str_weak(splash_runner) -); - -/******************************************************************** -** Solidified function: splash_init -********************************************************************/ -be_local_closure(module_lv_tasmota_splash_init, /* name */ - be_nested_proto( - 3, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(display), - /* K1 */ be_nested_str_weak(started), - /* K2 */ be_nested_str_weak(lv), - /* K3 */ be_nested_str_weak(splash), - /* K4 */ be_const_class(be_class_splash_runner), - }), - be_str_weak(splash_init), - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0xA4020000, // 0000 IMPORT R0 K0 - 0x8C040101, // 0001 GETMET R1 R0 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x78060003, // 0003 JMPF R1 #0008 - 0xB8060400, // 0004 GETNGBL R1 K2 - 0x8C040303, // 0005 GETMET R1 R1 K3 - 0x7C040200, // 0006 CALL R1 1 - 0x70020003, // 0007 JMP #000C - 0x58040004, // 0008 LDCONST R1 K4 - 0xB4000004, // 0009 CLASS K4 - 0x5C080200, // 000A MOVE R2 R1 - 0x7C080000, // 000B CALL R2 0 - 0x80000000, // 000C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: splash_remove -********************************************************************/ -be_local_closure(module_lv_tasmota_splash_remove, /* name */ - be_nested_proto( - 3, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(lv), - /* K1 */ be_nested_str_weak(_splash), - /* K2 */ be_nested_str_weak(del), - }), - be_str_weak(splash_remove), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0xB8020000, // 0000 GETNGBL R0 K0 - 0x88000101, // 0001 GETMBR R0 R0 K1 - 0x78020004, // 0002 JMPF R0 #0008 - 0xB8060000, // 0003 GETNGBL R1 K0 - 0x4C080000, // 0004 LDNIL R2 - 0x90060202, // 0005 SETMBR R1 K1 R2 - 0x8C040102, // 0006 GETMET R1 R0 K2 - 0x7C040200, // 0007 CALL R1 1 - 0x80000000, // 0008 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: splash -********************************************************************/ -be_local_closure(module_lv_tasmota_splash, /* name */ - be_nested_proto( - 14, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[43]) { /* constants */ - /* K0 */ be_nested_str_weak(display), - /* K1 */ be_nested_str_weak(started), - /* K2 */ be_nested_str_weak(lv), - /* K3 */ be_nested_str_weak(start), - /* K4 */ be_nested_str_weak(obj), - /* K5 */ be_nested_str_weak(scr_act), - /* K6 */ be_nested_str_weak(montserrat_font), - /* K7 */ be_nested_str_weak(color), - /* K8 */ be_nested_str_weak(COLOR_WHITE), - /* K9 */ be_nested_str_weak(set_style_bg_color), - /* K10 */ be_const_int(0), - /* K11 */ be_nested_str_weak(set_style_radius), - /* K12 */ be_nested_str_weak(set_style_pad_all), - /* K13 */ be_nested_str_weak(set_style_border_width), - /* K14 */ be_nested_str_weak(set_size), - /* K15 */ be_nested_str_weak(pct), - /* K16 */ be_nested_str_weak(refr_pos), - /* K17 */ be_nested_str_weak(refr_size), - /* K18 */ be_nested_str_weak(set_user_data), - /* K19 */ be_const_int(1399876712), - /* K20 */ be_nested_str_weak(img), - /* K21 */ be_nested_str_weak(set_tasmota_logo), - /* K22 */ be_nested_str_weak(set_zoom), - /* K23 */ be_nested_str_weak(set_style_img_recolor_opa), - /* K24 */ be_nested_str_weak(set_style_img_recolor), - /* K25 */ be_nested_str_weak(align), - /* K26 */ be_nested_str_weak(ALIGN_LEFT_MID), - /* K27 */ be_nested_str_weak(label), - /* K28 */ be_nested_str_weak(set_style_text_color), - /* K29 */ be_nested_str_weak(set_text), - /* K30 */ be_nested_str_weak(TASMOTA), - /* K31 */ be_nested_str_weak(get_hor_res), - /* K32 */ be_nested_str_weak(set_style_text_font), - /* K33 */ be_nested_str_weak(set_align), - /* K34 */ be_nested_str_weak(set_x), - /* K35 */ be_nested_str_weak(driver_name), - /* K36 */ be_nested_str_weak(ALIGN_BOTTOM_MID), - /* K37 */ be_const_int(16777215), - /* K38 */ be_nested_str_weak(refr_now), - /* K39 */ be_nested_str_weak(_splash), - /* K40 */ be_nested_str_weak(tasmota), - /* K41 */ be_nested_str_weak(set_timer), - /* K42 */ be_nested_str_weak(splash_remove), - }), - be_str_weak(splash), - &be_const_str_solidified, - ( &(const binstruction[165]) { /* code */ - 0xA4020000, // 0000 IMPORT R0 K0 - 0x8C040101, // 0001 GETMET R1 R0 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x74060000, // 0003 JMPT R1 #0005 - 0x80000200, // 0004 RET 0 - 0xB8060400, // 0005 GETNGBL R1 K2 - 0x8C040303, // 0006 GETMET R1 R1 K3 - 0x7C040200, // 0007 CALL R1 1 - 0xB8060400, // 0008 GETNGBL R1 K2 - 0x8C040304, // 0009 GETMET R1 R1 K4 - 0xB80E0400, // 000A GETNGBL R3 K2 - 0x8C0C0705, // 000B GETMET R3 R3 K5 - 0x7C0C0200, // 000C CALL R3 1 - 0x7C040400, // 000D CALL R1 2 - 0xB80A0400, // 000E GETNGBL R2 K2 - 0x8C080506, // 000F GETMET R2 R2 K6 - 0x5412001B, // 0010 LDINT R4 28 - 0x7C080400, // 0011 CALL R2 2 - 0xB80E0400, // 0012 GETNGBL R3 K2 - 0x8C0C0706, // 0013 GETMET R3 R3 K6 - 0x54160013, // 0014 LDINT R5 20 - 0x7C0C0400, // 0015 CALL R3 2 - 0xB8120400, // 0016 GETNGBL R4 K2 - 0x8C100907, // 0017 GETMET R4 R4 K7 - 0xB81A0400, // 0018 GETNGBL R6 K2 - 0x88180D08, // 0019 GETMBR R6 R6 K8 - 0x7C100400, // 001A CALL R4 2 - 0x8C140309, // 001B GETMET R5 R1 K9 - 0xB81E0400, // 001C GETNGBL R7 K2 - 0x8C1C0F07, // 001D GETMET R7 R7 K7 - 0x54260065, // 001E LDINT R9 102 - 0x7C1C0400, // 001F CALL R7 2 - 0x5820000A, // 0020 LDCONST R8 K10 - 0x7C140600, // 0021 CALL R5 3 - 0x8C14030B, // 0022 GETMET R5 R1 K11 - 0x581C000A, // 0023 LDCONST R7 K10 - 0x5820000A, // 0024 LDCONST R8 K10 - 0x7C140600, // 0025 CALL R5 3 - 0x8C14030C, // 0026 GETMET R5 R1 K12 - 0x581C000A, // 0027 LDCONST R7 K10 - 0x5820000A, // 0028 LDCONST R8 K10 - 0x7C140600, // 0029 CALL R5 3 - 0x8C14030D, // 002A GETMET R5 R1 K13 - 0x581C000A, // 002B LDCONST R7 K10 - 0x5820000A, // 002C LDCONST R8 K10 - 0x7C140600, // 002D CALL R5 3 - 0x8C14030E, // 002E GETMET R5 R1 K14 - 0xB81E0400, // 002F GETNGBL R7 K2 - 0x8C1C0F0F, // 0030 GETMET R7 R7 K15 - 0x54260063, // 0031 LDINT R9 100 - 0x7C1C0400, // 0032 CALL R7 2 - 0xB8220400, // 0033 GETNGBL R8 K2 - 0x8C20110F, // 0034 GETMET R8 R8 K15 - 0x542A0063, // 0035 LDINT R10 100 - 0x7C200400, // 0036 CALL R8 2 - 0x7C140600, // 0037 CALL R5 3 - 0x8C140310, // 0038 GETMET R5 R1 K16 - 0x7C140200, // 0039 CALL R5 1 - 0x8C140311, // 003A GETMET R5 R1 K17 - 0x7C140200, // 003B CALL R5 1 - 0x8C140312, // 003C GETMET R5 R1 K18 - 0x581C0013, // 003D LDCONST R7 K19 - 0x7C140400, // 003E CALL R5 2 - 0xB8160400, // 003F GETNGBL R5 K2 - 0x8C140B14, // 0040 GETMET R5 R5 K20 - 0x5C1C0200, // 0041 MOVE R7 R1 - 0x7C140400, // 0042 CALL R5 2 - 0x8C180B15, // 0043 GETMET R6 R5 K21 - 0x7C180200, // 0044 CALL R6 1 - 0x8C180B16, // 0045 GETMET R6 R5 K22 - 0x54220095, // 0046 LDINT R8 150 - 0x7C180400, // 0047 CALL R6 2 - 0x8C180B17, // 0048 GETMET R6 R5 K23 - 0x542200FE, // 0049 LDINT R8 255 - 0x5824000A, // 004A LDCONST R9 K10 - 0x7C180600, // 004B CALL R6 3 - 0x8C180B18, // 004C GETMET R6 R5 K24 - 0x5C200800, // 004D MOVE R8 R4 - 0x5824000A, // 004E LDCONST R9 K10 - 0x7C180600, // 004F CALL R6 3 - 0x8C180B19, // 0050 GETMET R6 R5 K25 - 0xB8220400, // 0051 GETNGBL R8 K2 - 0x8820111A, // 0052 GETMBR R8 R8 K26 - 0x5425FFF3, // 0053 LDINT R9 -12 - 0x5828000A, // 0054 LDCONST R10 K10 - 0x7C180800, // 0055 CALL R6 4 - 0xB81A0400, // 0056 GETNGBL R6 K2 - 0x8C180D1B, // 0057 GETMET R6 R6 K27 - 0x5C200200, // 0058 MOVE R8 R1 - 0x7C180400, // 0059 CALL R6 2 - 0x8C1C0D1C, // 005A GETMET R7 R6 K28 - 0x5C240800, // 005B MOVE R9 R4 - 0x5828000A, // 005C LDCONST R10 K10 - 0x7C1C0600, // 005D CALL R7 3 - 0x8C1C0D1D, // 005E GETMET R7 R6 K29 - 0x5824001E, // 005F LDCONST R9 K30 - 0x7C1C0400, // 0060 CALL R7 2 - 0xB81E0400, // 0061 GETNGBL R7 K2 - 0x8C1C0F1F, // 0062 GETMET R7 R7 K31 - 0x7C1C0200, // 0063 CALL R7 1 - 0x542200C7, // 0064 LDINT R8 200 - 0x281C0E08, // 0065 GE R7 R7 R8 - 0x781E0007, // 0066 JMPF R7 #006F - 0x4C1C0000, // 0067 LDNIL R7 - 0x201C0407, // 0068 NE R7 R2 R7 - 0x781E0003, // 0069 JMPF R7 #006E - 0x8C1C0D20, // 006A GETMET R7 R6 K32 - 0x5C240400, // 006B MOVE R9 R2 - 0x5828000A, // 006C LDCONST R10 K10 - 0x7C1C0600, // 006D CALL R7 3 - 0x70020006, // 006E JMP #0076 - 0x4C1C0000, // 006F LDNIL R7 - 0x201C0607, // 0070 NE R7 R3 R7 - 0x781E0003, // 0071 JMPF R7 #0076 - 0x8C1C0D20, // 0072 GETMET R7 R6 K32 - 0x5C240600, // 0073 MOVE R9 R3 - 0x5828000A, // 0074 LDCONST R10 K10 - 0x7C1C0600, // 0075 CALL R7 3 - 0x8C1C0D21, // 0076 GETMET R7 R6 K33 - 0xB8260400, // 0077 GETNGBL R9 K2 - 0x8824131A, // 0078 GETMBR R9 R9 K26 - 0x7C1C0400, // 0079 CALL R7 2 - 0x8C1C0D22, // 007A GETMET R7 R6 K34 - 0x54260029, // 007B LDINT R9 42 - 0x7C1C0400, // 007C CALL R7 2 - 0x8C1C0123, // 007D GETMET R7 R0 K35 - 0x7C1C0200, // 007E CALL R7 1 - 0x4C200000, // 007F LDNIL R8 - 0x6024000C, // 0080 GETGBL R9 G12 - 0x5C280E00, // 0081 MOVE R10 R7 - 0x7C240200, // 0082 CALL R9 1 - 0x2424130A, // 0083 GT R9 R9 K10 - 0x78260012, // 0084 JMPF R9 #0098 - 0xB8260400, // 0085 GETNGBL R9 K2 - 0x8C24131B, // 0086 GETMET R9 R9 K27 - 0x5C2C0200, // 0087 MOVE R11 R1 - 0x7C240400, // 0088 CALL R9 2 - 0x5C201200, // 0089 MOVE R8 R9 - 0x8C241121, // 008A GETMET R9 R8 K33 - 0xB82E0400, // 008B GETNGBL R11 K2 - 0x882C1724, // 008C GETMBR R11 R11 K36 - 0x7C240400, // 008D CALL R9 2 - 0x8C24111C, // 008E GETMET R9 R8 K28 - 0xB82E0400, // 008F GETNGBL R11 K2 - 0x8C2C1707, // 0090 GETMET R11 R11 K7 - 0x58340025, // 0091 LDCONST R13 K37 - 0x7C2C0400, // 0092 CALL R11 2 - 0x5830000A, // 0093 LDCONST R12 K10 - 0x7C240600, // 0094 CALL R9 3 - 0x8C24111D, // 0095 GETMET R9 R8 K29 - 0x5C2C0E00, // 0096 MOVE R11 R7 - 0x7C240400, // 0097 CALL R9 2 - 0xB8260400, // 0098 GETNGBL R9 K2 - 0x8C241326, // 0099 GETMET R9 R9 K38 - 0x582C000A, // 009A LDCONST R11 K10 - 0x7C240400, // 009B CALL R9 2 - 0xB8260400, // 009C GETNGBL R9 K2 - 0x90264E01, // 009D SETMBR R9 K39 R1 - 0xB8265000, // 009E GETNGBL R9 K40 - 0x8C241329, // 009F GETMET R9 R9 K41 - 0x542E1387, // 00A0 LDINT R11 5000 - 0xB8320400, // 00A1 GETNGBL R12 K2 - 0x8830192A, // 00A2 GETMBR R12 R12 K42 - 0x7C240600, // 00A3 CALL R9 3 - 0x80000000, // 00A4 RET 0 - }) - ) -); -/*******************************************************************/ - -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_lv_tasmota_widgets.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_lv_tasmota_widgets.h deleted file mode 100644 index 47dccd82f..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_lv_tasmota_widgets.h +++ /dev/null @@ -1,1647 +0,0 @@ -/* Solidification of lv_tasmota_widgets.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -// compact class 'lv_clock' ktab size: 27, total: 32 (saved 40 bytes) -static const bvalue be_ktab_class_lv_clock[27] = { - /* K0 */ be_nested_str_weak(hour), - /* K1 */ be_nested_str_weak(minute), - /* K2 */ be_nested_str_weak(sec), - /* K3 */ be_nested_str_weak(_X2502d_X25s_X2502d), - /* K4 */ be_const_int(2), - /* K5 */ be_nested_str_weak(_X3A), - /* K6 */ be_nested_str_weak(_X20), - /* K7 */ be_nested_str_weak(set_text), - /* K8 */ be_nested_str_weak(tasmota), - /* K9 */ be_nested_str_weak(time_dump), - /* K10 */ be_nested_str_weak(rtc), - /* K11 */ be_nested_str_weak(local), - /* K12 */ be_nested_str_weak(year), - /* K13 */ be_nested_str_weak(set_time), - /* K14 */ be_nested_str_weak(min), - /* K15 */ be_nested_str_weak(init), - /* K16 */ be_nested_str_weak(lv), - /* K17 */ be_nested_str_weak(seg7_font), - /* K18 */ be_nested_str_weak(set_style_text_font), - /* K19 */ be_nested_str_weak(PART_MAIN), - /* K20 */ be_nested_str_weak(STATE_DEFAULT), - /* K21 */ be_nested_str_weak(_X2D_X2D_X3A_X2D_X2D), - /* K22 */ be_nested_str_weak(add_event_cb), - /* K23 */ be_nested_str_weak(EVENT_DELETE), - /* K24 */ be_const_int(0), - /* K25 */ be_nested_str_weak(add_driver), - /* K26 */ be_nested_str_weak(remove_driver), -}; - - -extern const bclass be_class_lv_clock; - -/******************************************************************** -** Solidified function: set_time -********************************************************************/ -be_local_closure(class_lv_clock_set_time, /* name */ - be_nested_proto( - 9, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_lv_clock, /* shared constants */ - be_str_weak(set_time), - &be_const_str_solidified, - ( &(const binstruction[26]) { /* code */ - 0x88100100, // 0000 GETMBR R4 R0 K0 - 0x20100204, // 0001 NE R4 R1 R4 - 0x74120005, // 0002 JMPT R4 #0009 - 0x88100101, // 0003 GETMBR R4 R0 K1 - 0x20100404, // 0004 NE R4 R2 R4 - 0x74120002, // 0005 JMPT R4 #0009 - 0x88100102, // 0006 GETMBR R4 R0 K2 - 0x20100604, // 0007 NE R4 R3 R4 - 0x7812000F, // 0008 JMPF R4 #0019 - 0x60100018, // 0009 GETGBL R4 G24 - 0x58140003, // 000A LDCONST R5 K3 - 0x5C180200, // 000B MOVE R6 R1 - 0x101C0704, // 000C MOD R7 R3 K4 - 0x781E0001, // 000D JMPF R7 #0010 - 0x581C0005, // 000E LDCONST R7 K5 - 0x70020000, // 000F JMP #0011 - 0x581C0006, // 0010 LDCONST R7 K6 - 0x5C200400, // 0011 MOVE R8 R2 - 0x7C100800, // 0012 CALL R4 4 - 0x90020001, // 0013 SETMBR R0 K0 R1 - 0x90020202, // 0014 SETMBR R0 K1 R2 - 0x90020403, // 0015 SETMBR R0 K2 R3 - 0x8C140107, // 0016 GETMET R5 R0 K7 - 0x5C1C0800, // 0017 MOVE R7 R4 - 0x7C140400, // 0018 CALL R5 2 - 0x80000000, // 0019 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: every_second -********************************************************************/ -be_local_closure(class_lv_clock_every_second, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_lv_clock, /* shared constants */ - be_str_weak(every_second), - &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0xB8061000, // 0000 GETNGBL R1 K8 - 0x8C040309, // 0001 GETMET R1 R1 K9 - 0xB80E1000, // 0002 GETNGBL R3 K8 - 0x8C0C070A, // 0003 GETMET R3 R3 K10 - 0x7C0C0200, // 0004 CALL R3 1 - 0x940C070B, // 0005 GETIDX R3 R3 K11 - 0x7C040400, // 0006 CALL R1 2 - 0x9408030C, // 0007 GETIDX R2 R1 K12 - 0x540E07B1, // 0008 LDINT R3 1970 - 0x20080403, // 0009 NE R2 R2 R3 - 0x780A0004, // 000A JMPF R2 #0010 - 0x8C08010D, // 000B GETMET R2 R0 K13 - 0x94100300, // 000C GETIDX R4 R1 K0 - 0x9414030E, // 000D GETIDX R5 R1 K14 - 0x94180302, // 000E GETIDX R6 R1 K2 - 0x7C080800, // 000F CALL R2 4 - 0x80000000, // 0010 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_lv_clock_init, /* name */ - be_nested_proto( - 8, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 1]) { - be_nested_proto( - 2, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(before_del), - }), - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0x80040000, // 0003 RET 1 R0 - }) - ), - }), - 1, /* has constants */ - &be_ktab_class_lv_clock, /* shared constants */ - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[36]) { /* code */ - 0x60080003, // 0000 GETGBL R2 G3 - 0x5C0C0000, // 0001 MOVE R3 R0 - 0x7C080200, // 0002 CALL R2 1 - 0x8C08050F, // 0003 GETMET R2 R2 K15 - 0x5C100200, // 0004 MOVE R4 R1 - 0x7C080400, // 0005 CALL R2 2 - 0xB80A2000, // 0006 GETNGBL R2 K16 - 0x8C080511, // 0007 GETMET R2 R2 K17 - 0x5412000F, // 0008 LDINT R4 16 - 0x7C080400, // 0009 CALL R2 2 - 0x4C0C0000, // 000A LDNIL R3 - 0x200C0403, // 000B NE R3 R2 R3 - 0x780E0007, // 000C JMPF R3 #0015 - 0x8C0C0112, // 000D GETMET R3 R0 K18 - 0x5C140400, // 000E MOVE R5 R2 - 0xB81A2000, // 000F GETNGBL R6 K16 - 0x88180D13, // 0010 GETMBR R6 R6 K19 - 0xB81E2000, // 0011 GETNGBL R7 K16 - 0x881C0F14, // 0012 GETMBR R7 R7 K20 - 0x30180C07, // 0013 OR R6 R6 R7 - 0x7C0C0600, // 0014 CALL R3 3 - 0x8C0C0107, // 0015 GETMET R3 R0 K7 - 0x58140015, // 0016 LDCONST R5 K21 - 0x7C0C0400, // 0017 CALL R3 2 - 0x8C0C0116, // 0018 GETMET R3 R0 K22 - 0x84140000, // 0019 CLOSURE R5 P0 - 0xB81A2000, // 001A GETNGBL R6 K16 - 0x88180D17, // 001B GETMBR R6 R6 K23 - 0x581C0018, // 001C LDCONST R7 K24 - 0x7C0C0800, // 001D CALL R3 4 - 0xB80E1000, // 001E GETNGBL R3 K8 - 0x8C0C0719, // 001F GETMET R3 R3 K25 - 0x5C140000, // 0020 MOVE R5 R0 - 0x7C0C0400, // 0021 CALL R3 2 - 0xA0000000, // 0022 CLOSE R0 - 0x80000000, // 0023 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: before_del -********************************************************************/ -be_local_closure(class_lv_clock_before_del, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_lv_clock, /* shared constants */ - be_str_weak(before_del), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0xB8061000, // 0000 GETNGBL R1 K8 - 0x8C04031A, // 0001 GETMET R1 R1 K26 - 0x5C0C0000, // 0002 MOVE R3 R0 - 0x7C040400, // 0003 CALL R1 2 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: lv_clock -********************************************************************/ -extern const bclass be_class_lv_label; -be_local_class(lv_clock, - 3, - &be_class_lv_label, - be_nested_map(7, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(sec, -1), be_const_var(2) }, - { be_const_key_weak(hour, -1), be_const_var(0) }, - { be_const_key_weak(before_del, 6), be_const_closure(class_lv_clock_before_del_closure) }, - { be_const_key_weak(every_second, -1), be_const_closure(class_lv_clock_every_second_closure) }, - { be_const_key_weak(minute, -1), be_const_var(1) }, - { be_const_key_weak(set_time, 2), be_const_closure(class_lv_clock_set_time_closure) }, - { be_const_key_weak(init, -1), be_const_closure(class_lv_clock_init_closure) }, - })), - be_str_weak(lv_clock) -); - -extern const bclass be_class_lv_clock_icon; - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_lv_clock_icon_init, /* name */ - be_nested_proto( - 10, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[16]) { /* constants */ - /* K0 */ be_nested_str_weak(init), - /* K1 */ be_nested_str_weak(get_height), - /* K2 */ be_nested_str_weak(refr_size), - /* K3 */ be_nested_str_weak(get_width), - /* K4 */ be_nested_str_weak(set_y), - /* K5 */ be_const_int(2), - /* K6 */ be_nested_str_weak(get_style_pad_right), - /* K7 */ be_nested_str_weak(lv), - /* K8 */ be_nested_str_weak(PART_MAIN), - /* K9 */ be_nested_str_weak(STATE_DEFAULT), - /* K10 */ be_nested_str_weak(set_x), - /* K11 */ be_const_int(3), - /* K12 */ be_nested_str_weak(set_style_pad_right), - /* K13 */ be_nested_str_weak(set_style_bg_color), - /* K14 */ be_nested_str_weak(color), - /* K15 */ be_nested_str_weak(COLOR_BLACK), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[60]) { /* code */ - 0x60080003, // 0000 GETGBL R2 G3 - 0x5C0C0000, // 0001 MOVE R3 R0 - 0x7C080200, // 0002 CALL R2 1 - 0x8C080500, // 0003 GETMET R2 R2 K0 - 0x5C100200, // 0004 MOVE R4 R1 - 0x7C080400, // 0005 CALL R2 2 - 0x4C080000, // 0006 LDNIL R2 - 0x20080202, // 0007 NE R2 R1 R2 - 0x780A0031, // 0008 JMPF R2 #003B - 0x8C080301, // 0009 GETMET R2 R1 K1 - 0x7C080200, // 000A CALL R2 1 - 0x8C0C0102, // 000B GETMET R3 R0 K2 - 0x7C0C0200, // 000C CALL R3 1 - 0x8C0C0103, // 000D GETMET R3 R0 K3 - 0x7C0C0200, // 000E CALL R3 1 - 0x8C100104, // 000F GETMET R4 R0 K4 - 0x8C180301, // 0010 GETMET R6 R1 K1 - 0x7C180200, // 0011 CALL R6 1 - 0x8C1C0101, // 0012 GETMET R7 R0 K1 - 0x7C1C0200, // 0013 CALL R7 1 - 0x04180C07, // 0014 SUB R6 R6 R7 - 0x0C180D05, // 0015 DIV R6 R6 K5 - 0x7C100400, // 0016 CALL R4 2 - 0x8C100306, // 0017 GETMET R4 R1 K6 - 0xB81A0E00, // 0018 GETNGBL R6 K7 - 0x88180D08, // 0019 GETMBR R6 R6 K8 - 0xB81E0E00, // 001A GETNGBL R7 K7 - 0x881C0F09, // 001B GETMBR R7 R7 K9 - 0x30180C07, // 001C OR R6 R6 R7 - 0x7C100400, // 001D CALL R4 2 - 0x8C14010A, // 001E GETMET R5 R0 K10 - 0x8C1C0303, // 001F GETMET R7 R1 K3 - 0x7C1C0200, // 0020 CALL R7 1 - 0x041C0E03, // 0021 SUB R7 R7 R3 - 0x041C0E04, // 0022 SUB R7 R7 R4 - 0x041C0F0B, // 0023 SUB R7 R7 K11 - 0x7C140400, // 0024 CALL R5 2 - 0x8C14030C, // 0025 GETMET R5 R1 K12 - 0x001C0803, // 0026 ADD R7 R4 R3 - 0x54220005, // 0027 LDINT R8 6 - 0x001C0E08, // 0028 ADD R7 R7 R8 - 0xB8220E00, // 0029 GETNGBL R8 K7 - 0x88201108, // 002A GETMBR R8 R8 K8 - 0xB8260E00, // 002B GETNGBL R9 K7 - 0x88241309, // 002C GETMBR R9 R9 K9 - 0x30201009, // 002D OR R8 R8 R9 - 0x7C140600, // 002E CALL R5 3 - 0x8C14010D, // 002F GETMET R5 R0 K13 - 0xB81E0E00, // 0030 GETNGBL R7 K7 - 0x8C1C0F0E, // 0031 GETMET R7 R7 K14 - 0xB8260E00, // 0032 GETNGBL R9 K7 - 0x8824130F, // 0033 GETMBR R9 R9 K15 - 0x7C1C0400, // 0034 CALL R7 2 - 0xB8220E00, // 0035 GETNGBL R8 K7 - 0x88201108, // 0036 GETMBR R8 R8 K8 - 0xB8260E00, // 0037 GETNGBL R9 K7 - 0x88241309, // 0038 GETMBR R9 R9 K9 - 0x30201009, // 0039 OR R8 R8 R9 - 0x7C140600, // 003A CALL R5 3 - 0x80000000, // 003B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: lv_clock_icon -********************************************************************/ -extern const bclass be_class_lv_clock; -be_local_class(lv_clock_icon, - 0, - &be_class_lv_clock, - be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(init, -1), be_const_closure(class_lv_clock_icon_init_closure) }, - })), - be_str_weak(lv_clock_icon) -); -// compact class 'lv_signal_arcs' ktab size: 43, total: 52 (saved 72 bytes) -static const bvalue be_ktab_class_lv_signal_arcs[43] = { - /* K0 */ be_nested_str_weak(get_code), - /* K1 */ be_nested_str_weak(math), - /* K2 */ be_nested_str_weak(get_height), - /* K3 */ be_nested_str_weak(get_width), - /* K4 */ be_const_int(2), - /* K5 */ be_const_int(3), - /* K6 */ be_nested_str_weak(lv), - /* K7 */ be_nested_str_weak(EVENT_DRAW_MAIN), - /* K8 */ be_nested_str_weak(arc_dsc), - /* K9 */ be_nested_str_weak(get_param), - /* K10 */ be_nested_str_weak(get_layer), - /* K11 */ be_nested_str_weak(get_coords), - /* K12 */ be_nested_str_weak(area), - /* K13 */ be_nested_str_weak(x1), - /* K14 */ be_nested_str_weak(y1), - /* K15 */ be_nested_str_weak(draw_arc_dsc_init), - /* K16 */ be_nested_str_weak(init_draw_arc_dsc), - /* K17 */ be_nested_str_weak(PART_MAIN), - /* K18 */ be_nested_str_weak(rounded), - /* K19 */ be_const_int(1), - /* K20 */ be_nested_str_weak(width), - /* K21 */ be_nested_str_weak(get_style_line_color), - /* K22 */ be_nested_str_weak(STATE_DEFAULT), - /* K23 */ be_nested_str_weak(get_style_bg_color), - /* K24 */ be_nested_str_weak(deg), - /* K25 */ be_nested_str_weak(acos), - /* K26 */ be_nested_str_weak(center_x), - /* K27 */ be_nested_str_weak(center_y), - /* K28 */ be_nested_str_weak(color), - /* K29 */ be_nested_str_weak(percentage), - /* K30 */ be_nested_str_weak(radius), - /* K31 */ be_const_int(0), - /* K32 */ be_nested_str_weak(start_angle), - /* K33 */ be_nested_str_weak(end_angle), - /* K34 */ be_nested_str_weak(draw_arc), - /* K35 */ be_nested_str_weak(init), - /* K36 */ be_nested_str_weak(set_style_bg_opa), - /* K37 */ be_nested_str_weak(set_style_border_width), - /* K38 */ be_nested_str_weak(set_style_pad_all), - /* K39 */ be_nested_str_weak(draw_arc_dsc), - /* K40 */ be_nested_str_weak(add_event_cb), - /* K41 */ be_nested_str_weak(widget_event), - /* K42 */ be_nested_str_weak(invalidate), -}; - - -extern const bclass be_class_lv_signal_arcs; - -/******************************************************************** -** Solidified function: widget_event -********************************************************************/ -be_local_closure(class_lv_signal_arcs_widget_event, /* name */ - be_nested_proto( - 28, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 1]) { - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_const_int(1), - }), - be_str_weak(atleast1), - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x28040100, // 0000 GE R1 R0 K0 - 0x78060001, // 0001 JMPF R1 #0004 - 0x80040000, // 0002 RET 1 R0 - 0x70020000, // 0003 JMP #0005 - 0x80060000, // 0004 RET 1 K0 - 0x80000000, // 0005 RET 0 - }) - ), - }), - 1, /* has constants */ - &be_ktab_class_lv_signal_arcs, /* shared constants */ - be_str_weak(widget_event), - &be_const_str_solidified, - ( &(const binstruction[161]) { /* code */ - 0x8C080300, // 0000 GETMET R2 R1 K0 - 0x7C080200, // 0001 CALL R2 1 - 0xA40E0200, // 0002 IMPORT R3 K1 - 0x84100000, // 0003 CLOSURE R4 P0 - 0x8C140102, // 0004 GETMET R5 R0 K2 - 0x7C140200, // 0005 CALL R5 1 - 0x8C180103, // 0006 GETMET R6 R0 K3 - 0x7C180200, // 0007 CALL R6 1 - 0x5C1C0800, // 0008 MOVE R7 R4 - 0x54220007, // 0009 LDINT R8 8 - 0x0C200A08, // 000A DIV R8 R5 R8 - 0x7C1C0200, // 000B CALL R7 1 - 0x5C200800, // 000C MOVE R8 R4 - 0x08240F04, // 000D MUL R9 R7 K4 - 0x04240A09, // 000E SUB R9 R5 R9 - 0x0C241305, // 000F DIV R9 R9 K5 - 0x7C200200, // 0010 CALL R8 1 - 0x0C241104, // 0011 DIV R9 R8 K4 - 0xB82A0C00, // 0012 GETNGBL R10 K6 - 0x88281507, // 0013 GETMBR R10 R10 K7 - 0x1C28040A, // 0014 EQ R10 R2 R10 - 0x782A0089, // 0015 JMPF R10 #00A0 - 0x88280108, // 0016 GETMBR R10 R0 K8 - 0x8C2C0309, // 0017 GETMET R11 R1 K9 - 0x7C2C0200, // 0018 CALL R11 1 - 0x8C30030A, // 0019 GETMET R12 R1 K10 - 0x7C300200, // 001A CALL R12 1 - 0x8C34010B, // 001B GETMET R13 R0 K11 - 0x883C010C, // 001C GETMBR R15 R0 K12 - 0x7C340400, // 001D CALL R13 2 - 0x8834010C, // 001E GETMBR R13 R0 K12 - 0x88341B0D, // 001F GETMBR R13 R13 K13 - 0x8838010C, // 0020 GETMBR R14 R0 K12 - 0x88381D0E, // 0021 GETMBR R14 R14 K14 - 0xB83E0C00, // 0022 GETNGBL R15 K6 - 0x8C3C1F0F, // 0023 GETMET R15 R15 K15 - 0x5C441400, // 0024 MOVE R17 R10 - 0x7C3C0400, // 0025 CALL R15 2 - 0x8C3C0110, // 0026 GETMET R15 R0 K16 - 0xB8460C00, // 0027 GETNGBL R17 K6 - 0x88442311, // 0028 GETMBR R17 R17 K17 - 0x5C481400, // 0029 MOVE R18 R10 - 0x7C3C0600, // 002A CALL R15 3 - 0x902A2513, // 002B SETMBR R10 K18 K19 - 0x083C1105, // 002C MUL R15 R8 K5 - 0x003C1F13, // 002D ADD R15 R15 K19 - 0x54420003, // 002E LDINT R16 4 - 0x0C3C1E10, // 002F DIV R15 R15 R16 - 0x902A280F, // 0030 SETMBR R10 K20 R15 - 0x8C3C0115, // 0031 GETMET R15 R0 K21 - 0xB8460C00, // 0032 GETNGBL R17 K6 - 0x88442311, // 0033 GETMBR R17 R17 K17 - 0xB84A0C00, // 0034 GETNGBL R18 K6 - 0x88482516, // 0035 GETMBR R18 R18 K22 - 0x30442212, // 0036 OR R17 R17 R18 - 0x7C3C0400, // 0037 CALL R15 2 - 0x8C400117, // 0038 GETMET R16 R0 K23 - 0xB84A0C00, // 0039 GETNGBL R18 K6 - 0x88482511, // 003A GETMBR R18 R18 K17 - 0xB84E0C00, // 003B GETNGBL R19 K6 - 0x884C2716, // 003C GETMBR R19 R19 K22 - 0x30482413, // 003D OR R18 R18 R19 - 0x7C400400, // 003E CALL R16 2 - 0x04440A08, // 003F SUB R17 R5 R8 - 0x0C480D04, // 0040 DIV R18 R6 K4 - 0x04482409, // 0041 SUB R18 R18 R9 - 0x604C0009, // 0042 GETGBL R19 G9 - 0x54520059, // 0043 LDINT R20 90 - 0x8C540718, // 0044 GETMET R21 R3 K24 - 0x8C5C0719, // 0045 GETMET R23 R3 K25 - 0x6064000A, // 0046 GETGBL R25 G10 - 0x5C682400, // 0047 MOVE R26 R18 - 0x7C640200, // 0048 CALL R25 1 - 0x6068000A, // 0049 GETGBL R26 G10 - 0x5C6C2200, // 004A MOVE R27 R17 - 0x7C680200, // 004B CALL R26 1 - 0x0C64321A, // 004C DIV R25 R25 R26 - 0x7C5C0400, // 004D CALL R23 2 - 0x7C540400, // 004E CALL R21 2 - 0x04502815, // 004F SUB R20 R20 R21 - 0x7C4C0200, // 0050 CALL R19 1 - 0x5452002C, // 0051 LDINT R20 45 - 0x24502614, // 0052 GT R20 R19 R20 - 0x78520000, // 0053 JMPF R20 #0055 - 0x544E002C, // 0054 LDINT R19 45 - 0x0C500D04, // 0055 DIV R20 R6 K4 - 0x00501A14, // 0056 ADD R20 R13 R20 - 0x902A3414, // 0057 SETMBR R10 K26 R20 - 0x00501C05, // 0058 ADD R20 R14 R5 - 0x04502913, // 0059 SUB R20 R20 K19 - 0x04502809, // 005A SUB R20 R20 R9 - 0x902A3614, // 005B SETMBR R10 K27 R20 - 0x8850011D, // 005C GETMBR R20 R0 K29 - 0x54560018, // 005D LDINT R21 25 - 0x28502815, // 005E GE R20 R20 R21 - 0x78520001, // 005F JMPF R20 #0062 - 0x5C501E00, // 0060 MOVE R20 R15 - 0x70020000, // 0061 JMP #0063 - 0x5C502000, // 0062 MOVE R20 R16 - 0x902A3814, // 0063 SETMBR R10 K28 R20 - 0x00501007, // 0064 ADD R20 R8 R7 - 0x08523E14, // 0065 MUL R20 K31 R20 - 0x00502809, // 0066 ADD R20 R20 R9 - 0x902A3C14, // 0067 SETMBR R10 K30 R20 - 0x902A411F, // 0068 SETMBR R10 K32 K31 - 0x54520131, // 0069 LDINT R20 306 - 0x902A4214, // 006A SETMBR R10 K33 R20 - 0xB8520C00, // 006B GETNGBL R20 K6 - 0x8C502922, // 006C GETMET R20 R20 K34 - 0x5C581800, // 006D MOVE R22 R12 - 0x5C5C1400, // 006E MOVE R23 R10 - 0x7C500600, // 006F CALL R20 3 - 0x00501007, // 0070 ADD R20 R8 R7 - 0x08522614, // 0071 MUL R20 K19 R20 - 0x00502809, // 0072 ADD R20 R20 R9 - 0x04502913, // 0073 SUB R20 R20 K19 - 0x902A3C14, // 0074 SETMBR R10 K30 R20 - 0x5452010D, // 0075 LDINT R20 270 - 0x04502813, // 0076 SUB R20 R20 R19 - 0x902A4014, // 0077 SETMBR R10 K32 R20 - 0x5452010D, // 0078 LDINT R20 270 - 0x00502813, // 0079 ADD R20 R20 R19 - 0x902A4214, // 007A SETMBR R10 K33 R20 - 0x8850011D, // 007B GETMBR R20 R0 K29 - 0x54560031, // 007C LDINT R21 50 - 0x28502815, // 007D GE R20 R20 R21 - 0x78520001, // 007E JMPF R20 #0081 - 0x5C501E00, // 007F MOVE R20 R15 - 0x70020000, // 0080 JMP #0082 - 0x5C502000, // 0081 MOVE R20 R16 - 0x902A3814, // 0082 SETMBR R10 K28 R20 - 0xB8520C00, // 0083 GETNGBL R20 K6 - 0x8C502922, // 0084 GETMET R20 R20 K34 - 0x5C581800, // 0085 MOVE R22 R12 - 0x5C5C1400, // 0086 MOVE R23 R10 - 0x7C500600, // 0087 CALL R20 3 - 0x00501007, // 0088 ADD R20 R8 R7 - 0x08520814, // 0089 MUL R20 K4 R20 - 0x00502809, // 008A ADD R20 R20 R9 - 0x04502904, // 008B SUB R20 R20 K4 - 0x902A3C14, // 008C SETMBR R10 K30 R20 - 0x5452010D, // 008D LDINT R20 270 - 0x04502813, // 008E SUB R20 R20 R19 - 0x902A4014, // 008F SETMBR R10 K32 R20 - 0x5452010D, // 0090 LDINT R20 270 - 0x00502813, // 0091 ADD R20 R20 R19 - 0x902A4214, // 0092 SETMBR R10 K33 R20 - 0x8850011D, // 0093 GETMBR R20 R0 K29 - 0x5456004A, // 0094 LDINT R21 75 - 0x28502815, // 0095 GE R20 R20 R21 - 0x78520001, // 0096 JMPF R20 #0099 - 0x5C501E00, // 0097 MOVE R20 R15 - 0x70020000, // 0098 JMP #009A - 0x5C502000, // 0099 MOVE R20 R16 - 0x902A3814, // 009A SETMBR R10 K28 R20 - 0xB8520C00, // 009B GETNGBL R20 K6 - 0x8C502922, // 009C GETMET R20 R20 K34 - 0x5C581800, // 009D MOVE R22 R12 - 0x5C5C1400, // 009E MOVE R23 R10 - 0x7C500600, // 009F CALL R20 3 - 0x80000000, // 00A0 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_percentage -********************************************************************/ -be_local_closure(class_lv_signal_arcs_get_percentage, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_lv_signal_arcs, /* shared constants */ - be_str_weak(get_percentage), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x8804011D, // 0000 GETMBR R1 R0 K29 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_lv_signal_arcs_init, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_lv_signal_arcs, /* shared constants */ - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[35]) { /* code */ - 0x60080003, // 0000 GETGBL R2 G3 - 0x5C0C0000, // 0001 MOVE R3 R0 - 0x7C080200, // 0002 CALL R2 1 - 0x8C080523, // 0003 GETMET R2 R2 K35 - 0x5C100200, // 0004 MOVE R4 R1 - 0x7C080400, // 0005 CALL R2 2 - 0x8C080124, // 0006 GETMET R2 R0 K36 - 0x5810001F, // 0007 LDCONST R4 K31 - 0x5814001F, // 0008 LDCONST R5 K31 - 0x7C080600, // 0009 CALL R2 3 - 0x8C080125, // 000A GETMET R2 R0 K37 - 0x5810001F, // 000B LDCONST R4 K31 - 0x5814001F, // 000C LDCONST R5 K31 - 0x7C080600, // 000D CALL R2 3 - 0x8C080126, // 000E GETMET R2 R0 K38 - 0x5810001F, // 000F LDCONST R4 K31 - 0x5814001F, // 0010 LDCONST R5 K31 - 0x7C080600, // 0011 CALL R2 3 - 0x540A0063, // 0012 LDINT R2 100 - 0x90023A02, // 0013 SETMBR R0 K29 R2 - 0xB80A0C00, // 0014 GETNGBL R2 K6 - 0x8C08050C, // 0015 GETMET R2 R2 K12 - 0x7C080200, // 0016 CALL R2 1 - 0x90021802, // 0017 SETMBR R0 K12 R2 - 0xB80A0C00, // 0018 GETNGBL R2 K6 - 0x8C080527, // 0019 GETMET R2 R2 K39 - 0x7C080200, // 001A CALL R2 1 - 0x90021002, // 001B SETMBR R0 K8 R2 - 0x8C080128, // 001C GETMET R2 R0 K40 - 0x88100129, // 001D GETMBR R4 R0 K41 - 0xB8160C00, // 001E GETNGBL R5 K6 - 0x88140B07, // 001F GETMBR R5 R5 K7 - 0x5818001F, // 0020 LDCONST R6 K31 - 0x7C080800, // 0021 CALL R2 4 - 0x80000000, // 0022 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_percentage -********************************************************************/ -be_local_closure(class_lv_signal_arcs_set_percentage, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_lv_signal_arcs, /* shared constants */ - be_str_weak(set_percentage), - &be_const_str_solidified, - ( &(const binstruction[18]) { /* code */ - 0x8808011D, // 0000 GETMBR R2 R0 K29 - 0x540E0018, // 0001 LDINT R3 25 - 0x0C080403, // 0002 DIV R2 R2 R3 - 0x540E0063, // 0003 LDINT R3 100 - 0x240C0203, // 0004 GT R3 R1 R3 - 0x780E0000, // 0005 JMPF R3 #0007 - 0x54060063, // 0006 LDINT R1 100 - 0x140C031F, // 0007 LT R3 R1 K31 - 0x780E0000, // 0008 JMPF R3 #000A - 0x5804001F, // 0009 LDCONST R1 K31 - 0x90023A01, // 000A SETMBR R0 K29 R1 - 0x540E0018, // 000B LDINT R3 25 - 0x0C0C0203, // 000C DIV R3 R1 R3 - 0x200C0403, // 000D NE R3 R2 R3 - 0x780E0001, // 000E JMPF R3 #0011 - 0x8C0C012A, // 000F GETMET R3 R0 K42 - 0x7C0C0200, // 0010 CALL R3 1 - 0x80000000, // 0011 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: lv_signal_arcs -********************************************************************/ -extern const bclass be_class_lv_obj; -be_local_class(lv_signal_arcs, - 3, - &be_class_lv_obj, - be_nested_map(7, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(widget_event, 2), be_const_closure(class_lv_signal_arcs_widget_event_closure) }, - { be_const_key_weak(get_percentage, 3), be_const_closure(class_lv_signal_arcs_get_percentage_closure) }, - { be_const_key_weak(set_percentage, 6), be_const_closure(class_lv_signal_arcs_set_percentage_closure) }, - { be_const_key_weak(arc_dsc, -1), be_const_var(2) }, - { be_const_key_weak(percentage, -1), be_const_var(0) }, - { be_const_key_weak(init, -1), be_const_closure(class_lv_signal_arcs_init_closure) }, - { be_const_key_weak(area, -1), be_const_var(1) }, - })), - be_str_weak(lv_signal_arcs) -); -// compact class 'lv_wifi_arcs' ktab size: 10, total: 14 (saved 32 bytes) -static const bvalue be_ktab_class_lv_wifi_arcs[10] = { - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(remove_driver), - /* K2 */ be_nested_str_weak(init), - /* K3 */ be_nested_str_weak(add_driver), - /* K4 */ be_nested_str_weak(set_percentage), - /* K5 */ be_const_int(0), - /* K6 */ be_nested_str_weak(wifi), - /* K7 */ be_nested_str_weak(find), - /* K8 */ be_nested_str_weak(quality), - /* K9 */ be_nested_str_weak(ip), -}; - - -extern const bclass be_class_lv_wifi_arcs; - -/******************************************************************** -** Solidified function: before_del -********************************************************************/ -be_local_closure(class_lv_wifi_arcs_before_del, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_lv_wifi_arcs, /* shared constants */ - be_str_weak(before_del), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x5C0C0000, // 0002 MOVE R3 R0 - 0x7C040400, // 0003 CALL R1 2 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_lv_wifi_arcs_init, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_lv_wifi_arcs, /* shared constants */ - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[14]) { /* code */ - 0x60080003, // 0000 GETGBL R2 G3 - 0x5C0C0000, // 0001 MOVE R3 R0 - 0x7C080200, // 0002 CALL R2 1 - 0x8C080502, // 0003 GETMET R2 R2 K2 - 0x5C100200, // 0004 MOVE R4 R1 - 0x7C080400, // 0005 CALL R2 2 - 0xB80A0000, // 0006 GETNGBL R2 K0 - 0x8C080503, // 0007 GETMET R2 R2 K3 - 0x5C100000, // 0008 MOVE R4 R0 - 0x7C080400, // 0009 CALL R2 2 - 0x8C080104, // 000A GETMET R2 R0 K4 - 0x58100005, // 000B LDCONST R4 K5 - 0x7C080400, // 000C CALL R2 2 - 0x80000000, // 000D RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: every_second -********************************************************************/ -be_local_closure(class_lv_wifi_arcs_every_second, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_lv_wifi_arcs, /* shared constants */ - be_str_weak(every_second), - &be_const_str_solidified, - ( &(const binstruction[23]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 - 0x8C040306, // 0001 GETMET R1 R1 K6 - 0x7C040200, // 0002 CALL R1 1 - 0x8C080307, // 0003 GETMET R2 R1 K7 - 0x58100008, // 0004 LDCONST R4 K8 - 0x7C080400, // 0005 CALL R2 2 - 0x8C0C0307, // 0006 GETMET R3 R1 K7 - 0x58140009, // 0007 LDCONST R5 K9 - 0x7C0C0400, // 0008 CALL R3 2 - 0x4C100000, // 0009 LDNIL R4 - 0x1C100604, // 000A EQ R4 R3 R4 - 0x78120003, // 000B JMPF R4 #0010 - 0x8C100104, // 000C GETMET R4 R0 K4 - 0x58180005, // 000D LDCONST R6 K5 - 0x7C100400, // 000E CALL R4 2 - 0x70020005, // 000F JMP #0016 - 0x4C100000, // 0010 LDNIL R4 - 0x20100404, // 0011 NE R4 R2 R4 - 0x78120002, // 0012 JMPF R4 #0016 - 0x8C100104, // 0013 GETMET R4 R0 K4 - 0x5C180400, // 0014 MOVE R6 R2 - 0x7C100400, // 0015 CALL R4 2 - 0x80000000, // 0016 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: lv_wifi_arcs -********************************************************************/ -extern const bclass be_class_lv_signal_arcs; -be_local_class(lv_wifi_arcs, - 0, - &be_class_lv_signal_arcs, - be_nested_map(3, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(before_del, 1), be_const_closure(class_lv_wifi_arcs_before_del_closure) }, - { be_const_key_weak(every_second, 2), be_const_closure(class_lv_wifi_arcs_every_second_closure) }, - { be_const_key_weak(init, -1), be_const_closure(class_lv_wifi_arcs_init_closure) }, - })), - be_str_weak(lv_wifi_arcs) -); - -extern const bclass be_class_lv_wifi_arcs_icon; - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_lv_wifi_arcs_icon_init, /* name */ - be_nested_proto( - 10, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[18]) { /* constants */ - /* K0 */ be_nested_str_weak(init), - /* K1 */ be_nested_str_weak(set_style_line_color), - /* K2 */ be_nested_str_weak(lv), - /* K3 */ be_nested_str_weak(color), - /* K4 */ be_nested_str_weak(COLOR_WHITE), - /* K5 */ be_nested_str_weak(PART_MAIN), - /* K6 */ be_nested_str_weak(STATE_DEFAULT), - /* K7 */ be_nested_str_weak(set_style_bg_color), - /* K8 */ be_nested_str_weak(COLOR_BLACK), - /* K9 */ be_nested_str_weak(get_height), - /* K10 */ be_nested_str_weak(get_style_pad_right), - /* K11 */ be_nested_str_weak(set_height), - /* K12 */ be_const_int(3), - /* K13 */ be_nested_str_weak(set_width), - /* K14 */ be_nested_str_weak(set_x), - /* K15 */ be_nested_str_weak(get_width), - /* K16 */ be_nested_str_weak(set_style_pad_right), - /* K17 */ be_const_int(1), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[67]) { /* code */ - 0x60080003, // 0000 GETGBL R2 G3 - 0x5C0C0000, // 0001 MOVE R3 R0 - 0x7C080200, // 0002 CALL R2 1 - 0x8C080500, // 0003 GETMET R2 R2 K0 - 0x5C100200, // 0004 MOVE R4 R1 - 0x7C080400, // 0005 CALL R2 2 - 0x8C080101, // 0006 GETMET R2 R0 K1 - 0xB8120400, // 0007 GETNGBL R4 K2 - 0x8C100903, // 0008 GETMET R4 R4 K3 - 0xB81A0400, // 0009 GETNGBL R6 K2 - 0x88180D04, // 000A GETMBR R6 R6 K4 - 0x7C100400, // 000B CALL R4 2 - 0xB8160400, // 000C GETNGBL R5 K2 - 0x88140B05, // 000D GETMBR R5 R5 K5 - 0xB81A0400, // 000E GETNGBL R6 K2 - 0x88180D06, // 000F GETMBR R6 R6 K6 - 0x30140A06, // 0010 OR R5 R5 R6 - 0x7C080600, // 0011 CALL R2 3 - 0x8C080107, // 0012 GETMET R2 R0 K7 - 0xB8120400, // 0013 GETNGBL R4 K2 - 0x8C100903, // 0014 GETMET R4 R4 K3 - 0xB81A0400, // 0015 GETNGBL R6 K2 - 0x88180D08, // 0016 GETMBR R6 R6 K8 - 0x7C100400, // 0017 CALL R4 2 - 0xB8160400, // 0018 GETNGBL R5 K2 - 0x88140B05, // 0019 GETMBR R5 R5 K5 - 0xB81A0400, // 001A GETNGBL R6 K2 - 0x88180D06, // 001B GETMBR R6 R6 K6 - 0x30140A06, // 001C OR R5 R5 R6 - 0x7C080600, // 001D CALL R2 3 - 0x4C080000, // 001E LDNIL R2 - 0x20080202, // 001F NE R2 R1 R2 - 0x780A0020, // 0020 JMPF R2 #0042 - 0x8C080309, // 0021 GETMET R2 R1 K9 - 0x7C080200, // 0022 CALL R2 1 - 0x8C0C030A, // 0023 GETMET R3 R1 K10 - 0xB8160400, // 0024 GETNGBL R5 K2 - 0x88140B05, // 0025 GETMBR R5 R5 K5 - 0xB81A0400, // 0026 GETNGBL R6 K2 - 0x88180D06, // 0027 GETMBR R6 R6 K6 - 0x30140A06, // 0028 OR R5 R5 R6 - 0x7C0C0400, // 0029 CALL R3 2 - 0x8C10010B, // 002A GETMET R4 R0 K11 - 0x5C180400, // 002B MOVE R6 R2 - 0x7C100400, // 002C CALL R4 2 - 0x54120003, // 002D LDINT R4 4 - 0x08100404, // 002E MUL R4 R2 R4 - 0x0C10090C, // 002F DIV R4 R4 K12 - 0x8C14010D, // 0030 GETMET R5 R0 K13 - 0x5C1C0800, // 0031 MOVE R7 R4 - 0x7C140400, // 0032 CALL R5 2 - 0x8C14010E, // 0033 GETMET R5 R0 K14 - 0x8C1C030F, // 0034 GETMET R7 R1 K15 - 0x7C1C0200, // 0035 CALL R7 1 - 0x041C0E04, // 0036 SUB R7 R7 R4 - 0x041C0E03, // 0037 SUB R7 R7 R3 - 0x7C140400, // 0038 CALL R5 2 - 0x8C140310, // 0039 GETMET R5 R1 K16 - 0x001C0604, // 003A ADD R7 R3 R4 - 0x001C0F11, // 003B ADD R7 R7 K17 - 0xB8220400, // 003C GETNGBL R8 K2 - 0x88201105, // 003D GETMBR R8 R8 K5 - 0xB8260400, // 003E GETNGBL R9 K2 - 0x88241306, // 003F GETMBR R9 R9 K6 - 0x30201009, // 0040 OR R8 R8 R9 - 0x7C140600, // 0041 CALL R5 3 - 0x80000000, // 0042 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: lv_wifi_arcs_icon -********************************************************************/ -extern const bclass be_class_lv_wifi_arcs; -be_local_class(lv_wifi_arcs_icon, - 0, - &be_class_lv_wifi_arcs, - be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(init, -1), be_const_closure(class_lv_wifi_arcs_icon_init_closure) }, - })), - be_str_weak(lv_wifi_arcs_icon) -); -// compact class 'lv_signal_bars' ktab size: 40, total: 49 (saved 72 bytes) -static const bvalue be_ktab_class_lv_signal_bars[40] = { - /* K0 */ be_nested_str_weak(percentage), - /* K1 */ be_const_int(0), - /* K2 */ be_nested_str_weak(invalidate), - /* K3 */ be_nested_str_weak(get_code), - /* K4 */ be_nested_str_weak(get_height), - /* K5 */ be_nested_str_weak(get_width), - /* K6 */ be_const_int(3), - /* K7 */ be_const_int(2), - /* K8 */ be_nested_str_weak(lv), - /* K9 */ be_nested_str_weak(EVENT_DRAW_MAIN), - /* K10 */ be_nested_str_weak(line_dsc), - /* K11 */ be_nested_str_weak(get_param), - /* K12 */ be_nested_str_weak(get_layer), - /* K13 */ be_nested_str_weak(get_coords), - /* K14 */ be_nested_str_weak(area), - /* K15 */ be_nested_str_weak(x1), - /* K16 */ be_nested_str_weak(y1), - /* K17 */ be_nested_str_weak(draw_line_dsc_init), - /* K18 */ be_nested_str_weak(init_draw_line_dsc), - /* K19 */ be_nested_str_weak(PART_MAIN), - /* K20 */ be_nested_str_weak(round_start), - /* K21 */ be_const_int(1), - /* K22 */ be_nested_str_weak(round_end), - /* K23 */ be_nested_str_weak(width), - /* K24 */ be_nested_str_weak(get_style_line_color), - /* K25 */ be_nested_str_weak(STATE_DEFAULT), - /* K26 */ be_nested_str_weak(get_style_bg_color), - /* K27 */ be_nested_str_weak(color), - /* K28 */ be_nested_str_weak(p1_y), - /* K29 */ be_nested_str_weak(p1_x), - /* K30 */ be_nested_str_weak(p2_y), - /* K31 */ be_nested_str_weak(p2_x), - /* K32 */ be_nested_str_weak(draw_line), - /* K33 */ be_nested_str_weak(stop_iteration), - /* K34 */ be_nested_str_weak(init), - /* K35 */ be_nested_str_weak(set_style_bg_opa), - /* K36 */ be_nested_str_weak(set_style_border_width), - /* K37 */ be_nested_str_weak(draw_line_dsc), - /* K38 */ be_nested_str_weak(add_event_cb), - /* K39 */ be_nested_str_weak(widget_event), -}; - - -extern const bclass be_class_lv_signal_bars; - -/******************************************************************** -** Solidified function: set_percentage -********************************************************************/ -be_local_closure(class_lv_signal_bars_set_percentage, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_lv_signal_bars, /* shared constants */ - be_str_weak(set_percentage), - &be_const_str_solidified, - ( &(const binstruction[18]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x540E0013, // 0001 LDINT R3 20 - 0x0C080403, // 0002 DIV R2 R2 R3 - 0x540E0063, // 0003 LDINT R3 100 - 0x240C0203, // 0004 GT R3 R1 R3 - 0x780E0000, // 0005 JMPF R3 #0007 - 0x54060063, // 0006 LDINT R1 100 - 0x140C0301, // 0007 LT R3 R1 K1 - 0x780E0000, // 0008 JMPF R3 #000A - 0x58040001, // 0009 LDCONST R1 K1 - 0x90020001, // 000A SETMBR R0 K0 R1 - 0x540E0013, // 000B LDINT R3 20 - 0x0C0C0203, // 000C DIV R3 R1 R3 - 0x200C0403, // 000D NE R3 R2 R3 - 0x780E0001, // 000E JMPF R3 #0011 - 0x8C0C0102, // 000F GETMET R3 R0 K2 - 0x7C0C0200, // 0010 CALL R3 1 - 0x80000000, // 0011 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_percentage -********************************************************************/ -be_local_closure(class_lv_signal_bars_get_percentage, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_lv_signal_bars, /* shared constants */ - be_str_weak(get_percentage), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: widget_event -********************************************************************/ -be_local_closure(class_lv_signal_bars_widget_event, /* name */ - be_nested_proto( - 22, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 1]) { - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_const_int(1), - }), - be_str_weak(atleast1), - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x28040100, // 0000 GE R1 R0 K0 - 0x78060001, // 0001 JMPF R1 #0004 - 0x80040000, // 0002 RET 1 R0 - 0x70020000, // 0003 JMP #0005 - 0x80060000, // 0004 RET 1 K0 - 0x80000000, // 0005 RET 0 - }) - ), - }), - 1, /* has constants */ - &be_ktab_class_lv_signal_bars, /* shared constants */ - be_str_weak(widget_event), - &be_const_str_solidified, - ( &(const binstruction[105]) { /* code */ - 0x8C080303, // 0000 GETMET R2 R1 K3 - 0x7C080200, // 0001 CALL R2 1 - 0x840C0000, // 0002 CLOSURE R3 P0 - 0x8C100104, // 0003 GETMET R4 R0 K4 - 0x7C100200, // 0004 CALL R4 1 - 0x8C140105, // 0005 GETMET R5 R0 K5 - 0x7C140200, // 0006 CALL R5 1 - 0x5C180600, // 0007 MOVE R6 R3 - 0x541E000E, // 0008 LDINT R7 15 - 0x0C1C0A07, // 0009 DIV R7 R5 R7 - 0x7C180200, // 000A CALL R6 1 - 0x5C1C0600, // 000B MOVE R7 R3 - 0x08200D06, // 000C MUL R8 R6 K6 - 0x04200A08, // 000D SUB R8 R5 R8 - 0x54260003, // 000E LDINT R9 4 - 0x0C201009, // 000F DIV R8 R8 R9 - 0x7C1C0200, // 0010 CALL R7 1 - 0x0C200F07, // 0011 DIV R8 R7 K7 - 0xB8261000, // 0012 GETNGBL R9 K8 - 0x88241309, // 0013 GETMBR R9 R9 K9 - 0x1C240409, // 0014 EQ R9 R2 R9 - 0x78260051, // 0015 JMPF R9 #0068 - 0x8824010A, // 0016 GETMBR R9 R0 K10 - 0x8C28030B, // 0017 GETMET R10 R1 K11 - 0x7C280200, // 0018 CALL R10 1 - 0x8C2C030C, // 0019 GETMET R11 R1 K12 - 0x7C2C0200, // 001A CALL R11 1 - 0x8C30010D, // 001B GETMET R12 R0 K13 - 0x8838010E, // 001C GETMBR R14 R0 K14 - 0x7C300400, // 001D CALL R12 2 - 0x8830010E, // 001E GETMBR R12 R0 K14 - 0x8830190F, // 001F GETMBR R12 R12 K15 - 0x8834010E, // 0020 GETMBR R13 R0 K14 - 0x88341B10, // 0021 GETMBR R13 R13 K16 - 0xB83A1000, // 0022 GETNGBL R14 K8 - 0x8C381D11, // 0023 GETMET R14 R14 K17 - 0x5C401200, // 0024 MOVE R16 R9 - 0x7C380400, // 0025 CALL R14 2 - 0x8C380112, // 0026 GETMET R14 R0 K18 - 0xB8421000, // 0027 GETNGBL R16 K8 - 0x88402113, // 0028 GETMBR R16 R16 K19 - 0x5C441200, // 0029 MOVE R17 R9 - 0x7C380600, // 002A CALL R14 3 - 0x90262915, // 002B SETMBR R9 K20 K21 - 0x90262D15, // 002C SETMBR R9 K22 K21 - 0x90262E07, // 002D SETMBR R9 K23 R7 - 0x8C380118, // 002E GETMET R14 R0 K24 - 0xB8421000, // 002F GETNGBL R16 K8 - 0x88402113, // 0030 GETMBR R16 R16 K19 - 0xB8461000, // 0031 GETNGBL R17 K8 - 0x88442319, // 0032 GETMBR R17 R17 K25 - 0x30402011, // 0033 OR R16 R16 R17 - 0x7C380400, // 0034 CALL R14 2 - 0x8C3C011A, // 0035 GETMET R15 R0 K26 - 0xB8461000, // 0036 GETNGBL R17 K8 - 0x88442313, // 0037 GETMBR R17 R17 K19 - 0xB84A1000, // 0038 GETNGBL R18 K8 - 0x88482519, // 0039 GETMBR R18 R18 K25 - 0x30442212, // 003A OR R17 R17 R18 - 0x7C3C0400, // 003B CALL R15 2 - 0x60400010, // 003C GETGBL R16 G16 - 0x40460306, // 003D CONNECT R17 K1 K6 - 0x7C400200, // 003E CALL R16 1 - 0xA8020024, // 003F EXBLK 0 #0065 - 0x5C442000, // 0040 MOVE R17 R16 - 0x7C440000, // 0041 CALL R17 0 - 0x88480100, // 0042 GETMBR R18 R0 K0 - 0x004C2315, // 0043 ADD R19 R17 K21 - 0x54520013, // 0044 LDINT R20 20 - 0x084C2614, // 0045 MUL R19 R19 R20 - 0x28482413, // 0046 GE R18 R18 R19 - 0x784A0001, // 0047 JMPF R18 #004A - 0x5C481C00, // 0048 MOVE R18 R14 - 0x70020000, // 0049 JMP #004B - 0x5C481E00, // 004A MOVE R18 R15 - 0x90263612, // 004B SETMBR R9 K27 R18 - 0x00481A04, // 004C ADD R18 R13 R4 - 0x04482515, // 004D SUB R18 R18 K21 - 0x04482408, // 004E SUB R18 R18 R8 - 0x90263812, // 004F SETMBR R9 K28 R18 - 0x00480E06, // 0050 ADD R18 R7 R6 - 0x08482212, // 0051 MUL R18 R17 R18 - 0x00481812, // 0052 ADD R18 R12 R18 - 0x00482408, // 0053 ADD R18 R18 R8 - 0x90263A12, // 0054 SETMBR R9 K29 R18 - 0x044A0C11, // 0055 SUB R18 K6 R17 - 0x044C0807, // 0056 SUB R19 R4 R7 - 0x08482413, // 0057 MUL R18 R18 R19 - 0x544E0003, // 0058 LDINT R19 4 - 0x0C482413, // 0059 DIV R18 R18 R19 - 0x00481A12, // 005A ADD R18 R13 R18 - 0x00482408, // 005B ADD R18 R18 R8 - 0x90263C12, // 005C SETMBR R9 K30 R18 - 0x8848131D, // 005D GETMBR R18 R9 K29 - 0x90263E12, // 005E SETMBR R9 K31 R18 - 0xB84A1000, // 005F GETNGBL R18 K8 - 0x8C482520, // 0060 GETMET R18 R18 K32 - 0x5C501600, // 0061 MOVE R20 R11 - 0x5C541200, // 0062 MOVE R21 R9 - 0x7C480600, // 0063 CALL R18 3 - 0x7001FFDA, // 0064 JMP #0040 - 0x58400021, // 0065 LDCONST R16 K33 - 0xAC400200, // 0066 CATCH R16 1 0 - 0xB0080000, // 0067 RAISE 2 R0 R0 - 0x80000000, // 0068 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_lv_signal_bars_init, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_lv_signal_bars, /* shared constants */ - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[31]) { /* code */ - 0x60080003, // 0000 GETGBL R2 G3 - 0x5C0C0000, // 0001 MOVE R3 R0 - 0x7C080200, // 0002 CALL R2 1 - 0x8C080522, // 0003 GETMET R2 R2 K34 - 0x5C100200, // 0004 MOVE R4 R1 - 0x7C080400, // 0005 CALL R2 2 - 0x8C080123, // 0006 GETMET R2 R0 K35 - 0x58100001, // 0007 LDCONST R4 K1 - 0x58140001, // 0008 LDCONST R5 K1 - 0x7C080600, // 0009 CALL R2 3 - 0x8C080124, // 000A GETMET R2 R0 K36 - 0x58100001, // 000B LDCONST R4 K1 - 0x58140001, // 000C LDCONST R5 K1 - 0x7C080600, // 000D CALL R2 3 - 0x540A0063, // 000E LDINT R2 100 - 0x90020002, // 000F SETMBR R0 K0 R2 - 0xB80A1000, // 0010 GETNGBL R2 K8 - 0x8C08050E, // 0011 GETMET R2 R2 K14 - 0x7C080200, // 0012 CALL R2 1 - 0x90021C02, // 0013 SETMBR R0 K14 R2 - 0xB80A1000, // 0014 GETNGBL R2 K8 - 0x8C080525, // 0015 GETMET R2 R2 K37 - 0x7C080200, // 0016 CALL R2 1 - 0x90021402, // 0017 SETMBR R0 K10 R2 - 0x8C080126, // 0018 GETMET R2 R0 K38 - 0x88100127, // 0019 GETMBR R4 R0 K39 - 0xB8161000, // 001A GETNGBL R5 K8 - 0x88140B09, // 001B GETMBR R5 R5 K9 - 0x58180001, // 001C LDCONST R6 K1 - 0x7C080800, // 001D CALL R2 4 - 0x80000000, // 001E RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: lv_signal_bars -********************************************************************/ -extern const bclass be_class_lv_obj; -be_local_class(lv_signal_bars, - 3, - &be_class_lv_obj, - be_nested_map(7, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(set_percentage, 3), be_const_closure(class_lv_signal_bars_set_percentage_closure) }, - { be_const_key_weak(get_percentage, -1), be_const_closure(class_lv_signal_bars_get_percentage_closure) }, - { be_const_key_weak(percentage, -1), be_const_var(0) }, - { be_const_key_weak(area, 6), be_const_var(1) }, - { be_const_key_weak(line_dsc, 2), be_const_var(2) }, - { be_const_key_weak(init, -1), be_const_closure(class_lv_signal_bars_init_closure) }, - { be_const_key_weak(widget_event, -1), be_const_closure(class_lv_signal_bars_widget_event_closure) }, - })), - be_str_weak(lv_signal_bars) -); -// compact class 'lv_wifi_bars' ktab size: 10, total: 14 (saved 32 bytes) -static const bvalue be_ktab_class_lv_wifi_bars[10] = { - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(remove_driver), - /* K2 */ be_nested_str_weak(init), - /* K3 */ be_nested_str_weak(add_driver), - /* K4 */ be_nested_str_weak(set_percentage), - /* K5 */ be_const_int(0), - /* K6 */ be_nested_str_weak(wifi), - /* K7 */ be_nested_str_weak(find), - /* K8 */ be_nested_str_weak(quality), - /* K9 */ be_nested_str_weak(ip), -}; - - -extern const bclass be_class_lv_wifi_bars; - -/******************************************************************** -** Solidified function: before_del -********************************************************************/ -be_local_closure(class_lv_wifi_bars_before_del, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_lv_wifi_bars, /* shared constants */ - be_str_weak(before_del), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x5C0C0000, // 0002 MOVE R3 R0 - 0x7C040400, // 0003 CALL R1 2 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_lv_wifi_bars_init, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_lv_wifi_bars, /* shared constants */ - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[14]) { /* code */ - 0x60080003, // 0000 GETGBL R2 G3 - 0x5C0C0000, // 0001 MOVE R3 R0 - 0x7C080200, // 0002 CALL R2 1 - 0x8C080502, // 0003 GETMET R2 R2 K2 - 0x5C100200, // 0004 MOVE R4 R1 - 0x7C080400, // 0005 CALL R2 2 - 0xB80A0000, // 0006 GETNGBL R2 K0 - 0x8C080503, // 0007 GETMET R2 R2 K3 - 0x5C100000, // 0008 MOVE R4 R0 - 0x7C080400, // 0009 CALL R2 2 - 0x8C080104, // 000A GETMET R2 R0 K4 - 0x58100005, // 000B LDCONST R4 K5 - 0x7C080400, // 000C CALL R2 2 - 0x80000000, // 000D RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: every_second -********************************************************************/ -be_local_closure(class_lv_wifi_bars_every_second, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_lv_wifi_bars, /* shared constants */ - be_str_weak(every_second), - &be_const_str_solidified, - ( &(const binstruction[23]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 - 0x8C040306, // 0001 GETMET R1 R1 K6 - 0x7C040200, // 0002 CALL R1 1 - 0x8C080307, // 0003 GETMET R2 R1 K7 - 0x58100008, // 0004 LDCONST R4 K8 - 0x7C080400, // 0005 CALL R2 2 - 0x8C0C0307, // 0006 GETMET R3 R1 K7 - 0x58140009, // 0007 LDCONST R5 K9 - 0x7C0C0400, // 0008 CALL R3 2 - 0x4C100000, // 0009 LDNIL R4 - 0x1C100604, // 000A EQ R4 R3 R4 - 0x78120003, // 000B JMPF R4 #0010 - 0x8C100104, // 000C GETMET R4 R0 K4 - 0x58180005, // 000D LDCONST R6 K5 - 0x7C100400, // 000E CALL R4 2 - 0x70020005, // 000F JMP #0016 - 0x4C100000, // 0010 LDNIL R4 - 0x20100404, // 0011 NE R4 R2 R4 - 0x78120002, // 0012 JMPF R4 #0016 - 0x8C100104, // 0013 GETMET R4 R0 K4 - 0x5C180400, // 0014 MOVE R6 R2 - 0x7C100400, // 0015 CALL R4 2 - 0x80000000, // 0016 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: lv_wifi_bars -********************************************************************/ -extern const bclass be_class_lv_signal_bars; -be_local_class(lv_wifi_bars, - 0, - &be_class_lv_signal_bars, - be_nested_map(3, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(before_del, 1), be_const_closure(class_lv_wifi_bars_before_del_closure) }, - { be_const_key_weak(every_second, 2), be_const_closure(class_lv_wifi_bars_every_second_closure) }, - { be_const_key_weak(init, -1), be_const_closure(class_lv_wifi_bars_init_closure) }, - })), - be_str_weak(lv_wifi_bars) -); - -extern const bclass be_class_lv_wifi_bars_icon; - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_lv_wifi_bars_icon_init, /* name */ - be_nested_proto( - 9, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[17]) { /* constants */ - /* K0 */ be_nested_str_weak(init), - /* K1 */ be_nested_str_weak(set_style_line_color), - /* K2 */ be_nested_str_weak(lv), - /* K3 */ be_nested_str_weak(color), - /* K4 */ be_nested_str_weak(COLOR_WHITE), - /* K5 */ be_nested_str_weak(PART_MAIN), - /* K6 */ be_nested_str_weak(STATE_DEFAULT), - /* K7 */ be_nested_str_weak(set_style_bg_color), - /* K8 */ be_nested_str_weak(COLOR_BLACK), - /* K9 */ be_nested_str_weak(get_height), - /* K10 */ be_nested_str_weak(get_style_pad_right), - /* K11 */ be_nested_str_weak(set_height), - /* K12 */ be_nested_str_weak(set_width), - /* K13 */ be_nested_str_weak(set_x), - /* K14 */ be_nested_str_weak(get_width), - /* K15 */ be_nested_str_weak(set_style_pad_right), - /* K16 */ be_const_int(1), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[64]) { /* code */ - 0x60080003, // 0000 GETGBL R2 G3 - 0x5C0C0000, // 0001 MOVE R3 R0 - 0x7C080200, // 0002 CALL R2 1 - 0x8C080500, // 0003 GETMET R2 R2 K0 - 0x5C100200, // 0004 MOVE R4 R1 - 0x7C080400, // 0005 CALL R2 2 - 0x8C080101, // 0006 GETMET R2 R0 K1 - 0xB8120400, // 0007 GETNGBL R4 K2 - 0x8C100903, // 0008 GETMET R4 R4 K3 - 0xB81A0400, // 0009 GETNGBL R6 K2 - 0x88180D04, // 000A GETMBR R6 R6 K4 - 0x7C100400, // 000B CALL R4 2 - 0xB8160400, // 000C GETNGBL R5 K2 - 0x88140B05, // 000D GETMBR R5 R5 K5 - 0xB81A0400, // 000E GETNGBL R6 K2 - 0x88180D06, // 000F GETMBR R6 R6 K6 - 0x30140A06, // 0010 OR R5 R5 R6 - 0x7C080600, // 0011 CALL R2 3 - 0x8C080107, // 0012 GETMET R2 R0 K7 - 0xB8120400, // 0013 GETNGBL R4 K2 - 0x8C100903, // 0014 GETMET R4 R4 K3 - 0xB81A0400, // 0015 GETNGBL R6 K2 - 0x88180D08, // 0016 GETMBR R6 R6 K8 - 0x7C100400, // 0017 CALL R4 2 - 0xB8160400, // 0018 GETNGBL R5 K2 - 0x88140B05, // 0019 GETMBR R5 R5 K5 - 0xB81A0400, // 001A GETNGBL R6 K2 - 0x88180D06, // 001B GETMBR R6 R6 K6 - 0x30140A06, // 001C OR R5 R5 R6 - 0x7C080600, // 001D CALL R2 3 - 0x4C080000, // 001E LDNIL R2 - 0x20080202, // 001F NE R2 R1 R2 - 0x780A001D, // 0020 JMPF R2 #003F - 0x8C080309, // 0021 GETMET R2 R1 K9 - 0x7C080200, // 0022 CALL R2 1 - 0x8C0C030A, // 0023 GETMET R3 R1 K10 - 0xB8160400, // 0024 GETNGBL R5 K2 - 0x88140B05, // 0025 GETMBR R5 R5 K5 - 0xB81A0400, // 0026 GETNGBL R6 K2 - 0x88180D06, // 0027 GETMBR R6 R6 K6 - 0x30140A06, // 0028 OR R5 R5 R6 - 0x7C0C0400, // 0029 CALL R3 2 - 0x8C10010B, // 002A GETMET R4 R0 K11 - 0x5C180400, // 002B MOVE R6 R2 - 0x7C100400, // 002C CALL R4 2 - 0x8C10010C, // 002D GETMET R4 R0 K12 - 0x5C180400, // 002E MOVE R6 R2 - 0x7C100400, // 002F CALL R4 2 - 0x8C10010D, // 0030 GETMET R4 R0 K13 - 0x8C18030E, // 0031 GETMET R6 R1 K14 - 0x7C180200, // 0032 CALL R6 1 - 0x04180C02, // 0033 SUB R6 R6 R2 - 0x04180C03, // 0034 SUB R6 R6 R3 - 0x7C100400, // 0035 CALL R4 2 - 0x8C10030F, // 0036 GETMET R4 R1 K15 - 0x00180602, // 0037 ADD R6 R3 R2 - 0x00180D10, // 0038 ADD R6 R6 K16 - 0xB81E0400, // 0039 GETNGBL R7 K2 - 0x881C0F05, // 003A GETMBR R7 R7 K5 - 0xB8220400, // 003B GETNGBL R8 K2 - 0x88201106, // 003C GETMBR R8 R8 K6 - 0x301C0E08, // 003D OR R7 R7 R8 - 0x7C100600, // 003E CALL R4 3 - 0x80000000, // 003F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: lv_wifi_bars_icon -********************************************************************/ -extern const bclass be_class_lv_wifi_bars; -be_local_class(lv_wifi_bars_icon, - 0, - &be_class_lv_wifi_bars, - be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(init, -1), be_const_closure(class_lv_wifi_bars_icon_init_closure) }, - })), - be_str_weak(lv_wifi_bars_icon) -); -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_mqtt.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_mqtt.h deleted file mode 100644 index a1d6a85b3..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_mqtt.h +++ /dev/null @@ -1,558 +0,0 @@ -/* Solidification of mqtt.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -extern const bclass be_class_mqtt_listener; -// compact class 'mqtt_listener' ktab size: 11, total: 17 (saved 48 bytes) -static const bvalue be_ktab_class_mqtt_listener[11] = { - /* K0 */ be_nested_str(_X3Cinstance_X3A_X20_X25s_X28_X27_X25s_X27_X29_X3E), - /* K1 */ be_nested_str(fulltopic), - /* K2 */ be_nested_str(string), - /* K3 */ be_nested_str(topic), - /* K4 */ be_nested_str(split), - /* K5 */ be_nested_str(_X2F), - /* K6 */ be_nested_str(closure), - /* K7 */ be_const_int(0), - /* K8 */ be_nested_str(_X23), - /* K9 */ be_nested_str(_X2B), - /* K10 */ be_const_int(1), -}; - - -extern const bclass be_class_mqtt_listener; - -/******************************************************************** -** Solidified function: tostring -********************************************************************/ -be_local_closure(class_mqtt_listener_tostring, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_mqtt_listener, /* shared constants */ - &be_const_str_tostring, - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x60040018, // 0000 GETGBL R1 G24 - 0x58080000, // 0001 LDCONST R2 K0 - 0x600C0005, // 0002 GETGBL R3 G5 - 0x5C100000, // 0003 MOVE R4 R0 - 0x7C0C0200, // 0004 CALL R3 1 - 0x88100101, // 0005 GETMBR R4 R0 K1 - 0x7C040600, // 0006 CALL R1 3 - 0x80040200, // 0007 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_mqtt_listener_init, /* name */ - be_nested_proto( - 8, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_mqtt_listener, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0xA40E0400, // 0000 IMPORT R3 K2 - 0x90020201, // 0001 SETMBR R0 K1 R1 - 0x8C100704, // 0002 GETMET R4 R3 K4 - 0x5C180200, // 0003 MOVE R6 R1 - 0x581C0005, // 0004 LDCONST R7 K5 - 0x7C100600, // 0005 CALL R4 3 - 0x90020604, // 0006 SETMBR R0 K3 R4 - 0x90020C02, // 0007 SETMBR R0 K6 R2 - 0x80000000, // 0008 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: mqtt_data -********************************************************************/ -be_local_closure(class_mqtt_listener_mqtt_data, /* name */ - be_nested_proto( - 17, /* nstack */ - 5, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_mqtt_listener, /* shared constants */ - &be_const_str_mqtt_data, - &be_const_str_solidified, - ( &(const binstruction[53]) { /* code */ - 0xA4160400, // 0000 IMPORT R5 K2 - 0x8C180B04, // 0001 GETMET R6 R5 K4 - 0x5C200200, // 0002 MOVE R8 R1 - 0x58240005, // 0003 LDCONST R9 K5 - 0x7C180600, // 0004 CALL R6 3 - 0x601C000C, // 0005 GETGBL R7 G12 - 0x5C200C00, // 0006 MOVE R8 R6 - 0x7C1C0200, // 0007 CALL R7 1 - 0x88200103, // 0008 GETMBR R8 R0 K3 - 0x6024000C, // 0009 GETGBL R9 G12 - 0x5C281000, // 000A MOVE R10 R8 - 0x7C240200, // 000B CALL R9 1 - 0x58280007, // 000C LDCONST R10 K7 - 0x142C1409, // 000D LT R11 R10 R9 - 0x782E0013, // 000E JMPF R11 #0023 - 0x942C100A, // 000F GETIDX R11 R8 R10 - 0x1C301708, // 0010 EQ R12 R11 K8 - 0x78320001, // 0011 JMPF R12 #0014 - 0x7002000F, // 0012 JMP #0023 - 0x7002000C, // 0013 JMP #0021 - 0x28301407, // 0014 GE R12 R10 R7 - 0x78320002, // 0015 JMPF R12 #0019 - 0x50300000, // 0016 LDBOOL R12 0 0 - 0x80041800, // 0017 RET 1 R12 - 0x70020007, // 0018 JMP #0021 - 0x1C301709, // 0019 EQ R12 R11 K9 - 0x78320000, // 001A JMPF R12 #001C - 0x70020004, // 001B JMP #0021 - 0x94300C0A, // 001C GETIDX R12 R6 R10 - 0x2030160C, // 001D NE R12 R11 R12 - 0x78320001, // 001E JMPF R12 #0021 - 0x50300000, // 001F LDBOOL R12 0 0 - 0x80041800, // 0020 RET 1 R12 - 0x0028150A, // 0021 ADD R10 R10 K10 - 0x7001FFE9, // 0022 JMP #000D - 0x282C1409, // 0023 GE R11 R10 R9 - 0x782E0003, // 0024 JMPF R11 #0029 - 0x202C1207, // 0025 NE R11 R9 R7 - 0x782E0001, // 0026 JMPF R11 #0029 - 0x502C0000, // 0027 LDBOOL R11 0 0 - 0x80041600, // 0028 RET 1 R11 - 0x882C0106, // 0029 GETMBR R11 R0 K6 - 0x5C301600, // 002A MOVE R12 R11 - 0x5C340200, // 002B MOVE R13 R1 - 0x5C380400, // 002C MOVE R14 R2 - 0x5C3C0600, // 002D MOVE R15 R3 - 0x5C400800, // 002E MOVE R16 R4 - 0x7C300800, // 002F CALL R12 4 - 0x4C340000, // 0030 LDNIL R13 - 0x1C34180D, // 0031 EQ R13 R12 R13 - 0x78360000, // 0032 JMPF R13 #0034 - 0x50300200, // 0033 LDBOOL R12 1 0 - 0x80041800, // 0034 RET 1 R12 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: mqtt_listener -********************************************************************/ -be_local_class(mqtt_listener, - 3, - NULL, - be_nested_map(6, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(mqtt_data, -1), be_const_closure(class_mqtt_listener_mqtt_data_closure) }, - { be_const_key(tostring, -1), be_const_closure(class_mqtt_listener_tostring_closure) }, - { be_const_key(topic, -1), be_const_var(0) }, - { be_const_key(init, -1), be_const_closure(class_mqtt_listener_init_closure) }, - { be_const_key(closure, 0), be_const_var(2) }, - { be_const_key(fulltopic, -1), be_const_var(1) }, - })), - (bstring*) &be_const_str_mqtt_listener -); -// compact class 'MQTT' ktab size: 23, total: 35 (saved 96 bytes) -static const bvalue be_ktab_class_MQTT[23] = { - /* K0 */ be_nested_str(topics), - /* K1 */ be_nested_str(closure), - /* K2 */ be_nested_str(mqtt_data), - /* K3 */ be_nested_str(stop_iteration), - /* K4 */ be_nested_str(tasmota), - /* K5 */ be_nested_str(add_driver), - /* K6 */ be_nested_str(add_rule), - /* K7 */ be_nested_str(Mqtt_X23Connected), - /* K8 */ be_const_int(0), - /* K9 */ be_nested_str(fulltopic), - /* K10 */ be_nested_str(_unsubscribe), - /* K11 */ be_nested_str(remove), - /* K12 */ be_const_int(1), - /* K13 */ be_nested_str(log), - /* K14 */ be_nested_str(BRY_X3A_X20mqtt_X20subscribe_X20all_X20registered_X20topics), - /* K15 */ be_const_int(3), - /* K16 */ be_nested_str(_subscribe), - /* K17 */ be_const_class(be_class_mqtt_listener), - /* K18 */ be_nested_str(lazy_init), - /* K19 */ be_nested_str(mqtt_listener_class), - /* K20 */ be_nested_str(function), - /* K21 */ be_nested_str(check_not_method), - /* K22 */ be_nested_str(push), -}; - - -extern const bclass be_class_MQTT; - -/******************************************************************** -** Solidified function: mqtt_data -********************************************************************/ -be_local_closure(class_MQTT_mqtt_data, /* name */ - be_nested_proto( - 14, /* nstack */ - 5, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_MQTT, /* shared constants */ - &be_const_str_mqtt_data, - &be_const_str_solidified, - ( &(const binstruction[31]) { /* code */ - 0x88140100, // 0000 GETMBR R5 R0 K0 - 0x4C180000, // 0001 LDNIL R6 - 0x1C140A06, // 0002 EQ R5 R5 R6 - 0x78160000, // 0003 JMPF R5 #0005 - 0x80000A00, // 0004 RET 0 - 0x50140000, // 0005 LDBOOL R5 0 0 - 0x60180010, // 0006 GETGBL R6 G16 - 0x881C0100, // 0007 GETMBR R7 R0 K0 - 0x7C180200, // 0008 CALL R6 1 - 0xA8020010, // 0009 EXBLK 0 #001B - 0x5C1C0C00, // 000A MOVE R7 R6 - 0x7C1C0000, // 000B CALL R7 0 - 0x88200F01, // 000C GETMBR R8 R7 K1 - 0x4C240000, // 000D LDNIL R9 - 0x20201009, // 000E NE R8 R8 R9 - 0x78220009, // 000F JMPF R8 #001A - 0x8C200F02, // 0010 GETMET R8 R7 K2 - 0x5C280200, // 0011 MOVE R10 R1 - 0x5C2C0400, // 0012 MOVE R11 R2 - 0x5C300600, // 0013 MOVE R12 R3 - 0x5C340800, // 0014 MOVE R13 R4 - 0x7C200A00, // 0015 CALL R8 5 - 0x74160001, // 0016 JMPT R5 #0019 - 0x74220000, // 0017 JMPT R8 #0019 - 0x50140001, // 0018 LDBOOL R5 0 1 - 0x50140200, // 0019 LDBOOL R5 1 0 - 0x7001FFEE, // 001A JMP #000A - 0x58180003, // 001B LDCONST R6 K3 - 0xAC180200, // 001C CATCH R6 1 0 - 0xB0080000, // 001D RAISE 2 R0 R0 - 0x80040A00, // 001E RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: lazy_init -********************************************************************/ -be_local_closure(class_MQTT_lazy_init, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 1]) { - be_nested_proto( - 2, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str(mqtt_connect), - }), - &be_const_str__X3Clambda_X3E, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0x80040000, // 0003 RET 1 R0 - }) - ), - }), - 1, /* has constants */ - &be_ktab_class_MQTT, /* shared constants */ - &be_const_str_lazy_init, - &be_const_str_solidified, - ( &(const binstruction[18]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x4C080000, // 0001 LDNIL R2 - 0x1C040202, // 0002 EQ R1 R1 R2 - 0x7806000B, // 0003 JMPF R1 #0010 - 0x60040012, // 0004 GETGBL R1 G18 - 0x7C040000, // 0005 CALL R1 0 - 0x90020001, // 0006 SETMBR R0 K0 R1 - 0xB8060800, // 0007 GETNGBL R1 K4 - 0x8C040305, // 0008 GETMET R1 R1 K5 - 0x5C0C0000, // 0009 MOVE R3 R0 - 0x7C040400, // 000A CALL R1 2 - 0xB8060800, // 000B GETNGBL R1 K4 - 0x8C040306, // 000C GETMET R1 R1 K6 - 0x580C0007, // 000D LDCONST R3 K7 - 0x84100000, // 000E CLOSURE R4 P0 - 0x7C040600, // 000F CALL R1 3 - 0xA0000000, // 0010 CLOSE R0 - 0x80000000, // 0011 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: unsubscribe -********************************************************************/ -be_local_closure(class_MQTT_unsubscribe, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_MQTT, /* shared constants */ - &be_const_str_unsubscribe, - &be_const_str_solidified, - ( &(const binstruction[41]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x4C0C0000, // 0001 LDNIL R3 - 0x1C080403, // 0002 EQ R2 R2 R3 - 0x780A0000, // 0003 JMPF R2 #0005 - 0x80000400, // 0004 RET 0 - 0x58080008, // 0005 LDCONST R2 K8 - 0x600C000C, // 0006 GETGBL R3 G12 - 0x88100100, // 0007 GETMBR R4 R0 K0 - 0x7C0C0200, // 0008 CALL R3 1 - 0x140C0403, // 0009 LT R3 R2 R3 - 0x780E0016, // 000A JMPF R3 #0022 - 0x4C0C0000, // 000B LDNIL R3 - 0x1C0C0203, // 000C EQ R3 R1 R3 - 0x740E0004, // 000D JMPT R3 #0013 - 0x880C0100, // 000E GETMBR R3 R0 K0 - 0x940C0602, // 000F GETIDX R3 R3 R2 - 0x880C0709, // 0010 GETMBR R3 R3 K9 - 0x1C0C0601, // 0011 EQ R3 R3 R1 - 0x780E000C, // 0012 JMPF R3 #0020 - 0x4C0C0000, // 0013 LDNIL R3 - 0x1C0C0203, // 0014 EQ R3 R1 R3 - 0x780E0004, // 0015 JMPF R3 #001B - 0x8C0C010A, // 0016 GETMET R3 R0 K10 - 0x88140100, // 0017 GETMBR R5 R0 K0 - 0x94140A02, // 0018 GETIDX R5 R5 R2 - 0x88140B09, // 0019 GETMBR R5 R5 K9 - 0x7C0C0400, // 001A CALL R3 2 - 0x880C0100, // 001B GETMBR R3 R0 K0 - 0x8C0C070B, // 001C GETMET R3 R3 K11 - 0x5C140400, // 001D MOVE R5 R2 - 0x7C0C0400, // 001E CALL R3 2 - 0x70020000, // 001F JMP #0021 - 0x0008050C, // 0020 ADD R2 R2 K12 - 0x7001FFE3, // 0021 JMP #0006 - 0x4C0C0000, // 0022 LDNIL R3 - 0x200C0203, // 0023 NE R3 R1 R3 - 0x780E0002, // 0024 JMPF R3 #0028 - 0x8C0C010A, // 0025 GETMET R3 R0 K10 - 0x5C140200, // 0026 MOVE R5 R1 - 0x7C0C0400, // 0027 CALL R3 2 - 0x80000000, // 0028 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: mqtt_connect -********************************************************************/ -be_local_closure(class_MQTT_mqtt_connect, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_MQTT, /* shared constants */ - &be_const_str_mqtt_connect, - &be_const_str_solidified, - ( &(const binstruction[21]) { /* code */ - 0xB8060800, // 0000 GETNGBL R1 K4 - 0x8C04030D, // 0001 GETMET R1 R1 K13 - 0x580C000E, // 0002 LDCONST R3 K14 - 0x5810000F, // 0003 LDCONST R4 K15 - 0x7C040600, // 0004 CALL R1 3 - 0x60040010, // 0005 GETGBL R1 G16 - 0x88080100, // 0006 GETMBR R2 R0 K0 - 0x7C040200, // 0007 CALL R1 1 - 0xA8020006, // 0008 EXBLK 0 #0010 - 0x5C080200, // 0009 MOVE R2 R1 - 0x7C080000, // 000A CALL R2 0 - 0x880C0509, // 000B GETMBR R3 R2 K9 - 0x8C100110, // 000C GETMET R4 R0 K16 - 0x5C180600, // 000D MOVE R6 R3 - 0x7C100400, // 000E CALL R4 2 - 0x7001FFF8, // 000F JMP #0009 - 0x58040003, // 0010 LDCONST R1 K3 - 0xAC040200, // 0011 CATCH R1 1 0 - 0xB0080000, // 0012 RAISE 2 R0 R0 - 0x50040000, // 0013 LDBOOL R1 0 0 - 0x80040200, // 0014 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: mqtt_listener_class -********************************************************************/ -be_local_closure(class_MQTT_mqtt_listener_class, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_MQTT, /* shared constants */ - &be_const_str_mqtt_listener_class, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x58040011, // 0000 LDCONST R1 K17 - 0xB4000011, // 0001 CLASS K17 - 0x5C080200, // 0002 MOVE R2 R1 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: subscribe -********************************************************************/ -be_local_closure(class_MQTT_subscribe, /* name */ - be_nested_proto( - 10, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_MQTT, /* shared constants */ - &be_const_str_subscribe, - &be_const_str_solidified, - ( &(const binstruction[50]) { /* code */ - 0x8C0C0112, // 0000 GETMET R3 R0 K18 - 0x7C0C0200, // 0001 CALL R3 1 - 0x500C0000, // 0002 LDBOOL R3 0 0 - 0x60100010, // 0003 GETGBL R4 G16 - 0x88140100, // 0004 GETMBR R5 R0 K0 - 0x7C100200, // 0005 CALL R4 1 - 0xA802000A, // 0006 EXBLK 0 #0012 - 0x5C140800, // 0007 MOVE R5 R4 - 0x7C140000, // 0008 CALL R5 0 - 0x88180B09, // 0009 GETMBR R6 R5 K9 - 0x1C180C01, // 000A EQ R6 R6 R1 - 0x781A0004, // 000B JMPF R6 #0011 - 0x88180B01, // 000C GETMBR R6 R5 K1 - 0x1C180C02, // 000D EQ R6 R6 R2 - 0x781A0001, // 000E JMPF R6 #0011 - 0xA8040001, // 000F EXBLK 1 1 - 0x80000C00, // 0010 RET 0 - 0x7001FFF4, // 0011 JMP #0007 - 0x58100003, // 0012 LDCONST R4 K3 - 0xAC100200, // 0013 CATCH R4 1 0 - 0xB0080000, // 0014 RAISE 2 R0 R0 - 0x8C100113, // 0015 GETMET R4 R0 K19 - 0x7C100200, // 0016 CALL R4 1 - 0x60140004, // 0017 GETGBL R5 G4 - 0x5C180400, // 0018 MOVE R6 R2 - 0x7C140200, // 0019 CALL R5 1 - 0x1C140B14, // 001A EQ R5 R5 K20 - 0x7816000B, // 001B JMPF R5 #0028 - 0xB8160800, // 001C GETNGBL R5 K4 - 0x8C140B15, // 001D GETMET R5 R5 K21 - 0x5C1C0400, // 001E MOVE R7 R2 - 0x7C140400, // 001F CALL R5 2 - 0x88140100, // 0020 GETMBR R5 R0 K0 - 0x8C140B16, // 0021 GETMET R5 R5 K22 - 0x5C1C0800, // 0022 MOVE R7 R4 - 0x5C200200, // 0023 MOVE R8 R1 - 0x5C240400, // 0024 MOVE R9 R2 - 0x7C1C0400, // 0025 CALL R7 2 - 0x7C140400, // 0026 CALL R5 2 - 0x70020005, // 0027 JMP #002E - 0x88140100, // 0028 GETMBR R5 R0 K0 - 0x8C140B16, // 0029 GETMET R5 R5 K22 - 0x5C1C0800, // 002A MOVE R7 R4 - 0x5C200200, // 002B MOVE R8 R1 - 0x7C1C0200, // 002C CALL R7 1 - 0x7C140400, // 002D CALL R5 2 - 0x8C140110, // 002E GETMET R5 R0 K16 - 0x5C1C0200, // 002F MOVE R7 R1 - 0x7C140400, // 0030 CALL R5 2 - 0x80000000, // 0031 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: MQTT -********************************************************************/ -extern const bclass be_class_MQTT_ntv; -be_local_class(MQTT, - 1, - &be_class_MQTT_ntv, - be_nested_map(7, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(mqtt_connect, -1), be_const_closure(class_MQTT_mqtt_connect_closure) }, - { be_const_key(mqtt_data, -1), be_const_closure(class_MQTT_mqtt_data_closure) }, - { be_const_key(lazy_init, -1), be_const_closure(class_MQTT_lazy_init_closure) }, - { be_const_key(unsubscribe, -1), be_const_closure(class_MQTT_unsubscribe_closure) }, - { be_const_key(topics, 0), be_const_var(0) }, - { be_const_key(mqtt_listener_class, -1), be_const_closure(class_MQTT_mqtt_listener_class_closure) }, - { be_const_key(subscribe, -1), be_const_closure(class_MQTT_subscribe_closure) }, - })), - (bstring*) &be_const_str_MQTT -); -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_partition_core.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_partition_core.h deleted file mode 100644 index a3fdf5e99..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_partition_core.h +++ /dev/null @@ -1,2279 +0,0 @@ -/* Solidification of partition_core.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -extern const bclass be_class_Partition_otadata; -// compact class 'Partition_otadata' ktab size: 24, total: 52 (saved 224 bytes) -static const bvalue be_ktab_class_Partition_otadata[24] = { - /* K0 */ be_nested_str(flash), - /* K1 */ be_nested_str(seq0), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str(seq1), - /* K4 */ be_const_int(1), - /* K5 */ be_nested_str(offset), - /* K6 */ be_nested_str(add), - /* K7 */ be_nested_str(FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF), - /* K8 */ be_nested_str(crc32_ota_seq), - /* K9 */ be_nested_str(erase), - /* K10 */ be_nested_str(write), - /* K11 */ be_nested_str(_X3Cinstance_X3A_X20Partition_otadata_X28ota_active_X3A_X25s_X2C_X20ota_seq_X3D_X5B_X25d_X2C_X25d_X5D_X2C_X20ota_max_X3D_X25d_X29_X3E), - /* K12 */ be_nested_str(active_otadata), - /* K13 */ be_nested_str(ota_), - /* K14 */ be_nested_str(factory), - /* K15 */ be_nested_str(maxota), - /* K16 */ be_nested_str(has_factory), - /* K17 */ be_nested_str(read), - /* K18 */ be_nested_str(get), - /* K19 */ be_nested_str(_validate), - /* K20 */ be_const_class(be_class_Partition_otadata), - /* K21 */ be_nested_str(crc), - /* K22 */ be_nested_str(crc32), - /* K23 */ be_nested_str(load), -}; - - -extern const bclass be_class_Partition_otadata; - -/******************************************************************** -** Solidified function: save -********************************************************************/ -be_local_closure(class_Partition_otadata_save, /* name */ - be_nested_proto( - 11, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition_otadata, /* shared constants */ - &be_const_str_save, - &be_const_str_solidified, - ( &(const binstruction[53]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x5409FFFE, // 0001 LDINT R2 -1 - 0x540DFFFE, // 0002 LDINT R3 -1 - 0x88100101, // 0003 GETMBR R4 R0 K1 - 0x4C140000, // 0004 LDNIL R5 - 0x20100805, // 0005 NE R4 R4 R5 - 0x78120001, // 0006 JMPF R4 #0009 - 0x880C0101, // 0007 GETMBR R3 R0 K1 - 0x58080002, // 0008 LDCONST R2 K2 - 0x88100103, // 0009 GETMBR R4 R0 K3 - 0x4C140000, // 000A LDNIL R5 - 0x20100805, // 000B NE R4 R4 R5 - 0x78120004, // 000C JMPF R4 #0012 - 0x88100103, // 000D GETMBR R4 R0 K3 - 0x24100803, // 000E GT R4 R4 R3 - 0x78120001, // 000F JMPF R4 #0012 - 0x880C0103, // 0010 GETMBR R3 R0 K3 - 0x58080004, // 0011 LDCONST R2 K4 - 0x14100502, // 0012 LT R4 R2 K2 - 0x78120000, // 0013 JMPF R4 #0015 - 0x58080002, // 0014 LDCONST R2 K2 - 0x14100702, // 0015 LT R4 R3 K2 - 0x78120000, // 0016 JMPF R4 #0018 - 0x580C0004, // 0017 LDCONST R3 K4 - 0x88100105, // 0018 GETMBR R4 R0 K5 - 0x54160FFF, // 0019 LDINT R5 4096 - 0x08140A02, // 001A MUL R5 R5 R2 - 0x00100805, // 001B ADD R4 R4 R5 - 0x60140015, // 001C GETGBL R5 G21 - 0x7C140000, // 001D CALL R5 0 - 0x8C180B06, // 001E GETMET R6 R5 K6 - 0x5C200600, // 001F MOVE R8 R3 - 0x54260003, // 0020 LDINT R9 4 - 0x7C180600, // 0021 CALL R6 3 - 0x60180015, // 0022 GETGBL R6 G21 - 0x581C0007, // 0023 LDCONST R7 K7 - 0x7C180200, // 0024 CALL R6 1 - 0x00140A06, // 0025 ADD R5 R5 R6 - 0x8C180B06, // 0026 GETMET R6 R5 K6 - 0x8C200108, // 0027 GETMET R8 R0 K8 - 0x5C280600, // 0028 MOVE R10 R3 - 0x7C200400, // 0029 CALL R8 2 - 0x54260003, // 002A LDINT R9 4 - 0x7C180600, // 002B CALL R6 3 - 0x8C180309, // 002C GETMET R6 R1 K9 - 0x5C200800, // 002D MOVE R8 R4 - 0x54260FFF, // 002E LDINT R9 4096 - 0x7C180600, // 002F CALL R6 3 - 0x8C18030A, // 0030 GETMET R6 R1 K10 - 0x5C200800, // 0031 MOVE R8 R4 - 0x5C240A00, // 0032 MOVE R9 R5 - 0x7C180600, // 0033 CALL R6 3 - 0x80000000, // 0034 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: tostring -********************************************************************/ -be_local_closure(class_Partition_otadata_tostring, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition_otadata, /* shared constants */ - &be_const_str_tostring, - &be_const_str_solidified, - ( &(const binstruction[16]) { /* code */ - 0x60040018, // 0000 GETGBL R1 G24 - 0x5808000B, // 0001 LDCONST R2 K11 - 0x880C010C, // 0002 GETMBR R3 R0 K12 - 0x280C0702, // 0003 GE R3 R3 K2 - 0x780E0004, // 0004 JMPF R3 #000A - 0x600C0008, // 0005 GETGBL R3 G8 - 0x8810010C, // 0006 GETMBR R4 R0 K12 - 0x7C0C0200, // 0007 CALL R3 1 - 0x000E1A03, // 0008 ADD R3 K13 R3 - 0x70020000, // 0009 JMP #000B - 0x580C000E, // 000A LDCONST R3 K14 - 0x88100101, // 000B GETMBR R4 R0 K1 - 0x88140103, // 000C GETMBR R5 R0 K3 - 0x8818010F, // 000D GETMBR R6 R0 K15 - 0x7C040A00, // 000E CALL R1 5 - 0x80040200, // 000F RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: _validate -********************************************************************/ -be_local_closure(class_Partition_otadata__validate, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition_otadata, /* shared constants */ - &be_const_str__validate, - &be_const_str_solidified, - ( &(const binstruction[35]) { /* code */ - 0x88040110, // 0000 GETMBR R1 R0 K16 - 0x78060001, // 0001 JMPF R1 #0004 - 0x5405FFFE, // 0002 LDINT R1 -1 - 0x70020000, // 0003 JMP #0005 - 0x58040002, // 0004 LDCONST R1 K2 - 0x90021801, // 0005 SETMBR R0 K12 R1 - 0x88040101, // 0006 GETMBR R1 R0 K1 - 0x4C080000, // 0007 LDNIL R2 - 0x20040202, // 0008 NE R1 R1 R2 - 0x78060005, // 0009 JMPF R1 #0010 - 0x88040101, // 000A GETMBR R1 R0 K1 - 0x04040304, // 000B SUB R1 R1 K4 - 0x8808010F, // 000C GETMBR R2 R0 K15 - 0x00080504, // 000D ADD R2 R2 K4 - 0x10040202, // 000E MOD R1 R1 R2 - 0x90021801, // 000F SETMBR R0 K12 R1 - 0x88040103, // 0010 GETMBR R1 R0 K3 - 0x4C080000, // 0011 LDNIL R2 - 0x20040202, // 0012 NE R1 R1 R2 - 0x7806000D, // 0013 JMPF R1 #0022 - 0x88040101, // 0014 GETMBR R1 R0 K1 - 0x4C080000, // 0015 LDNIL R2 - 0x1C040202, // 0016 EQ R1 R1 R2 - 0x74060003, // 0017 JMPT R1 #001C - 0x88040103, // 0018 GETMBR R1 R0 K3 - 0x88080101, // 0019 GETMBR R2 R0 K1 - 0x24040202, // 001A GT R1 R1 R2 - 0x78060005, // 001B JMPF R1 #0022 - 0x88040103, // 001C GETMBR R1 R0 K3 - 0x04040304, // 001D SUB R1 R1 K4 - 0x8808010F, // 001E GETMBR R2 R0 K15 - 0x00080504, // 001F ADD R2 R2 K4 - 0x10040202, // 0020 MOD R1 R1 R2 - 0x90021801, // 0021 SETMBR R0 K12 R1 - 0x80000000, // 0022 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_ota_max -********************************************************************/ -be_local_closure(class_Partition_otadata_set_ota_max, /* name */ - be_nested_proto( - 2, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition_otadata, /* shared constants */ - &be_const_str_set_ota_max, - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x90021E01, // 0000 SETMBR R0 K15 R1 - 0x80000000, // 0001 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: load -********************************************************************/ -be_local_closure(class_Partition_otadata_load, /* name */ - be_nested_proto( - 9, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition_otadata, /* shared constants */ - &be_const_str_load, - &be_const_str_solidified, - ( &(const binstruction[48]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C080311, // 0001 GETMET R2 R1 K17 - 0x88100105, // 0002 GETMBR R4 R0 K5 - 0x5416001F, // 0003 LDINT R5 32 - 0x7C080600, // 0004 CALL R2 3 - 0x8C0C0311, // 0005 GETMET R3 R1 K17 - 0x88140105, // 0006 GETMBR R5 R0 K5 - 0x541A0FFF, // 0007 LDINT R6 4096 - 0x00140A06, // 0008 ADD R5 R5 R6 - 0x541A001F, // 0009 LDINT R6 32 - 0x7C0C0600, // 000A CALL R3 3 - 0x8C100512, // 000B GETMET R4 R2 K18 - 0x58180002, // 000C LDCONST R6 K2 - 0x541E0003, // 000D LDINT R7 4 - 0x7C100600, // 000E CALL R4 3 - 0x90020204, // 000F SETMBR R0 K1 R4 - 0x8C100712, // 0010 GETMET R4 R3 K18 - 0x58180002, // 0011 LDCONST R6 K2 - 0x541E0003, // 0012 LDINT R7 4 - 0x7C100600, // 0013 CALL R4 3 - 0x90020604, // 0014 SETMBR R0 K3 R4 - 0x8C100512, // 0015 GETMET R4 R2 K18 - 0x541A001B, // 0016 LDINT R6 28 - 0x541E0003, // 0017 LDINT R7 4 - 0x7C100600, // 0018 CALL R4 3 - 0x8C140108, // 0019 GETMET R5 R0 K8 - 0x881C0101, // 001A GETMBR R7 R0 K1 - 0x7C140400, // 001B CALL R5 2 - 0x1C100805, // 001C EQ R4 R4 R5 - 0x8C140712, // 001D GETMET R5 R3 K18 - 0x541E001B, // 001E LDINT R7 28 - 0x54220003, // 001F LDINT R8 4 - 0x7C140600, // 0020 CALL R5 3 - 0x8C180108, // 0021 GETMET R6 R0 K8 - 0x88200103, // 0022 GETMBR R8 R0 K3 - 0x7C180400, // 0023 CALL R6 2 - 0x1C140A06, // 0024 EQ R5 R5 R6 - 0x5C180800, // 0025 MOVE R6 R4 - 0x741A0001, // 0026 JMPT R6 #0029 - 0x4C180000, // 0027 LDNIL R6 - 0x90020206, // 0028 SETMBR R0 K1 R6 - 0x5C180A00, // 0029 MOVE R6 R5 - 0x741A0001, // 002A JMPT R6 #002D - 0x4C180000, // 002B LDNIL R6 - 0x90020606, // 002C SETMBR R0 K3 R6 - 0x8C180113, // 002D GETMET R6 R0 K19 - 0x7C180200, // 002E CALL R6 1 - 0x80000000, // 002F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: crc32_ota_seq -********************************************************************/ -be_local_closure(class_Partition_otadata_crc32_ota_seq, /* name */ - be_nested_proto( - 10, /* nstack */ - 1, /* argc */ - 12, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition_otadata, /* shared constants */ - &be_const_str_crc32_ota_seq, - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x58040014, // 0000 LDCONST R1 K20 - 0xA40A2A00, // 0001 IMPORT R2 K21 - 0x8C0C0516, // 0002 GETMET R3 R2 K22 - 0x5415FFFE, // 0003 LDINT R5 -1 - 0x60180015, // 0004 GETGBL R6 G21 - 0x7C180000, // 0005 CALL R6 0 - 0x8C180D06, // 0006 GETMET R6 R6 K6 - 0x5C200000, // 0007 MOVE R8 R0 - 0x54260003, // 0008 LDINT R9 4 - 0x7C180600, // 0009 CALL R6 3 - 0x7C0C0600, // 000A CALL R3 3 - 0x80040600, // 000B RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_active -********************************************************************/ -be_local_closure(class_Partition_otadata_set_active, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition_otadata, /* shared constants */ - &be_const_str_set_active, - &be_const_str_solidified, - ( &(const binstruction[41]) { /* code */ - 0x58080002, // 0000 LDCONST R2 K2 - 0x580C0002, // 0001 LDCONST R3 K2 - 0x88100101, // 0002 GETMBR R4 R0 K1 - 0x4C140000, // 0003 LDNIL R5 - 0x20100805, // 0004 NE R4 R4 R5 - 0x78120001, // 0005 JMPF R4 #0008 - 0x88080101, // 0006 GETMBR R2 R0 K1 - 0x580C0002, // 0007 LDCONST R3 K2 - 0x88100103, // 0008 GETMBR R4 R0 K3 - 0x4C140000, // 0009 LDNIL R5 - 0x20100805, // 000A NE R4 R4 R5 - 0x78120004, // 000B JMPF R4 #0011 - 0x88100103, // 000C GETMBR R4 R0 K3 - 0x24100802, // 000D GT R4 R4 R2 - 0x78120001, // 000E JMPF R4 #0011 - 0x88080103, // 000F GETMBR R2 R0 K3 - 0x580C0004, // 0010 LDCONST R3 K4 - 0x04100504, // 0011 SUB R4 R2 K4 - 0x8814010F, // 0012 GETMBR R5 R0 K15 - 0x00140B04, // 0013 ADD R5 R5 K4 - 0x10100805, // 0014 MOD R4 R4 R5 - 0x20140801, // 0015 NE R5 R4 R1 - 0x78160010, // 0016 JMPF R5 #0028 - 0x24140204, // 0017 GT R5 R1 R4 - 0x78160002, // 0018 JMPF R5 #001C - 0x04140204, // 0019 SUB R5 R1 R4 - 0x00080405, // 001A ADD R2 R2 R5 - 0x70020004, // 001B JMP #0021 - 0x8814010F, // 001C GETMBR R5 R0 K15 - 0x00140B04, // 001D ADD R5 R5 K4 - 0x04140A04, // 001E SUB R5 R5 R4 - 0x00140A01, // 001F ADD R5 R5 R1 - 0x00080405, // 0020 ADD R2 R2 R5 - 0x1C140704, // 0021 EQ R5 R3 K4 - 0x78160001, // 0022 JMPF R5 #0025 - 0x90020202, // 0023 SETMBR R0 K1 R2 - 0x70020000, // 0024 JMP #0026 - 0x90020602, // 0025 SETMBR R0 K3 R2 - 0x8C140113, // 0026 GETMET R5 R0 K19 - 0x7C140200, // 0027 CALL R5 1 - 0x80000000, // 0028 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_Partition_otadata_init, /* name */ - be_nested_proto( - 6, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition_otadata, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[19]) { /* code */ - 0x90021E01, // 0000 SETMBR R0 K15 R1 - 0x90022002, // 0001 SETMBR R0 K16 R2 - 0x8810010F, // 0002 GETMBR R4 R0 K15 - 0x4C140000, // 0003 LDNIL R5 - 0x1C100805, // 0004 EQ R4 R4 R5 - 0x78120000, // 0005 JMPF R4 #0007 - 0x90021F04, // 0006 SETMBR R0 K15 K4 - 0x90020A03, // 0007 SETMBR R0 K5 R3 - 0x88100105, // 0008 GETMBR R4 R0 K5 - 0x4C140000, // 0009 LDNIL R5 - 0x1C100805, // 000A EQ R4 R4 R5 - 0x78120001, // 000B JMPF R4 #000E - 0x5412DFFF, // 000C LDINT R4 57344 - 0x90020A04, // 000D SETMBR R0 K5 R4 - 0x5411FFFE, // 000E LDINT R4 -1 - 0x90021804, // 000F SETMBR R0 K12 R4 - 0x8C100117, // 0010 GETMET R4 R0 K23 - 0x7C100200, // 0011 CALL R4 1 - 0x80000000, // 0012 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: Partition_otadata -********************************************************************/ -be_local_class(Partition_otadata, - 6, - NULL, - be_nested_map(14, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(init, -1), be_const_closure(class_Partition_otadata_init_closure) }, - { be_const_key(seq1, 13), be_const_var(5) }, - { be_const_key(save, -1), be_const_closure(class_Partition_otadata_save_closure) }, - { be_const_key(tostring, -1), be_const_closure(class_Partition_otadata_tostring_closure) }, - { be_const_key(_validate, 6), be_const_closure(class_Partition_otadata__validate_closure) }, - { be_const_key(set_ota_max, 0), be_const_closure(class_Partition_otadata_set_ota_max_closure) }, - { be_const_key(has_factory, -1), be_const_var(1) }, - { be_const_key(load, 8), be_const_closure(class_Partition_otadata_load_closure) }, - { be_const_key(crc32_ota_seq, -1), be_const_static_closure(class_Partition_otadata_crc32_ota_seq_closure) }, - { be_const_key(active_otadata, 11), be_const_var(3) }, - { be_const_key(offset, 9), be_const_var(2) }, - { be_const_key(seq0, -1), be_const_var(4) }, - { be_const_key(set_active, -1), be_const_closure(class_Partition_otadata_set_active_closure) }, - { be_const_key(maxota, -1), be_const_var(0) }, - })), - (bstring*) &be_const_str_Partition_otadata -); -extern const bclass be_class_Partition; -// compact class 'Partition' ktab size: 71, total: 134 (saved 504 bytes) -static const bvalue be_ktab_class_Partition[71] = { - /* K0 */ be_nested_str(flash), - /* K1 */ be_nested_str(tobytes), - /* K2 */ be_nested_str(erase), - /* K3 */ be_nested_str(write), - /* K4 */ be_nested_str(otadata), - /* K5 */ be_nested_str(save), - /* K6 */ be_nested_str(raw), - /* K7 */ be_nested_str(read), - /* K8 */ be_nested_str(active_otadata), - /* K9 */ be_nested_str(slots), - /* K10 */ be_nested_str(load), - /* K11 */ be_nested_str(parse), - /* K12 */ be_nested_str(load_otadata), - /* K13 */ be_const_int(0), - /* K14 */ be_const_int(1), - /* K15 */ be_nested_str(get), - /* K16 */ be_const_int(2), - /* K17 */ be_nested_str(partition_core), - /* K18 */ be_nested_str(Partition_info), - /* K19 */ be_nested_str(push), - /* K20 */ be_nested_str(md5), - /* K21 */ be_nested_str(stop_iteration), - /* K22 */ be_nested_str(tasmota), - /* K23 */ be_nested_str(memory), - /* K24 */ be_nested_str(find), - /* K25 */ be_nested_str(flash_real), - /* K26 */ be_nested_str(get_flash_definition_sector), - /* K27 */ be_const_int(3), - /* K28 */ be_nested_str(log), - /* K29 */ be_nested_str(UPL_X3A_X20changing_X20flash_X20definition_X20from_X200x02X_X20to_X200x_X2502X), - /* K30 */ be_nested_str(wrong_X20flash_X20size_X20), - /* K31 */ be_nested_str(internal_error), - /* K32 */ be_const_class(be_class_Partition), - /* K33 */ be_nested_str(E9), - /* K34 */ be_nested_str(get_unallocated_k), - /* K35 */ be_nested_str(BRY_X3A_X20Trying_X20to_X20expand_X20FS_X20by_X20_X25i_X20kB), - /* K36 */ be_nested_str(resize_max_flash_size_k), - /* K37 */ be_nested_str(sz), - /* K38 */ be_nested_str(global), - /* K39 */ be_nested_str(restart_flag), - /* K40 */ be_nested_str(BRY_X3A_X20Successfully_X20resized_X20FS_X2C_X20restarting), - /* K41 */ be_nested_str(BRY_X3A_X20Exception_X3E_X20_X27_X25s_X27_X20_X2D_X20_X25s), - /* K42 */ be_nested_str(factory), - /* K43 */ be_nested_str(ota_max), - /* K44 */ be_nested_str(type), - /* K45 */ be_nested_str(subtype), - /* K46 */ be_nested_str(start), - /* K47 */ be_nested_str(Partition_otadata), - /* K48 */ be_nested_str(has_factory), - /* K49 */ be_nested_str(_X3Cinstance_X3A_X20Partition_X28_X5B_X0A), - /* K50 */ be_nested_str(_X20_X20), - /* K51 */ be_nested_str(tostring), - /* K52 */ be_nested_str(_X0A), - /* K53 */ be_nested_str(_X5D_X2C_X0A_X20_X20), - /* K54 */ be_nested_str(_X0A_X29_X3E), - /* K55 */ be_nested_str(get_factory_slot), - /* K56 */ be_nested_str(value_error), - /* K57 */ be_nested_str(Too_X20many_X20partiition_X20slots), - /* K58 */ be_nested_str(MD5), - /* K59 */ be_nested_str(update), - /* K60 */ be_nested_str(EBEBFFFFFFFFFFFFFFFFFFFFFFFFFFFF), - /* K61 */ be_nested_str(finish), - /* K62 */ be_nested_str(is_spiffs), - /* K63 */ be_nested_str(No_X20FS_X20partition_X20found), - /* K64 */ be_nested_str(00), - /* K65 */ be_nested_str(is_factory), - /* K66 */ be_nested_str(Invalid_X20ota_X20partition_X20number), - /* K67 */ be_nested_str(set_ota_max), - /* K68 */ be_nested_str(set_active), - /* K69 */ be_nested_str(get_max_flash_size_k), - /* K70 */ be_nested_str(is_ota), -}; - - -extern const bclass be_class_Partition; - -/******************************************************************** -** Solidified function: save -********************************************************************/ -be_local_closure(class_Partition_save, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition, /* shared constants */ - &be_const_str_save, - &be_const_str_solidified, - ( &(const binstruction[15]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C080101, // 0001 GETMET R2 R0 K1 - 0x7C080200, // 0002 CALL R2 1 - 0x8C0C0302, // 0003 GETMET R3 R1 K2 - 0x54167FFF, // 0004 LDINT R5 32768 - 0x541A0FFF, // 0005 LDINT R6 4096 - 0x7C0C0600, // 0006 CALL R3 3 - 0x8C0C0303, // 0007 GETMET R3 R1 K3 - 0x54167FFF, // 0008 LDINT R5 32768 - 0x5C180400, // 0009 MOVE R6 R2 - 0x7C0C0600, // 000A CALL R3 3 - 0x880C0104, // 000B GETMBR R3 R0 K4 - 0x8C0C0705, // 000C GETMET R3 R3 K5 - 0x7C0C0200, // 000D CALL R3 1 - 0x80000000, // 000E RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: load -********************************************************************/ -be_local_closure(class_Partition_load, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition, /* shared constants */ - &be_const_str_load, - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C080307, // 0001 GETMET R2 R1 K7 - 0x54127FFF, // 0002 LDINT R4 32768 - 0x54160FFF, // 0003 LDINT R5 4096 - 0x7C080600, // 0004 CALL R2 3 - 0x90020C02, // 0005 SETMBR R0 K6 R2 - 0x80000000, // 0006 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_active -********************************************************************/ -be_local_closure(class_Partition_get_active, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition, /* shared constants */ - &be_const_str_get_active, - &be_const_str_solidified, - ( &(const binstruction[ 3]) { /* code */ - 0x88040104, // 0000 GETMBR R1 R0 K4 - 0x88040308, // 0001 GETMBR R1 R1 K8 - 0x80040200, // 0002 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_Partition_init, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0x60040012, // 0000 GETGBL R1 G18 - 0x7C040000, // 0001 CALL R1 0 - 0x90021201, // 0002 SETMBR R0 K9 R1 - 0x8C04010A, // 0003 GETMET R1 R0 K10 - 0x7C040200, // 0004 CALL R1 1 - 0x8C04010B, // 0005 GETMET R1 R0 K11 - 0x7C040200, // 0006 CALL R1 1 - 0x8C04010C, // 0007 GETMET R1 R0 K12 - 0x7C040200, // 0008 CALL R1 1 - 0x80000000, // 0009 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: parse -********************************************************************/ -be_local_closure(class_Partition_parse, /* name */ - be_nested_proto( - 9, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition, /* shared constants */ - &be_const_str_parse, - &be_const_str_solidified, - ( &(const binstruction[57]) { /* code */ - 0x60040010, // 0000 GETGBL R1 G16 - 0x540A005D, // 0001 LDINT R2 94 - 0x400A1A02, // 0002 CONNECT R2 K13 R2 - 0x7C040200, // 0003 CALL R1 1 - 0xA802002F, // 0004 EXBLK 0 #0035 - 0x5C080200, // 0005 MOVE R2 R1 - 0x7C080000, // 0006 CALL R2 0 - 0x540E001F, // 0007 LDINT R3 32 - 0x080C0403, // 0008 MUL R3 R2 R3 - 0x0010050E, // 0009 ADD R4 R2 K14 - 0x5416001F, // 000A LDINT R5 32 - 0x08100805, // 000B MUL R4 R4 R5 - 0x0410090E, // 000C SUB R4 R4 K14 - 0x400C0604, // 000D CONNECT R3 R3 R4 - 0x88100106, // 000E GETMBR R4 R0 K6 - 0x940C0803, // 000F GETIDX R3 R4 R3 - 0x8C14070F, // 0010 GETMET R5 R3 K15 - 0x581C000D, // 0011 LDCONST R7 K13 - 0x58200010, // 0012 LDCONST R8 K16 - 0x7C140600, // 0013 CALL R5 3 - 0x5C100A00, // 0014 MOVE R4 R5 - 0x541650A9, // 0015 LDINT R5 20650 - 0x1C140805, // 0016 EQ R5 R4 R5 - 0x78160008, // 0017 JMPF R5 #0021 - 0xB8162200, // 0018 GETNGBL R5 K17 - 0x8C140B12, // 0019 GETMET R5 R5 K18 - 0x5C1C0600, // 001A MOVE R7 R3 - 0x7C140400, // 001B CALL R5 2 - 0x88180109, // 001C GETMBR R6 R0 K9 - 0x8C180D13, // 001D GETMET R6 R6 K19 - 0x5C200A00, // 001E MOVE R8 R5 - 0x7C180400, // 001F CALL R6 2 - 0x70020010, // 0020 JMP #0032 - 0x5416EBEA, // 0021 LDINT R5 60395 - 0x1C140805, // 0022 EQ R5 R4 R5 - 0x7816000C, // 0023 JMPF R5 #0031 - 0x5416001F, // 0024 LDINT R5 32 - 0x08140405, // 0025 MUL R5 R2 R5 - 0x541A000F, // 0026 LDINT R6 16 - 0x00140A06, // 0027 ADD R5 R5 R6 - 0x541A0020, // 0028 LDINT R6 33 - 0x08180406, // 0029 MUL R6 R2 R6 - 0x04180D0E, // 002A SUB R6 R6 K14 - 0x40140A06, // 002B CONNECT R5 R5 R6 - 0x88180106, // 002C GETMBR R6 R0 K6 - 0x94140C05, // 002D GETIDX R5 R6 R5 - 0x90022805, // 002E SETMBR R0 K20 R5 - 0x70020002, // 002F JMP #0033 - 0x70020000, // 0030 JMP #0032 - 0x70020000, // 0031 JMP #0033 - 0x7001FFD1, // 0032 JMP #0005 - 0xA8040001, // 0033 EXBLK 1 1 - 0x70020002, // 0034 JMP #0038 - 0x58040015, // 0035 LDCONST R1 K21 - 0xAC040200, // 0036 CATCH R1 1 0 - 0xB0080000, // 0037 RAISE 2 R0 R0 - 0x80000000, // 0038 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_max_flash_size_k -********************************************************************/ -be_local_closure(class_Partition_get_max_flash_size_k, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition, /* shared constants */ - &be_const_str_get_max_flash_size_k, - &be_const_str_solidified, - ( &(const binstruction[20]) { /* code */ - 0xB8062C00, // 0000 GETNGBL R1 K22 - 0x8C040317, // 0001 GETMET R1 R1 K23 - 0x7C040200, // 0002 CALL R1 1 - 0x94040300, // 0003 GETIDX R1 R1 K0 - 0xB80A2C00, // 0004 GETNGBL R2 K22 - 0x8C080517, // 0005 GETMET R2 R2 K23 - 0x7C080200, // 0006 CALL R2 1 - 0x8C080518, // 0007 GETMET R2 R2 K24 - 0x58100019, // 0008 LDCONST R4 K25 - 0x5C140200, // 0009 MOVE R5 R1 - 0x7C080600, // 000A CALL R2 3 - 0x200C0202, // 000B NE R3 R1 R2 - 0x780E0005, // 000C JMPF R3 #0013 - 0x8C0C011A, // 000D GETMET R3 R0 K26 - 0x7C0C0200, // 000E CALL R3 1 - 0x4C100000, // 000F LDNIL R4 - 0x200C0604, // 0010 NE R3 R3 R4 - 0x780E0000, // 0011 JMPF R3 #0013 - 0x5C040400, // 0012 MOVE R1 R2 - 0x80040200, // 0013 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: resize_max_flash_size_k -********************************************************************/ -be_local_closure(class_Partition_resize_max_flash_size_k, /* name */ - be_nested_proto( - 16, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition, /* shared constants */ - &be_const_str_resize_max_flash_size_k, - &be_const_str_solidified, - ( &(const binstruction[94]) { /* code */ - 0xB8062C00, // 0000 GETNGBL R1 K22 - 0x8C040317, // 0001 GETMET R1 R1 K23 - 0x7C040200, // 0002 CALL R1 1 - 0x94040300, // 0003 GETIDX R1 R1 K0 - 0xB80A2C00, // 0004 GETNGBL R2 K22 - 0x8C080517, // 0005 GETMET R2 R2 K23 - 0x7C080200, // 0006 CALL R2 1 - 0x8C080518, // 0007 GETMET R2 R2 K24 - 0x58100019, // 0008 LDCONST R4 K25 - 0x5C140200, // 0009 MOVE R5 R1 - 0x7C080600, // 000A CALL R2 3 - 0x8C0C011A, // 000B GETMET R3 R0 K26 - 0x7C0C0200, // 000C CALL R3 1 - 0x20100202, // 000D NE R4 R1 R2 - 0x7812004D, // 000E JMPF R4 #005D - 0x4C100000, // 000F LDNIL R4 - 0x20100604, // 0010 NE R4 R3 R4 - 0x7812004A, // 0011 JMPF R4 #005D - 0xA4120000, // 0012 IMPORT R4 K0 - 0x5C040400, // 0013 MOVE R1 R2 - 0x8C140907, // 0014 GETMET R5 R4 K7 - 0x5C1C0600, // 0015 MOVE R7 R3 - 0x54220003, // 0016 LDINT R8 4 - 0x7C140600, // 0017 CALL R5 3 - 0x94180B1B, // 0018 GETIDX R6 R5 K27 - 0x4C1C0000, // 0019 LDNIL R7 - 0x542203FF, // 001A LDINT R8 1024 - 0x0C200408, // 001B DIV R8 R2 R8 - 0x1C24110E, // 001C EQ R9 R8 K14 - 0x78260001, // 001D JMPF R9 #0020 - 0x581C000D, // 001E LDCONST R7 K13 - 0x70020020, // 001F JMP #0041 - 0x1C241110, // 0020 EQ R9 R8 K16 - 0x78260001, // 0021 JMPF R9 #0024 - 0x541E000F, // 0022 LDINT R7 16 - 0x7002001C, // 0023 JMP #0041 - 0x54260003, // 0024 LDINT R9 4 - 0x1C241009, // 0025 EQ R9 R8 R9 - 0x78260001, // 0026 JMPF R9 #0029 - 0x541E001F, // 0027 LDINT R7 32 - 0x70020017, // 0028 JMP #0041 - 0x54260007, // 0029 LDINT R9 8 - 0x1C241009, // 002A EQ R9 R8 R9 - 0x78260001, // 002B JMPF R9 #002E - 0x541E002F, // 002C LDINT R7 48 - 0x70020012, // 002D JMP #0041 - 0x5426000F, // 002E LDINT R9 16 - 0x1C241009, // 002F EQ R9 R8 R9 - 0x78260001, // 0030 JMPF R9 #0033 - 0x541E003F, // 0031 LDINT R7 64 - 0x7002000D, // 0032 JMP #0041 - 0x5426001F, // 0033 LDINT R9 32 - 0x1C241009, // 0034 EQ R9 R8 R9 - 0x78260001, // 0035 JMPF R9 #0038 - 0x541E004F, // 0036 LDINT R7 80 - 0x70020008, // 0037 JMP #0041 - 0x5426003F, // 0038 LDINT R9 64 - 0x1C241009, // 0039 EQ R9 R8 R9 - 0x78260001, // 003A JMPF R9 #003D - 0x541E005F, // 003B LDINT R7 96 - 0x70020003, // 003C JMP #0041 - 0x5426007F, // 003D LDINT R9 128 - 0x1C241009, // 003E EQ R9 R8 R9 - 0x78260000, // 003F JMPF R9 #0041 - 0x541E006F, // 0040 LDINT R7 112 - 0x4C240000, // 0041 LDNIL R9 - 0x20240E09, // 0042 NE R9 R7 R9 - 0x78260013, // 0043 JMPF R9 #0058 - 0x94240B1B, // 0044 GETIDX R9 R5 K27 - 0x94280B1B, // 0045 GETIDX R10 R5 K27 - 0x542E000E, // 0046 LDINT R11 15 - 0x2C28140B, // 0047 AND R10 R10 R11 - 0x30281407, // 0048 OR R10 R10 R7 - 0x9816360A, // 0049 SETIDX R5 K27 R10 - 0x8C280903, // 004A GETMET R10 R4 K3 - 0x5C300600, // 004B MOVE R12 R3 - 0x5C340A00, // 004C MOVE R13 R5 - 0x7C280600, // 004D CALL R10 3 - 0xB82A2C00, // 004E GETNGBL R10 K22 - 0x8C28151C, // 004F GETMET R10 R10 K28 - 0x60300018, // 0050 GETGBL R12 G24 - 0x5834001D, // 0051 LDCONST R13 K29 - 0x5C381200, // 0052 MOVE R14 R9 - 0x943C0B1B, // 0053 GETIDX R15 R5 K27 - 0x7C300600, // 0054 CALL R12 3 - 0x5834001B, // 0055 LDCONST R13 K27 - 0x7C280600, // 0056 CALL R10 3 - 0x70020004, // 0057 JMP #005D - 0x60240008, // 0058 GETGBL R9 G8 - 0x5C281000, // 0059 MOVE R10 R8 - 0x7C240200, // 005A CALL R9 1 - 0x00263C09, // 005B ADD R9 K30 R9 - 0xB0063E09, // 005C RAISE 1 K31 R9 - 0x80000000, // 005D RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_flash_definition_sector -********************************************************************/ -be_local_closure(class_Partition_get_flash_definition_sector, /* name */ - be_nested_proto( - 9, /* nstack */ - 0, /* argc */ - 12, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition, /* shared constants */ - &be_const_str_get_flash_definition_sector, - &be_const_str_solidified, - ( &(const binstruction[26]) { /* code */ - 0x58000020, // 0000 LDCONST R0 K32 - 0xA4060000, // 0001 IMPORT R1 K0 - 0x60080010, // 0002 GETGBL R2 G16 - 0x400E1B0E, // 0003 CONNECT R3 K13 K14 - 0x7C080200, // 0004 CALL R2 1 - 0xA802000F, // 0005 EXBLK 0 #0016 - 0x5C0C0400, // 0006 MOVE R3 R2 - 0x7C0C0000, // 0007 CALL R3 0 - 0x54120FFF, // 0008 LDINT R4 4096 - 0x08100604, // 0009 MUL R4 R3 R4 - 0x8C140307, // 000A GETMET R5 R1 K7 - 0x5C1C0800, // 000B MOVE R7 R4 - 0x5820000E, // 000C LDCONST R8 K14 - 0x7C140600, // 000D CALL R5 3 - 0x60180015, // 000E GETGBL R6 G21 - 0x581C0021, // 000F LDCONST R7 K33 - 0x7C180200, // 0010 CALL R6 1 - 0x1C140A06, // 0011 EQ R5 R5 R6 - 0x78160001, // 0012 JMPF R5 #0015 - 0xA8040001, // 0013 EXBLK 1 1 - 0x80040800, // 0014 RET 1 R4 - 0x7001FFEF, // 0015 JMP #0006 - 0x58080015, // 0016 LDCONST R2 K21 - 0xAC080200, // 0017 CATCH R2 1 0 - 0xB0080000, // 0018 RAISE 2 R0 R0 - 0x80000000, // 0019 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: resize_fs_to_max -********************************************************************/ -be_local_closure(class_Partition_resize_fs_to_max, /* name */ - be_nested_proto( - 9, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition, /* shared constants */ - &be_const_str_resize_fs_to_max, - &be_const_str_solidified, - ( &(const binstruction[52]) { /* code */ - 0xA8020024, // 0000 EXBLK 0 #0026 - 0x8C040122, // 0001 GETMET R1 R0 K34 - 0x7C040200, // 0002 CALL R1 1 - 0x1808030D, // 0003 LE R2 R1 K13 - 0x780A0002, // 0004 JMPF R2 #0008 - 0x4C080000, // 0005 LDNIL R2 - 0xA8040001, // 0006 EXBLK 1 1 - 0x80040400, // 0007 RET 1 R2 - 0xB80A2C00, // 0008 GETNGBL R2 K22 - 0x8C08051C, // 0009 GETMET R2 R2 K28 - 0x60100018, // 000A GETGBL R4 G24 - 0x58140023, // 000B LDCONST R5 K35 - 0x5C180200, // 000C MOVE R6 R1 - 0x7C100400, // 000D CALL R4 2 - 0x58140010, // 000E LDCONST R5 K16 - 0x7C080600, // 000F CALL R2 3 - 0x8C080124, // 0010 GETMET R2 R0 K36 - 0x7C080200, // 0011 CALL R2 1 - 0x88080109, // 0012 GETMBR R2 R0 K9 - 0x540DFFFE, // 0013 LDINT R3 -1 - 0x94080403, // 0014 GETIDX R2 R2 R3 - 0x541203FF, // 0015 LDINT R4 1024 - 0x08100204, // 0016 MUL R4 R1 R4 - 0x880C0525, // 0017 GETMBR R3 R2 K37 - 0x000C0604, // 0018 ADD R3 R3 R4 - 0x900A4A03, // 0019 SETMBR R2 K37 R3 - 0x8C0C0105, // 001A GETMET R3 R0 K5 - 0x7C0C0200, // 001B CALL R3 1 - 0xB80E2C00, // 001C GETNGBL R3 K22 - 0x880C0726, // 001D GETMBR R3 R3 K38 - 0x900E4F10, // 001E SETMBR R3 K39 K16 - 0xB80E2C00, // 001F GETNGBL R3 K22 - 0x8C0C071C, // 0020 GETMET R3 R3 K28 - 0x58140028, // 0021 LDCONST R5 K40 - 0x58180010, // 0022 LDCONST R6 K16 - 0x7C0C0600, // 0023 CALL R3 3 - 0xA8040001, // 0024 EXBLK 1 1 - 0x7002000C, // 0025 JMP #0033 - 0xAC040002, // 0026 CATCH R1 0 2 - 0x70020009, // 0027 JMP #0032 - 0xB80E2C00, // 0028 GETNGBL R3 K22 - 0x8C0C071C, // 0029 GETMET R3 R3 K28 - 0x60140018, // 002A GETGBL R5 G24 - 0x58180029, // 002B LDCONST R6 K41 - 0x5C1C0200, // 002C MOVE R7 R1 - 0x5C200400, // 002D MOVE R8 R2 - 0x7C140600, // 002E CALL R5 3 - 0x58180010, // 002F LDCONST R6 K16 - 0x7C0C0600, // 0030 CALL R3 3 - 0x70020000, // 0031 JMP #0033 - 0xB0080000, // 0032 RAISE 2 R0 R0 - 0x80000000, // 0033 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: switch_factory -********************************************************************/ -be_local_closure(class_Partition_switch_factory, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition, /* shared constants */ - &be_const_str_switch_factory, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x8C0C052A, // 0001 GETMET R3 R2 K42 - 0x5C140200, // 0002 MOVE R5 R1 - 0x7C0C0400, // 0003 CALL R3 2 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: load_otadata -********************************************************************/ -be_local_closure(class_Partition_load_otadata, /* name */ - be_nested_proto( - 8, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition, /* shared constants */ - &be_const_str_load_otadata, - &be_const_str_solidified, - ( &(const binstruction[29]) { /* code */ - 0x5406DFFF, // 0000 LDINT R1 57344 - 0x8C08012B, // 0001 GETMET R2 R0 K43 - 0x7C080200, // 0002 CALL R2 1 - 0x600C0010, // 0003 GETGBL R3 G16 - 0x88100109, // 0004 GETMBR R4 R0 K9 - 0x7C0C0200, // 0005 CALL R3 1 - 0xA8020009, // 0006 EXBLK 0 #0011 - 0x5C100600, // 0007 MOVE R4 R3 - 0x7C100000, // 0008 CALL R4 0 - 0x8814092C, // 0009 GETMBR R5 R4 K44 - 0x1C140B0E, // 000A EQ R5 R5 K14 - 0x78160003, // 000B JMPF R5 #0010 - 0x8814092D, // 000C GETMBR R5 R4 K45 - 0x1C140B0D, // 000D EQ R5 R5 K13 - 0x78160000, // 000E JMPF R5 #0010 - 0x8804092E, // 000F GETMBR R1 R4 K46 - 0x7001FFF5, // 0010 JMP #0007 - 0x580C0015, // 0011 LDCONST R3 K21 - 0xAC0C0200, // 0012 CATCH R3 1 0 - 0xB0080000, // 0013 RAISE 2 R0 R0 - 0xB80E2200, // 0014 GETNGBL R3 K17 - 0x8C0C072F, // 0015 GETMET R3 R3 K47 - 0x5C140400, // 0016 MOVE R5 R2 - 0x8C180130, // 0017 GETMET R6 R0 K48 - 0x7C180200, // 0018 CALL R6 1 - 0x5C1C0200, // 0019 MOVE R7 R1 - 0x7C0C0800, // 001A CALL R3 4 - 0x90020803, // 001B SETMBR R0 K4 R3 - 0x80000000, // 001C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: tostring -********************************************************************/ -be_local_closure(class_Partition_tostring, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition, /* shared constants */ - &be_const_str_tostring, - &be_const_str_solidified, - ( &(const binstruction[23]) { /* code */ - 0x58040031, // 0000 LDCONST R1 K49 - 0x60080010, // 0001 GETGBL R2 G16 - 0x880C0109, // 0002 GETMBR R3 R0 K9 - 0x7C080200, // 0003 CALL R2 1 - 0xA8020007, // 0004 EXBLK 0 #000D - 0x5C0C0400, // 0005 MOVE R3 R2 - 0x7C0C0000, // 0006 CALL R3 0 - 0x00040332, // 0007 ADD R1 R1 K50 - 0x8C100733, // 0008 GETMET R4 R3 K51 - 0x7C100200, // 0009 CALL R4 1 - 0x00040204, // 000A ADD R1 R1 R4 - 0x00040334, // 000B ADD R1 R1 K52 - 0x7001FFF7, // 000C JMP #0005 - 0x58080015, // 000D LDCONST R2 K21 - 0xAC080200, // 000E CATCH R2 1 0 - 0xB0080000, // 000F RAISE 2 R0 R0 - 0x00040335, // 0010 ADD R1 R1 K53 - 0x88080104, // 0011 GETMBR R2 R0 K4 - 0x8C080533, // 0012 GETMET R2 R2 K51 - 0x7C080200, // 0013 CALL R2 1 - 0x00040202, // 0014 ADD R1 R1 R2 - 0x00040336, // 0015 ADD R1 R1 K54 - 0x80040200, // 0016 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: has_factory -********************************************************************/ -be_local_closure(class_Partition_has_factory, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition, /* shared constants */ - &be_const_str_has_factory, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x8C040137, // 0000 GETMET R1 R0 K55 - 0x7C040200, // 0001 CALL R1 1 - 0x4C080000, // 0002 LDNIL R2 - 0x20040202, // 0003 NE R1 R1 R2 - 0x80040200, // 0004 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: tobytes -********************************************************************/ -be_local_closure(class_Partition_tobytes, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition, /* shared constants */ - &be_const_str_tobytes, - &be_const_str_solidified, - ( &(const binstruction[35]) { /* code */ - 0x6004000C, // 0000 GETGBL R1 G12 - 0x88080109, // 0001 GETMBR R2 R0 K9 - 0x7C040200, // 0002 CALL R1 1 - 0x540A005E, // 0003 LDINT R2 95 - 0x24040202, // 0004 GT R1 R1 R2 - 0x78060000, // 0005 JMPF R1 #0007 - 0xB0067139, // 0006 RAISE 1 K56 K57 - 0x60040015, // 0007 GETGBL R1 G21 - 0x7C040000, // 0008 CALL R1 0 - 0x60080010, // 0009 GETGBL R2 G16 - 0x880C0109, // 000A GETMBR R3 R0 K9 - 0x7C080200, // 000B CALL R2 1 - 0xA8020005, // 000C EXBLK 0 #0013 - 0x5C0C0400, // 000D MOVE R3 R2 - 0x7C0C0000, // 000E CALL R3 0 - 0x8C100701, // 000F GETMET R4 R3 K1 - 0x7C100200, // 0010 CALL R4 1 - 0x00040204, // 0011 ADD R1 R1 R4 - 0x7001FFF9, // 0012 JMP #000D - 0x58080015, // 0013 LDCONST R2 K21 - 0xAC080200, // 0014 CATCH R2 1 0 - 0xB0080000, // 0015 RAISE 2 R0 R0 - 0xB80A7400, // 0016 GETNGBL R2 K58 - 0x7C080000, // 0017 CALL R2 0 - 0x8C0C053B, // 0018 GETMET R3 R2 K59 - 0x5C140200, // 0019 MOVE R5 R1 - 0x7C0C0400, // 001A CALL R3 2 - 0x600C0015, // 001B GETGBL R3 G21 - 0x5810003C, // 001C LDCONST R4 K60 - 0x7C0C0200, // 001D CALL R3 1 - 0x00040203, // 001E ADD R1 R1 R3 - 0x8C0C053D, // 001F GETMET R3 R2 K61 - 0x7C0C0200, // 0020 CALL R3 1 - 0x00040203, // 0021 ADD R1 R1 R3 - 0x80040200, // 0022 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: ota_max -********************************************************************/ -be_local_closure(class_Partition_ota_max, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition, /* shared constants */ - &be_const_str_ota_max, - &be_const_str_solidified, - ( &(const binstruction[32]) { /* code */ - 0x4C040000, // 0000 LDNIL R1 - 0x60080010, // 0001 GETGBL R2 G16 - 0x880C0109, // 0002 GETMBR R3 R0 K9 - 0x7C080200, // 0003 CALL R2 1 - 0xA8020016, // 0004 EXBLK 0 #001C - 0x5C0C0400, // 0005 MOVE R3 R2 - 0x7C0C0000, // 0006 CALL R3 0 - 0x8810072C, // 0007 GETMBR R4 R3 K44 - 0x1C10090D, // 0008 EQ R4 R4 K13 - 0x78120010, // 0009 JMPF R4 #001B - 0x8810072D, // 000A GETMBR R4 R3 K45 - 0x5416000F, // 000B LDINT R5 16 - 0x28100805, // 000C GE R4 R4 R5 - 0x7812000C, // 000D JMPF R4 #001B - 0x8810072D, // 000E GETMBR R4 R3 K45 - 0x5416001F, // 000F LDINT R5 32 - 0x14100805, // 0010 LT R4 R4 R5 - 0x78120008, // 0011 JMPF R4 #001B - 0x8810072D, // 0012 GETMBR R4 R3 K45 - 0x5416000F, // 0013 LDINT R5 16 - 0x04100805, // 0014 SUB R4 R4 R5 - 0x4C140000, // 0015 LDNIL R5 - 0x1C140205, // 0016 EQ R5 R1 R5 - 0x74160001, // 0017 JMPT R5 #001A - 0x24140801, // 0018 GT R5 R4 R1 - 0x78160000, // 0019 JMPF R5 #001B - 0x5C040800, // 001A MOVE R1 R4 - 0x7001FFE8, // 001B JMP #0005 - 0x58080015, // 001C LDCONST R2 K21 - 0xAC080200, // 001D CATCH R2 1 0 - 0xB0080000, // 001E RAISE 2 R0 R0 - 0x80040200, // 001F RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: invalidate_spiffs -********************************************************************/ -be_local_closure(class_Partition_invalidate_spiffs, /* name */ - be_nested_proto( - 8, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition, /* shared constants */ - &be_const_str_invalidate_spiffs, - &be_const_str_solidified, - ( &(const binstruction[22]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x88080109, // 0001 GETMBR R2 R0 K9 - 0x540DFFFE, // 0002 LDINT R3 -1 - 0x94080403, // 0003 GETIDX R2 R2 R3 - 0x8C0C053E, // 0004 GETMET R3 R2 K62 - 0x7C0C0200, // 0005 CALL R3 1 - 0x740E0000, // 0006 JMPT R3 #0008 - 0xB006713F, // 0007 RAISE 1 K56 K63 - 0x600C0015, // 0008 GETGBL R3 G21 - 0x58100040, // 0009 LDCONST R4 K64 - 0x7C0C0200, // 000A CALL R3 1 - 0x8C100303, // 000B GETMET R4 R1 K3 - 0x8818052E, // 000C GETMBR R6 R2 K46 - 0x5C1C0600, // 000D MOVE R7 R3 - 0x7C100600, // 000E CALL R4 3 - 0x8C100303, // 000F GETMET R4 R1 K3 - 0x8818052E, // 0010 GETMBR R6 R2 K46 - 0x541E0FFF, // 0011 LDINT R7 4096 - 0x00180C07, // 0012 ADD R6 R6 R7 - 0x5C1C0600, // 0013 MOVE R7 R3 - 0x7C100600, // 0014 CALL R4 3 - 0x80000000, // 0015 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_factory_slot -********************************************************************/ -be_local_closure(class_Partition_get_factory_slot, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition, /* shared constants */ - &be_const_str_get_factory_slot, - &be_const_str_solidified, - ( &(const binstruction[16]) { /* code */ - 0x60040010, // 0000 GETGBL R1 G16 - 0x88080109, // 0001 GETMBR R2 R0 K9 - 0x7C040200, // 0002 CALL R1 1 - 0xA8020007, // 0003 EXBLK 0 #000C - 0x5C080200, // 0004 MOVE R2 R1 - 0x7C080000, // 0005 CALL R2 0 - 0x8C0C0541, // 0006 GETMET R3 R2 K65 - 0x7C0C0200, // 0007 CALL R3 1 - 0x780E0001, // 0008 JMPF R3 #000B - 0xA8040001, // 0009 EXBLK 1 1 - 0x80040400, // 000A RET 1 R2 - 0x7001FFF7, // 000B JMP #0004 - 0x58040015, // 000C LDCONST R1 K21 - 0xAC040200, // 000D CATCH R1 1 0 - 0xB0080000, // 000E RAISE 2 R0 R0 - 0x80000000, // 000F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_active -********************************************************************/ -be_local_closure(class_Partition_set_active, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition, /* shared constants */ - &be_const_str_set_active, - &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0x1408030D, // 0000 LT R2 R1 K13 - 0x740A0003, // 0001 JMPT R2 #0006 - 0x8C08012B, // 0002 GETMET R2 R0 K43 - 0x7C080200, // 0003 CALL R2 1 - 0x24080202, // 0004 GT R2 R1 R2 - 0x780A0000, // 0005 JMPF R2 #0007 - 0xB0067142, // 0006 RAISE 1 K56 K66 - 0x88080104, // 0007 GETMBR R2 R0 K4 - 0x8C080543, // 0008 GETMET R2 R2 K67 - 0x8C10012B, // 0009 GETMET R4 R0 K43 - 0x7C100200, // 000A CALL R4 1 - 0x7C080400, // 000B CALL R2 2 - 0x88080104, // 000C GETMBR R2 R0 K4 - 0x8C080544, // 000D GETMET R2 R2 K68 - 0x5C100200, // 000E MOVE R4 R1 - 0x7C080400, // 000F CALL R2 2 - 0x80000000, // 0010 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_unallocated_k -********************************************************************/ -be_local_closure(class_Partition_get_unallocated_k, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition, /* shared constants */ - &be_const_str_get_unallocated_k, - &be_const_str_solidified, - ( &(const binstruction[18]) { /* code */ - 0x88040109, // 0000 GETMBR R1 R0 K9 - 0x5409FFFE, // 0001 LDINT R2 -1 - 0x94040202, // 0002 GETIDX R1 R1 R2 - 0x8C08033E, // 0003 GETMET R2 R1 K62 - 0x7C080200, // 0004 CALL R2 1 - 0x780A000A, // 0005 JMPF R2 #0011 - 0x8C080145, // 0006 GETMET R2 R0 K69 - 0x7C080200, // 0007 CALL R2 1 - 0x880C032E, // 0008 GETMBR R3 R1 K46 - 0x88100325, // 0009 GETMBR R4 R1 K37 - 0x000C0604, // 000A ADD R3 R3 R4 - 0x541203FF, // 000B LDINT R4 1024 - 0x0C0C0604, // 000C DIV R3 R3 R4 - 0x14100602, // 000D LT R4 R3 R2 - 0x78120001, // 000E JMPF R4 #0011 - 0x04100403, // 000F SUB R4 R2 R3 - 0x80040800, // 0010 RET 1 R4 - 0x80061A00, // 0011 RET 1 K13 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_ota_slot -********************************************************************/ -be_local_closure(class_Partition_get_ota_slot, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition, /* shared constants */ - &be_const_str_get_ota_slot, - &be_const_str_solidified, - ( &(const binstruction[18]) { /* code */ - 0x60080010, // 0000 GETGBL R2 G16 - 0x880C0109, // 0001 GETMBR R3 R0 K9 - 0x7C080200, // 0002 CALL R2 1 - 0xA8020008, // 0003 EXBLK 0 #000D - 0x5C0C0400, // 0004 MOVE R3 R2 - 0x7C0C0000, // 0005 CALL R3 0 - 0x8C100746, // 0006 GETMET R4 R3 K70 - 0x7C100200, // 0007 CALL R4 1 - 0x1C100801, // 0008 EQ R4 R4 R1 - 0x78120001, // 0009 JMPF R4 #000C - 0xA8040001, // 000A EXBLK 1 1 - 0x80040600, // 000B RET 1 R3 - 0x7001FFF6, // 000C JMP #0004 - 0x58080015, // 000D LDCONST R2 K21 - 0xAC080200, // 000E CATCH R2 1 0 - 0xB0080000, // 000F RAISE 2 R0 R0 - 0x4C080000, // 0010 LDNIL R2 - 0x80040400, // 0011 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: Partition -********************************************************************/ -be_local_class(Partition, - 4, - NULL, - be_nested_map(24, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(save, -1), be_const_closure(class_Partition_save_closure) }, - { be_const_key(load, 8), be_const_closure(class_Partition_load_closure) }, - { be_const_key(get_active, -1), be_const_closure(class_Partition_get_active_closure) }, - { be_const_key(init, -1), be_const_closure(class_Partition_init_closure) }, - { be_const_key(parse, 21), be_const_closure(class_Partition_parse_closure) }, - { be_const_key(otadata, -1), be_const_var(3) }, - { be_const_key(slots, 11), be_const_var(2) }, - { be_const_key(get_ota_slot, -1), be_const_closure(class_Partition_get_ota_slot_closure) }, - { be_const_key(resize_max_flash_size_k, -1), be_const_closure(class_Partition_resize_max_flash_size_k_closure) }, - { be_const_key(get_flash_definition_sector, -1), be_const_static_closure(class_Partition_get_flash_definition_sector_closure) }, - { be_const_key(resize_fs_to_max, -1), be_const_closure(class_Partition_resize_fs_to_max_closure) }, - { be_const_key(set_active, -1), be_const_closure(class_Partition_set_active_closure) }, - { be_const_key(get_factory_slot, -1), be_const_closure(class_Partition_get_factory_slot_closure) }, - { be_const_key(tostring, -1), be_const_closure(class_Partition_tostring_closure) }, - { be_const_key(invalidate_spiffs, -1), be_const_closure(class_Partition_invalidate_spiffs_closure) }, - { be_const_key(tobytes, 12), be_const_closure(class_Partition_tobytes_closure) }, - { be_const_key(load_otadata, 20), be_const_closure(class_Partition_load_otadata_closure) }, - { be_const_key(raw, -1), be_const_var(0) }, - { be_const_key(has_factory, 14), be_const_closure(class_Partition_has_factory_closure) }, - { be_const_key(md5, -1), be_const_var(1) }, - { be_const_key(ota_max, -1), be_const_closure(class_Partition_ota_max_closure) }, - { be_const_key(switch_factory, -1), be_const_closure(class_Partition_switch_factory_closure) }, - { be_const_key(get_unallocated_k, -1), be_const_closure(class_Partition_get_unallocated_k_closure) }, - { be_const_key(get_max_flash_size_k, 7), be_const_closure(class_Partition_get_max_flash_size_k_closure) }, - })), - (bstring*) &be_const_str_Partition -); -extern const bclass be_class_Partition_info; -// compact class 'Partition_info' ktab size: 49, total: 92 (saved 344 bytes) -static const bvalue be_ktab_class_Partition_info[49] = { - /* K0 */ be_nested_str(type), - /* K1 */ be_const_int(0), - /* K2 */ be_nested_str(subtype), - /* K3 */ be_nested_str(app), - /* K4 */ be_const_int(1), - /* K5 */ be_nested_str(data), - /* K6 */ be_nested_str(0x_X2502X), - /* K7 */ be_nested_str(start), - /* K8 */ be_nested_str(sz), - /* K9 */ be_nested_str(label), - /* K10 */ be_nested_str(), - /* K11 */ be_nested_str(flags), - /* K12 */ be_nested_str(get), - /* K13 */ be_const_int(2), - /* K14 */ be_const_int(3), - /* K15 */ be_nested_str(remove_trailing_zeroes), - /* K16 */ be_nested_str(asstring), - /* K17 */ be_nested_str(invalid_X20magic_X20number_X20_X2502X), - /* K18 */ be_nested_str(internal_error), - /* K19 */ be_nested_str(factory), - /* K20 */ be_nested_str(ota_), - /* K21 */ be_nested_str(test), - /* K22 */ be_nested_str(otadata), - /* K23 */ be_nested_str(phy), - /* K24 */ be_nested_str(nvs), - /* K25 */ be_nested_str(coredump), - /* K26 */ be_nested_str(nvskeys), - /* K27 */ be_nested_str(efuse_em), - /* K28 */ be_nested_str(esphttpd), - /* K29 */ be_nested_str(fat), - /* K30 */ be_nested_str(spiffs), - /* K31 */ be_nested_str(type_to_string), - /* K32 */ be_nested_str(subtype_to_string), - /* K33 */ be_nested_str(_X20_X28), - /* K34 */ be_nested_str(_X29), - /* K35 */ be_nested_str(_X3Cinstance_X3A_X20Partition_info_X28_X25d_X25s_X2C_X25d_X25s_X2C0x_X2508X_X2C0x_X2508X_X2C_X27_X25s_X27_X2C0x_X25X_X29_X3E), - /* K36 */ be_nested_str(AA50), - /* K37 */ be_nested_str(resize), - /* K38 */ be_nested_str(add), - /* K39 */ be_nested_str(fromstring), - /* K40 */ be_const_class(be_class_Partition_info), - /* K41 */ be_nested_str(flash), - /* K42 */ be_nested_str(is_ota), - /* K43 */ be_nested_str(is_factory), - /* K44 */ be_nested_str(read), - /* K45 */ be_nested_str(tasmota), - /* K46 */ be_nested_str(log), - /* K47 */ be_nested_str(BRY_X3A_X20Exception_X3E_X20_X27), - /* K48 */ be_nested_str(_X27_X20_X2D_X20), -}; - - -extern const bclass be_class_Partition_info; - -/******************************************************************** -** Solidified function: is_factory -********************************************************************/ -be_local_closure(class_Partition_info_is_factory, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition_info, /* shared constants */ - &be_const_str_is_factory, - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x1C040301, // 0001 EQ R1 R1 K1 - 0x78060002, // 0002 JMPF R1 #0006 - 0x88040102, // 0003 GETMBR R1 R0 K2 - 0x1C040301, // 0004 EQ R1 R1 K1 - 0x74060000, // 0005 JMPT R1 #0007 - 0x50040001, // 0006 LDBOOL R1 0 1 - 0x50040200, // 0007 LDBOOL R1 1 0 - 0x80040200, // 0008 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: type_to_string -********************************************************************/ -be_local_closure(class_Partition_info_type_to_string, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition_info, /* shared constants */ - &be_const_str_type_to_string, - &be_const_str_solidified, - ( &(const binstruction[14]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x1C040301, // 0001 EQ R1 R1 K1 - 0x78060001, // 0002 JMPF R1 #0005 - 0x80060600, // 0003 RET 1 K3 - 0x70020003, // 0004 JMP #0009 - 0x88040100, // 0005 GETMBR R1 R0 K0 - 0x1C040304, // 0006 EQ R1 R1 K4 - 0x78060000, // 0007 JMPF R1 #0009 - 0x80060A00, // 0008 RET 1 K5 - 0x60040018, // 0009 GETGBL R1 G24 - 0x58080006, // 000A LDCONST R2 K6 - 0x880C0100, // 000B GETMBR R3 R0 K0 - 0x7C040400, // 000C CALL R1 2 - 0x80040200, // 000D RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_Partition_info_init, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition_info, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[60]) { /* code */ - 0x90020101, // 0000 SETMBR R0 K0 K1 - 0x90020501, // 0001 SETMBR R0 K2 K1 - 0x90020F01, // 0002 SETMBR R0 K7 K1 - 0x90021101, // 0003 SETMBR R0 K8 K1 - 0x9002130A, // 0004 SETMBR R0 K9 K10 - 0x90021701, // 0005 SETMBR R0 K11 K1 - 0x6008000E, // 0006 GETGBL R2 G14 - 0x600C0015, // 0007 GETGBL R3 G21 - 0x5C100200, // 0008 MOVE R4 R1 - 0x7C080400, // 0009 CALL R2 2 - 0x740A0000, // 000A JMPT R2 #000C - 0x80000400, // 000B RET 0 - 0x8C08030C, // 000C GETMET R2 R1 K12 - 0x58100001, // 000D LDCONST R4 K1 - 0x5814000D, // 000E LDCONST R5 K13 - 0x7C080600, // 000F CALL R2 3 - 0x540E50A9, // 0010 LDINT R3 20650 - 0x1C0C0403, // 0011 EQ R3 R2 R3 - 0x780E0022, // 0012 JMPF R3 #0036 - 0x8C0C030C, // 0013 GETMET R3 R1 K12 - 0x5814000D, // 0014 LDCONST R5 K13 - 0x58180004, // 0015 LDCONST R6 K4 - 0x7C0C0600, // 0016 CALL R3 3 - 0x90020003, // 0017 SETMBR R0 K0 R3 - 0x8C0C030C, // 0018 GETMET R3 R1 K12 - 0x5814000E, // 0019 LDCONST R5 K14 - 0x58180004, // 001A LDCONST R6 K4 - 0x7C0C0600, // 001B CALL R3 3 - 0x90020403, // 001C SETMBR R0 K2 R3 - 0x8C0C030C, // 001D GETMET R3 R1 K12 - 0x54160003, // 001E LDINT R5 4 - 0x541A0003, // 001F LDINT R6 4 - 0x7C0C0600, // 0020 CALL R3 3 - 0x90020E03, // 0021 SETMBR R0 K7 R3 - 0x8C0C030C, // 0022 GETMET R3 R1 K12 - 0x54160007, // 0023 LDINT R5 8 - 0x541A0003, // 0024 LDINT R6 4 - 0x7C0C0600, // 0025 CALL R3 3 - 0x90021003, // 0026 SETMBR R0 K8 R3 - 0x8C0C010F, // 0027 GETMET R3 R0 K15 - 0x5416000B, // 0028 LDINT R5 12 - 0x541A001A, // 0029 LDINT R6 27 - 0x40140A06, // 002A CONNECT R5 R5 R6 - 0x94140205, // 002B GETIDX R5 R1 R5 - 0x7C0C0400, // 002C CALL R3 2 - 0x8C0C0710, // 002D GETMET R3 R3 K16 - 0x7C0C0200, // 002E CALL R3 1 - 0x90021203, // 002F SETMBR R0 K9 R3 - 0x8C0C030C, // 0030 GETMET R3 R1 K12 - 0x5416001B, // 0031 LDINT R5 28 - 0x541A0003, // 0032 LDINT R6 4 - 0x7C0C0600, // 0033 CALL R3 3 - 0x90021603, // 0034 SETMBR R0 K11 R3 - 0x70020004, // 0035 JMP #003B - 0x600C0018, // 0036 GETGBL R3 G24 - 0x58100011, // 0037 LDCONST R4 K17 - 0x5C140400, // 0038 MOVE R5 R2 - 0x7C0C0400, // 0039 CALL R3 2 - 0xB0062403, // 003A RAISE 1 K18 R3 - 0x80000000, // 003B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: subtype_to_string -********************************************************************/ -be_local_closure(class_Partition_info_subtype_to_string, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition_info, /* shared constants */ - &be_const_str_subtype_to_string, - &be_const_str_solidified, - ( &(const binstruction[87]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x1C040301, // 0001 EQ R1 R1 K1 - 0x7806001A, // 0002 JMPF R1 #001E - 0x88040102, // 0003 GETMBR R1 R0 K2 - 0x1C040301, // 0004 EQ R1 R1 K1 - 0x78060001, // 0005 JMPF R1 #0008 - 0x80062600, // 0006 RET 1 K19 - 0x70020014, // 0007 JMP #001D - 0x88040102, // 0008 GETMBR R1 R0 K2 - 0x540A000F, // 0009 LDINT R2 16 - 0x28040202, // 000A GE R1 R1 R2 - 0x7806000B, // 000B JMPF R1 #0018 - 0x88040102, // 000C GETMBR R1 R0 K2 - 0x540A001F, // 000D LDINT R2 32 - 0x14040202, // 000E LT R1 R1 R2 - 0x78060007, // 000F JMPF R1 #0018 - 0x60040008, // 0010 GETGBL R1 G8 - 0x88080102, // 0011 GETMBR R2 R0 K2 - 0x540E000F, // 0012 LDINT R3 16 - 0x04080403, // 0013 SUB R2 R2 R3 - 0x7C040200, // 0014 CALL R1 1 - 0x00062801, // 0015 ADD R1 K20 R1 - 0x80040200, // 0016 RET 1 R1 - 0x70020004, // 0017 JMP #001D - 0x88040102, // 0018 GETMBR R1 R0 K2 - 0x540A001F, // 0019 LDINT R2 32 - 0x1C040202, // 001A EQ R1 R1 R2 - 0x78060000, // 001B JMPF R1 #001D - 0x80062A00, // 001C RET 1 K21 - 0x70020033, // 001D JMP #0052 - 0x88040100, // 001E GETMBR R1 R0 K0 - 0x1C040304, // 001F EQ R1 R1 K4 - 0x78060030, // 0020 JMPF R1 #0052 - 0x88040102, // 0021 GETMBR R1 R0 K2 - 0x1C040301, // 0022 EQ R1 R1 K1 - 0x78060001, // 0023 JMPF R1 #0026 - 0x80062C00, // 0024 RET 1 K22 - 0x7002002B, // 0025 JMP #0052 - 0x88040102, // 0026 GETMBR R1 R0 K2 - 0x1C040304, // 0027 EQ R1 R1 K4 - 0x78060001, // 0028 JMPF R1 #002B - 0x80062E00, // 0029 RET 1 K23 - 0x70020026, // 002A JMP #0052 - 0x88040102, // 002B GETMBR R1 R0 K2 - 0x1C04030D, // 002C EQ R1 R1 K13 - 0x78060001, // 002D JMPF R1 #0030 - 0x80063000, // 002E RET 1 K24 - 0x70020021, // 002F JMP #0052 - 0x88040102, // 0030 GETMBR R1 R0 K2 - 0x1C04030E, // 0031 EQ R1 R1 K14 - 0x78060001, // 0032 JMPF R1 #0035 - 0x80063200, // 0033 RET 1 K25 - 0x7002001C, // 0034 JMP #0052 - 0x88040102, // 0035 GETMBR R1 R0 K2 - 0x540A0003, // 0036 LDINT R2 4 - 0x1C040202, // 0037 EQ R1 R1 R2 - 0x78060001, // 0038 JMPF R1 #003B - 0x80063400, // 0039 RET 1 K26 - 0x70020016, // 003A JMP #0052 - 0x88040102, // 003B GETMBR R1 R0 K2 - 0x540A0004, // 003C LDINT R2 5 - 0x1C040202, // 003D EQ R1 R1 R2 - 0x78060001, // 003E JMPF R1 #0041 - 0x80063600, // 003F RET 1 K27 - 0x70020010, // 0040 JMP #0052 - 0x88040102, // 0041 GETMBR R1 R0 K2 - 0x540A007F, // 0042 LDINT R2 128 - 0x1C040202, // 0043 EQ R1 R1 R2 - 0x78060001, // 0044 JMPF R1 #0047 - 0x80063800, // 0045 RET 1 K28 - 0x7002000A, // 0046 JMP #0052 - 0x88040102, // 0047 GETMBR R1 R0 K2 - 0x540A0080, // 0048 LDINT R2 129 - 0x1C040202, // 0049 EQ R1 R1 R2 - 0x78060001, // 004A JMPF R1 #004D - 0x80063A00, // 004B RET 1 K29 - 0x70020004, // 004C JMP #0052 - 0x88040102, // 004D GETMBR R1 R0 K2 - 0x540A0081, // 004E LDINT R2 130 - 0x1C040202, // 004F EQ R1 R1 R2 - 0x78060000, // 0050 JMPF R1 #0052 - 0x80063C00, // 0051 RET 1 K30 - 0x60040018, // 0052 GETGBL R1 G24 - 0x58080006, // 0053 LDCONST R2 K6 - 0x880C0102, // 0054 GETMBR R3 R0 K2 - 0x7C040400, // 0055 CALL R1 2 - 0x80040200, // 0056 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: tostring -********************************************************************/ -be_local_closure(class_Partition_info_tostring, /* name */ - be_nested_proto( - 13, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition_info, /* shared constants */ - &be_const_str_tostring, - &be_const_str_solidified, - ( &(const binstruction[26]) { /* code */ - 0x8C04011F, // 0000 GETMET R1 R0 K31 - 0x7C040200, // 0001 CALL R1 1 - 0x8C080120, // 0002 GETMET R2 R0 K32 - 0x7C080200, // 0003 CALL R2 1 - 0x200C030A, // 0004 NE R3 R1 K10 - 0x780E0002, // 0005 JMPF R3 #0009 - 0x000E4201, // 0006 ADD R3 K33 R1 - 0x000C0722, // 0007 ADD R3 R3 K34 - 0x5C040600, // 0008 MOVE R1 R3 - 0x200C050A, // 0009 NE R3 R2 K10 - 0x780E0002, // 000A JMPF R3 #000E - 0x000E4202, // 000B ADD R3 K33 R2 - 0x000C0722, // 000C ADD R3 R3 K34 - 0x5C080600, // 000D MOVE R2 R3 - 0x600C0018, // 000E GETGBL R3 G24 - 0x58100023, // 000F LDCONST R4 K35 - 0x88140100, // 0010 GETMBR R5 R0 K0 - 0x5C180200, // 0011 MOVE R6 R1 - 0x881C0102, // 0012 GETMBR R7 R0 K2 - 0x5C200400, // 0013 MOVE R8 R2 - 0x88240107, // 0014 GETMBR R9 R0 K7 - 0x88280108, // 0015 GETMBR R10 R0 K8 - 0x882C0109, // 0016 GETMBR R11 R0 K9 - 0x8830010B, // 0017 GETMBR R12 R0 K11 - 0x7C0C1200, // 0018 CALL R3 9 - 0x80040600, // 0019 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: is_ota -********************************************************************/ -be_local_closure(class_Partition_info_is_ota, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition_info, /* shared constants */ - &be_const_str_is_ota, - &be_const_str_solidified, - ( &(const binstruction[14]) { /* code */ - 0x88040102, // 0000 GETMBR R1 R0 K2 - 0x88080100, // 0001 GETMBR R2 R0 K0 - 0x1C080501, // 0002 EQ R2 R2 K1 - 0x780A0008, // 0003 JMPF R2 #000D - 0x540A000F, // 0004 LDINT R2 16 - 0x28080202, // 0005 GE R2 R1 R2 - 0x780A0005, // 0006 JMPF R2 #000D - 0x540A001F, // 0007 LDINT R2 32 - 0x14080202, // 0008 LT R2 R1 R2 - 0x780A0002, // 0009 JMPF R2 #000D - 0x540A000F, // 000A LDINT R2 16 - 0x04080202, // 000B SUB R2 R1 R2 - 0x80040400, // 000C RET 1 R2 - 0x80000000, // 000D RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: tobytes -********************************************************************/ -be_local_closure(class_Partition_info_tobytes, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition_info, /* shared constants */ - &be_const_str_tobytes, - &be_const_str_solidified, - ( &(const binstruction[39]) { /* code */ - 0x60040015, // 0000 GETGBL R1 G21 - 0x58080024, // 0001 LDCONST R2 K36 - 0x7C040200, // 0002 CALL R1 1 - 0x8C080325, // 0003 GETMET R2 R1 K37 - 0x5412001F, // 0004 LDINT R4 32 - 0x7C080400, // 0005 CALL R2 2 - 0x8C080525, // 0006 GETMET R2 R2 K37 - 0x5810000D, // 0007 LDCONST R4 K13 - 0x7C080400, // 0008 CALL R2 2 - 0x8C080326, // 0009 GETMET R2 R1 K38 - 0x88100100, // 000A GETMBR R4 R0 K0 - 0x58140004, // 000B LDCONST R5 K4 - 0x7C080600, // 000C CALL R2 3 - 0x8C080326, // 000D GETMET R2 R1 K38 - 0x88100102, // 000E GETMBR R4 R0 K2 - 0x58140004, // 000F LDCONST R5 K4 - 0x7C080600, // 0010 CALL R2 3 - 0x8C080326, // 0011 GETMET R2 R1 K38 - 0x88100107, // 0012 GETMBR R4 R0 K7 - 0x54160003, // 0013 LDINT R5 4 - 0x7C080600, // 0014 CALL R2 3 - 0x8C080326, // 0015 GETMET R2 R1 K38 - 0x88100108, // 0016 GETMBR R4 R0 K8 - 0x54160003, // 0017 LDINT R5 4 - 0x7C080600, // 0018 CALL R2 3 - 0x60080015, // 0019 GETGBL R2 G21 - 0x7C080000, // 001A CALL R2 0 - 0x8C080527, // 001B GETMET R2 R2 K39 - 0x88100109, // 001C GETMBR R4 R0 K9 - 0x7C080400, // 001D CALL R2 2 - 0x8C0C0525, // 001E GETMET R3 R2 K37 - 0x5416000F, // 001F LDINT R5 16 - 0x7C0C0400, // 0020 CALL R3 2 - 0x00040202, // 0021 ADD R1 R1 R2 - 0x8C0C0326, // 0022 GETMET R3 R1 K38 - 0x8814010B, // 0023 GETMBR R5 R0 K11 - 0x541A0003, // 0024 LDINT R6 4 - 0x7C0C0600, // 0025 CALL R3 3 - 0x80040200, // 0026 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: remove_trailing_zeroes -********************************************************************/ -be_local_closure(class_Partition_info_remove_trailing_zeroes, /* name */ - be_nested_proto( - 8, /* nstack */ - 1, /* argc */ - 12, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition_info, /* shared constants */ - &be_const_str_remove_trailing_zeroes, - &be_const_str_solidified, - ( &(const binstruction[24]) { /* code */ - 0x58040028, // 0000 LDCONST R1 K40 - 0x6008000C, // 0001 GETGBL R2 G12 - 0x5C0C0000, // 0002 MOVE R3 R0 - 0x7C080200, // 0003 CALL R2 1 - 0x580C0001, // 0004 LDCONST R3 K1 - 0x14100602, // 0005 LT R4 R3 R2 - 0x78120007, // 0006 JMPF R4 #000F - 0x5411FFFE, // 0007 LDINT R4 -1 - 0x04100803, // 0008 SUB R4 R4 R3 - 0x94100004, // 0009 GETIDX R4 R0 R4 - 0x20100901, // 000A NE R4 R4 K1 - 0x78120000, // 000B JMPF R4 #000D - 0x70020001, // 000C JMP #000F - 0x000C0704, // 000D ADD R3 R3 K4 - 0x7001FFF5, // 000E JMP #0005 - 0x24100701, // 000F GT R4 R3 K1 - 0x78120005, // 0010 JMPF R4 #0017 - 0x8C100125, // 0011 GETMET R4 R0 K37 - 0x6018000C, // 0012 GETGBL R6 G12 - 0x5C1C0000, // 0013 MOVE R7 R0 - 0x7C180200, // 0014 CALL R6 1 - 0x04180C03, // 0015 SUB R6 R6 R3 - 0x7C100400, // 0016 CALL R4 2 - 0x80040000, // 0017 RET 1 R0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: is_spiffs -********************************************************************/ -be_local_closure(class_Partition_info_is_spiffs, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition_info, /* shared constants */ - &be_const_str_is_spiffs, - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x1C040304, // 0001 EQ R1 R1 K4 - 0x78060003, // 0002 JMPF R1 #0007 - 0x88040102, // 0003 GETMBR R1 R0 K2 - 0x540A0081, // 0004 LDINT R2 130 - 0x1C040202, // 0005 EQ R1 R1 R2 - 0x74060000, // 0006 JMPT R1 #0008 - 0x50040001, // 0007 LDBOOL R1 0 1 - 0x50040200, // 0008 LDBOOL R1 1 0 - 0x80040200, // 0009 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_image_size -********************************************************************/ -be_local_closure(class_Partition_info_get_image_size, /* name */ - be_nested_proto( - 14, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Partition_info, /* shared constants */ - &be_const_str_get_image_size, - &be_const_str_solidified, - ( &(const binstruction[85]) { /* code */ - 0xA4065200, // 0000 IMPORT R1 K41 - 0x8C08012A, // 0001 GETMET R2 R0 K42 - 0x7C080200, // 0002 CALL R2 1 - 0x4C0C0000, // 0003 LDNIL R3 - 0x1C080403, // 0004 EQ R2 R2 R3 - 0x780A0004, // 0005 JMPF R2 #000B - 0x8C08012B, // 0006 GETMET R2 R0 K43 - 0x7C080200, // 0007 CALL R2 1 - 0x740A0001, // 0008 JMPT R2 #000B - 0x5409FFFE, // 0009 LDINT R2 -1 - 0x80040400, // 000A RET 1 R2 - 0xA802003A, // 000B EXBLK 0 #0047 - 0x88080107, // 000C GETMBR R2 R0 K7 - 0x880C0108, // 000D GETMBR R3 R0 K8 - 0x8C10032C, // 000E GETMET R4 R1 K44 - 0x5C180400, // 000F MOVE R6 R2 - 0x581C0004, // 0010 LDCONST R7 K4 - 0x7C100600, // 0011 CALL R4 3 - 0x8C10090C, // 0012 GETMET R4 R4 K12 - 0x58180001, // 0013 LDCONST R6 K1 - 0x581C0004, // 0014 LDCONST R7 K4 - 0x7C100600, // 0015 CALL R4 3 - 0x541600E8, // 0016 LDINT R5 233 - 0x20140805, // 0017 NE R5 R4 R5 - 0x78160002, // 0018 JMPF R5 #001C - 0x5415FFFE, // 0019 LDINT R5 -1 - 0xA8040001, // 001A EXBLK 1 1 - 0x80040A00, // 001B RET 1 R5 - 0x8C14032C, // 001C GETMET R5 R1 K44 - 0x001C0504, // 001D ADD R7 R2 K4 - 0x58200004, // 001E LDCONST R8 K4 - 0x7C140600, // 001F CALL R5 3 - 0x8C140B0C, // 0020 GETMET R5 R5 K12 - 0x581C0001, // 0021 LDCONST R7 K1 - 0x58200004, // 0022 LDCONST R8 K4 - 0x7C140600, // 0023 CALL R5 3 - 0x541A001F, // 0024 LDINT R6 32 - 0x00180406, // 0025 ADD R6 R2 R6 - 0x581C0001, // 0026 LDCONST R7 K1 - 0x14200E05, // 0027 LT R8 R7 R5 - 0x78220017, // 0028 JMPF R8 #0041 - 0x8C20032C, // 0029 GETMET R8 R1 K44 - 0x542A0007, // 002A LDINT R10 8 - 0x04280C0A, // 002B SUB R10 R6 R10 - 0x542E0007, // 002C LDINT R11 8 - 0x7C200600, // 002D CALL R8 3 - 0x8C24110C, // 002E GETMET R9 R8 K12 - 0x582C0001, // 002F LDCONST R11 K1 - 0x54320003, // 0030 LDINT R12 4 - 0x7C240600, // 0031 CALL R9 3 - 0x8C28110C, // 0032 GETMET R10 R8 K12 - 0x54320003, // 0033 LDINT R12 4 - 0x54360003, // 0034 LDINT R13 4 - 0x7C280600, // 0035 CALL R10 3 - 0x542E0007, // 0036 LDINT R11 8 - 0x002C140B, // 0037 ADD R11 R10 R11 - 0x00180C0B, // 0038 ADD R6 R6 R11 - 0x002C0403, // 0039 ADD R11 R2 R3 - 0x282C0C0B, // 003A GE R11 R6 R11 - 0x782E0002, // 003B JMPF R11 #003F - 0x542DFFFE, // 003C LDINT R11 -1 - 0xA8040001, // 003D EXBLK 1 1 - 0x80041600, // 003E RET 1 R11 - 0x001C0F04, // 003F ADD R7 R7 K4 - 0x7001FFE5, // 0040 JMP #0027 - 0x04200C02, // 0041 SUB R8 R6 R2 - 0x00201104, // 0042 ADD R8 R8 K4 - 0xA8040001, // 0043 EXBLK 1 1 - 0x80041000, // 0044 RET 1 R8 - 0xA8040001, // 0045 EXBLK 1 1 - 0x7002000C, // 0046 JMP #0054 - 0xAC080002, // 0047 CATCH R2 0 2 - 0x70020009, // 0048 JMP #0053 - 0xB8125A00, // 0049 GETNGBL R4 K45 - 0x8C10092E, // 004A GETMET R4 R4 K46 - 0x001A5E02, // 004B ADD R6 K47 R2 - 0x00180D30, // 004C ADD R6 R6 K48 - 0x00180C03, // 004D ADD R6 R6 R3 - 0x581C000D, // 004E LDCONST R7 K13 - 0x7C100600, // 004F CALL R4 3 - 0x5411FFFE, // 0050 LDINT R4 -1 - 0x80040800, // 0051 RET 1 R4 - 0x70020000, // 0052 JMP #0054 - 0xB0080000, // 0053 RAISE 2 R0 R0 - 0x80000000, // 0054 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: Partition_info -********************************************************************/ -be_local_class(Partition_info, - 6, - NULL, - be_nested_map(16, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(is_factory, -1), be_const_closure(class_Partition_info_is_factory_closure) }, - { be_const_key(get_image_size, -1), be_const_closure(class_Partition_info_get_image_size_closure) }, - { be_const_key(is_spiffs, -1), be_const_closure(class_Partition_info_is_spiffs_closure) }, - { be_const_key(init, -1), be_const_closure(class_Partition_info_init_closure) }, - { be_const_key(type, 10), be_const_var(0) }, - { be_const_key(tostring, -1), be_const_closure(class_Partition_info_tostring_closure) }, - { be_const_key(flags, -1), be_const_var(5) }, - { be_const_key(tobytes, -1), be_const_closure(class_Partition_info_tobytes_closure) }, - { be_const_key(sz, -1), be_const_var(3) }, - { be_const_key(remove_trailing_zeroes, 2), be_const_static_closure(class_Partition_info_remove_trailing_zeroes_closure) }, - { be_const_key(label, 11), be_const_var(4) }, - { be_const_key(subtype, 14), be_const_var(1) }, - { be_const_key(is_ota, 6), be_const_closure(class_Partition_info_is_ota_closure) }, - { be_const_key(type_to_string, 4), be_const_closure(class_Partition_info_type_to_string_closure) }, - { be_const_key(subtype_to_string, -1), be_const_closure(class_Partition_info_subtype_to_string_closure) }, - { be_const_key(start, 1), be_const_var(2) }, - })), - (bstring*) &be_const_str_Partition_info -); - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(init, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str(global), - /* K1 */ be_nested_str(partition_core), - }), - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[ 3]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x90060200, // 0001 SETMBR R1 K1 R0 - 0x80040000, // 0002 RET 1 R0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified module: partition_core -********************************************************************/ -be_local_module(partition_core, - "partition_core", - be_nested_map(4, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(Partition_otadata, -1), be_const_class(be_class_Partition_otadata) }, - { be_const_key(Partition, -1), be_const_class(be_class_Partition) }, - { be_const_key(Partition_info, -1), be_const_class(be_class_Partition_info) }, - { be_const_key(init, -1), be_const_closure(init_closure) }, - })) -); -BE_EXPORT_VARIABLE be_define_const_native_module(partition_core); -/********************************************************************/ -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_partition_core_shelly.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_partition_core_shelly.h deleted file mode 100644 index ba79c01a3..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_partition_core_shelly.h +++ /dev/null @@ -1,7 +0,0 @@ -/* Solidification of partition_core_shelly.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_persist.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_persist.h deleted file mode 100644 index fcdbef8d3..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_persist.h +++ /dev/null @@ -1,721 +0,0 @@ -/* Solidification of persist.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" - -/******************************************************************** -** Solidified function: _anonymous_ -********************************************************************/ -be_local_closure(_anonymous_, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str(Persist), - }), - &be_const_str__anonymous_, - &be_const_str_solidified, - ( &(const binstruction[ 3]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x7C040200, // 0001 CALL R1 1 - 0x80040200, // 0002 RET 1 R1 - }) - ) -); -/*******************************************************************/ - -// compact class 'Persist' ktab size: 35, total: 66 (saved 248 bytes) -static const bvalue be_ktab_class_Persist[35] = { - /* K0 */ be_nested_str(_dirty), - /* K1 */ be_nested_str(_filename), - /* K2 */ be_nested_str(w), - /* K3 */ be_nested_str(json_fdump), - /* K4 */ be_nested_str(close), - /* K5 */ be_nested_str(write), - /* K6 */ be_nested_str(_X7B_X7D), - /* K7 */ be_nested_str(_p), - /* K8 */ be_nested_str(load), - /* K9 */ be_nested_str(remove), - /* K10 */ be_nested_str(contains), - /* K11 */ be_nested_str(json), - /* K12 */ be_nested_str(json_fdump_map), - /* K13 */ be_nested_str(internal_error), - /* K14 */ be_nested_str(persist_X2E_p_X20is_X20not_X20a_X20map), - /* K15 */ be_nested_str(_X7B), - /* K16 */ be_nested_str(keys), - /* K17 */ be_nested_str(dump), - /* K18 */ be_nested_str(_X3A), - /* K19 */ be_nested_str(json_fdump_any), - /* K20 */ be_nested_str(_X2C), - /* K21 */ be_nested_str(stop_iteration), - /* K22 */ be_nested_str(_X7D), - /* K23 */ be_nested_str(find), - /* K24 */ be_nested_str(_X5B), - /* K25 */ be_const_int(0), - /* K26 */ be_const_int(1), - /* K27 */ be_nested_str(_X5D), - /* K28 */ be_nested_str(path), - /* K29 */ be_nested_str(exists), - /* K30 */ be_nested_str(r), - /* K31 */ be_nested_str(read), - /* K32 */ be_nested_str(BRY_X3A_X20failed_X20to_X20load_X20_persist_X2Ejson), - /* K33 */ be_nested_str(save), - /* K34 */ be_nested_str(json_fdump_list), -}; - - -extern const bclass be_class_Persist; - -/******************************************************************** -** Solidified function: save -********************************************************************/ -be_local_closure(class_Persist_save, /* name */ - be_nested_proto( - 8, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Persist, /* shared constants */ - &be_const_str_save, - &be_const_str_solidified, - ( &(const binstruction[51]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x740A0000, // 0001 JMPT R2 #0003 - 0x7806002E, // 0002 JMPF R1 #0032 - 0x4C080000, // 0003 LDNIL R2 - 0xA802000B, // 0004 EXBLK 0 #0011 - 0x600C0011, // 0005 GETGBL R3 G17 - 0x88100101, // 0006 GETMBR R4 R0 K1 - 0x58140002, // 0007 LDCONST R5 K2 - 0x7C0C0400, // 0008 CALL R3 2 - 0x5C080600, // 0009 MOVE R2 R3 - 0x8C0C0103, // 000A GETMET R3 R0 K3 - 0x5C140400, // 000B MOVE R5 R2 - 0x7C0C0400, // 000C CALL R3 2 - 0x8C0C0504, // 000D GETMET R3 R2 K4 - 0x7C0C0200, // 000E CALL R3 1 - 0xA8040001, // 000F EXBLK 1 1 - 0x7002001E, // 0010 JMP #0030 - 0xAC0C0002, // 0011 CATCH R3 0 2 - 0x7002001B, // 0012 JMP #002F - 0x4C140000, // 0013 LDNIL R5 - 0x20140405, // 0014 NE R5 R2 R5 - 0x78160001, // 0015 JMPF R5 #0018 - 0x8C140504, // 0016 GETMET R5 R2 K4 - 0x7C140200, // 0017 CALL R5 1 - 0x4C080000, // 0018 LDNIL R2 - 0xA8020009, // 0019 EXBLK 0 #0024 - 0x60140011, // 001A GETGBL R5 G17 - 0x88180101, // 001B GETMBR R6 R0 K1 - 0x581C0002, // 001C LDCONST R7 K2 - 0x7C140400, // 001D CALL R5 2 - 0x5C080A00, // 001E MOVE R2 R5 - 0x8C140505, // 001F GETMET R5 R2 K5 - 0x581C0006, // 0020 LDCONST R7 K6 - 0x7C140400, // 0021 CALL R5 2 - 0xA8040001, // 0022 EXBLK 1 1 - 0x70020003, // 0023 JMP #0028 - 0xAC140000, // 0024 CATCH R5 0 0 - 0x70020000, // 0025 JMP #0027 - 0x70020000, // 0026 JMP #0028 - 0xB0080000, // 0027 RAISE 2 R0 R0 - 0x4C140000, // 0028 LDNIL R5 - 0x20140405, // 0029 NE R5 R2 R5 - 0x78160001, // 002A JMPF R5 #002D - 0x8C140504, // 002B GETMET R5 R2 K4 - 0x7C140200, // 002C CALL R5 1 - 0xB0040604, // 002D RAISE 1 R3 R4 - 0x70020000, // 002E JMP #0030 - 0xB0080000, // 002F RAISE 2 R0 R0 - 0x500C0000, // 0030 LDBOOL R3 0 0 - 0x90020003, // 0031 SETMBR R0 K0 R3 - 0x80000000, // 0032 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: setmember -********************************************************************/ -be_local_closure(class_Persist_setmember, /* name */ - be_nested_proto( - 4, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Persist, /* shared constants */ - &be_const_str_setmember, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x880C0107, // 0000 GETMBR R3 R0 K7 - 0x980C0202, // 0001 SETIDX R3 R1 R2 - 0x500C0200, // 0002 LDBOOL R3 1 0 - 0x90020003, // 0003 SETMBR R0 K0 R3 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_Persist_init, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Persist, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x60040013, // 0000 GETGBL R1 G19 - 0x7C040000, // 0001 CALL R1 0 - 0x90020E01, // 0002 SETMBR R0 K7 R1 - 0x50040000, // 0003 LDBOOL R1 0 0 - 0x90020001, // 0004 SETMBR R0 K0 R1 - 0x8C040108, // 0005 GETMET R1 R0 K8 - 0x7C040200, // 0006 CALL R1 1 - 0x80000000, // 0007 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: remove -********************************************************************/ -be_local_closure(class_Persist_remove, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Persist, /* shared constants */ - &be_const_str_remove, - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x88080107, // 0000 GETMBR R2 R0 K7 - 0x8C080509, // 0001 GETMET R2 R2 K9 - 0x5C100200, // 0002 MOVE R4 R1 - 0x7C080400, // 0003 CALL R2 2 - 0x50080200, // 0004 LDBOOL R2 1 0 - 0x90020002, // 0005 SETMBR R0 K0 R2 - 0x80000000, // 0006 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: contains -********************************************************************/ -be_local_closure(class_Persist_contains, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Persist, /* shared constants */ - &be_const_str_contains, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x88080107, // 0000 GETMBR R2 R0 K7 - 0x8C08050A, // 0001 GETMET R2 R2 K10 - 0x5C100200, // 0002 MOVE R4 R1 - 0x7C080400, // 0003 CALL R2 2 - 0x80040400, // 0004 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: dirty -********************************************************************/ -be_local_closure(class_Persist_dirty, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Persist, /* shared constants */ - &be_const_str_dirty, - &be_const_str_solidified, - ( &(const binstruction[ 3]) { /* code */ - 0x50040200, // 0000 LDBOOL R1 1 0 - 0x90020001, // 0001 SETMBR R0 K0 R1 - 0x80000000, // 0002 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: json_fdump -********************************************************************/ -be_local_closure(class_Persist_json_fdump, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Persist, /* shared constants */ - &be_const_str_json_fdump, - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0xA40A1600, // 0000 IMPORT R2 K11 - 0x600C000F, // 0001 GETGBL R3 G15 - 0x88100107, // 0002 GETMBR R4 R0 K7 - 0x60140013, // 0003 GETGBL R5 G19 - 0x7C0C0400, // 0004 CALL R3 2 - 0x780E0004, // 0005 JMPF R3 #000B - 0x8C0C010C, // 0006 GETMET R3 R0 K12 - 0x5C140200, // 0007 MOVE R5 R1 - 0x88180107, // 0008 GETMBR R6 R0 K7 - 0x7C0C0600, // 0009 CALL R3 3 - 0x70020000, // 000A JMP #000C - 0xB0061B0E, // 000B RAISE 1 K13 K14 - 0x80000000, // 000C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: has -********************************************************************/ -be_local_closure(class_Persist_has, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Persist, /* shared constants */ - &be_const_str_has, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x88080107, // 0000 GETMBR R2 R0 K7 - 0x8C08050A, // 0001 GETMET R2 R2 K10 - 0x5C100200, // 0002 MOVE R4 R1 - 0x7C080400, // 0003 CALL R2 2 - 0x80040400, // 0004 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: json_fdump_map -********************************************************************/ -be_local_closure(class_Persist_json_fdump_map, /* name */ - be_nested_proto( - 13, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Persist, /* shared constants */ - &be_const_str_json_fdump_map, - &be_const_str_solidified, - ( &(const binstruction[41]) { /* code */ - 0xA40E1600, // 0000 IMPORT R3 K11 - 0x8C100305, // 0001 GETMET R4 R1 K5 - 0x5818000F, // 0002 LDCONST R6 K15 - 0x7C100400, // 0003 CALL R4 2 - 0x4C100000, // 0004 LDNIL R4 - 0x60140010, // 0005 GETGBL R5 G16 - 0x8C180510, // 0006 GETMET R6 R2 K16 - 0x7C180200, // 0007 CALL R6 1 - 0x7C140200, // 0008 CALL R5 1 - 0xA8020017, // 0009 EXBLK 0 #0022 - 0x5C180A00, // 000A MOVE R6 R5 - 0x7C180000, // 000B CALL R6 0 - 0x4C1C0000, // 000C LDNIL R7 - 0x201C0807, // 000D NE R7 R4 R7 - 0x781E0002, // 000E JMPF R7 #0012 - 0x8C1C0305, // 000F GETMET R7 R1 K5 - 0x5C240800, // 0010 MOVE R9 R4 - 0x7C1C0400, // 0011 CALL R7 2 - 0x8C1C0305, // 0012 GETMET R7 R1 K5 - 0x8C240711, // 0013 GETMET R9 R3 K17 - 0x602C0008, // 0014 GETGBL R11 G8 - 0x5C300C00, // 0015 MOVE R12 R6 - 0x7C2C0200, // 0016 CALL R11 1 - 0x7C240400, // 0017 CALL R9 2 - 0x7C1C0400, // 0018 CALL R7 2 - 0x8C1C0305, // 0019 GETMET R7 R1 K5 - 0x58240012, // 001A LDCONST R9 K18 - 0x7C1C0400, // 001B CALL R7 2 - 0x8C1C0113, // 001C GETMET R7 R0 K19 - 0x5C240200, // 001D MOVE R9 R1 - 0x94280406, // 001E GETIDX R10 R2 R6 - 0x7C1C0600, // 001F CALL R7 3 - 0x58100014, // 0020 LDCONST R4 K20 - 0x7001FFE7, // 0021 JMP #000A - 0x58140015, // 0022 LDCONST R5 K21 - 0xAC140200, // 0023 CATCH R5 1 0 - 0xB0080000, // 0024 RAISE 2 R0 R0 - 0x8C140305, // 0025 GETMET R5 R1 K5 - 0x581C0016, // 0026 LDCONST R7 K22 - 0x7C140400, // 0027 CALL R5 2 - 0x80000000, // 0028 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: member -********************************************************************/ -be_local_closure(class_Persist_member, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Persist, /* shared constants */ - &be_const_str_member, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x88080107, // 0000 GETMBR R2 R0 K7 - 0x8C080517, // 0001 GETMET R2 R2 K23 - 0x5C100200, // 0002 MOVE R4 R1 - 0x7C080400, // 0003 CALL R2 2 - 0x80040400, // 0004 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: zero -********************************************************************/ -be_local_closure(class_Persist_zero, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Persist, /* shared constants */ - &be_const_str_zero, - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x60040013, // 0000 GETGBL R1 G19 - 0x7C040000, // 0001 CALL R1 0 - 0x90020E01, // 0002 SETMBR R0 K7 R1 - 0x50040200, // 0003 LDBOOL R1 1 0 - 0x90020001, // 0004 SETMBR R0 K0 R1 - 0x80000000, // 0005 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: json_fdump_list -********************************************************************/ -be_local_closure(class_Persist_json_fdump_list, /* name */ - be_nested_proto( - 9, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Persist, /* shared constants */ - &be_const_str_json_fdump_list, - &be_const_str_solidified, - ( &(const binstruction[25]) { /* code */ - 0xA40E1600, // 0000 IMPORT R3 K11 - 0x8C100305, // 0001 GETMET R4 R1 K5 - 0x58180018, // 0002 LDCONST R6 K24 - 0x7C100400, // 0003 CALL R4 2 - 0x58100019, // 0004 LDCONST R4 K25 - 0x6014000C, // 0005 GETGBL R5 G12 - 0x5C180400, // 0006 MOVE R6 R2 - 0x7C140200, // 0007 CALL R5 1 - 0x14140805, // 0008 LT R5 R4 R5 - 0x7816000A, // 0009 JMPF R5 #0015 - 0x24140919, // 000A GT R5 R4 K25 - 0x78160002, // 000B JMPF R5 #000F - 0x8C140305, // 000C GETMET R5 R1 K5 - 0x581C0014, // 000D LDCONST R7 K20 - 0x7C140400, // 000E CALL R5 2 - 0x8C140113, // 000F GETMET R5 R0 K19 - 0x5C1C0200, // 0010 MOVE R7 R1 - 0x94200404, // 0011 GETIDX R8 R2 R4 - 0x7C140600, // 0012 CALL R5 3 - 0x0010091A, // 0013 ADD R4 R4 K26 - 0x7001FFEF, // 0014 JMP #0005 - 0x8C140305, // 0015 GETMET R5 R1 K5 - 0x581C001B, // 0016 LDCONST R7 K27 - 0x7C140400, // 0017 CALL R5 2 - 0x80000000, // 0018 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: load -********************************************************************/ -be_local_closure(class_Persist_load, /* name */ - be_nested_proto( - 9, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Persist, /* shared constants */ - &be_const_str_load, - &be_const_str_solidified, - ( &(const binstruction[49]) { /* code */ - 0xA4061600, // 0000 IMPORT R1 K11 - 0xA40A3800, // 0001 IMPORT R2 K28 - 0x4C0C0000, // 0002 LDNIL R3 - 0x4C100000, // 0003 LDNIL R4 - 0x8C14051D, // 0004 GETMET R5 R2 K29 - 0x881C0101, // 0005 GETMBR R7 R0 K1 - 0x7C140400, // 0006 CALL R5 2 - 0x78160025, // 0007 JMPF R5 #002E - 0xA802000D, // 0008 EXBLK 0 #0017 - 0x60140011, // 0009 GETGBL R5 G17 - 0x88180101, // 000A GETMBR R6 R0 K1 - 0x581C001E, // 000B LDCONST R7 K30 - 0x7C140400, // 000C CALL R5 2 - 0x5C0C0A00, // 000D MOVE R3 R5 - 0x8C140308, // 000E GETMET R5 R1 K8 - 0x8C1C071F, // 000F GETMET R7 R3 K31 - 0x7C1C0200, // 0010 CALL R7 1 - 0x7C140400, // 0011 CALL R5 2 - 0x5C100A00, // 0012 MOVE R4 R5 - 0x8C140704, // 0013 GETMET R5 R3 K4 - 0x7C140200, // 0014 CALL R5 1 - 0xA8040001, // 0015 EXBLK 1 1 - 0x70020009, // 0016 JMP #0021 - 0xAC140002, // 0017 CATCH R5 0 2 - 0x70020006, // 0018 JMP #0020 - 0x4C1C0000, // 0019 LDNIL R7 - 0x201C0607, // 001A NE R7 R3 R7 - 0x781E0001, // 001B JMPF R7 #001E - 0x8C1C0704, // 001C GETMET R7 R3 K4 - 0x7C1C0200, // 001D CALL R7 1 - 0xB0040A06, // 001E RAISE 1 R5 R6 - 0x70020000, // 001F JMP #0021 - 0xB0080000, // 0020 RAISE 2 R0 R0 - 0x6014000F, // 0021 GETGBL R5 G15 - 0x5C180800, // 0022 MOVE R6 R4 - 0x601C0013, // 0023 GETGBL R7 G19 - 0x7C140400, // 0024 CALL R5 2 - 0x78160001, // 0025 JMPF R5 #0028 - 0x90020E04, // 0026 SETMBR R0 K7 R4 - 0x70020002, // 0027 JMP #002B - 0x60140001, // 0028 GETGBL R5 G1 - 0x58180020, // 0029 LDCONST R6 K32 - 0x7C140200, // 002A CALL R5 1 - 0x50140000, // 002B LDBOOL R5 0 0 - 0x90020005, // 002C SETMBR R0 K0 R5 - 0x70020001, // 002D JMP #0030 - 0x8C140121, // 002E GETMET R5 R0 K33 - 0x7C140200, // 002F CALL R5 1 - 0x80000000, // 0030 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: json_fdump_any -********************************************************************/ -be_local_closure(class_Persist_json_fdump_any, /* name */ - be_nested_proto( - 9, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Persist, /* shared constants */ - &be_const_str_json_fdump_any, - &be_const_str_solidified, - ( &(const binstruction[27]) { /* code */ - 0xA40E1600, // 0000 IMPORT R3 K11 - 0x6010000F, // 0001 GETGBL R4 G15 - 0x5C140400, // 0002 MOVE R5 R2 - 0x60180013, // 0003 GETGBL R6 G19 - 0x7C100400, // 0004 CALL R4 2 - 0x78120004, // 0005 JMPF R4 #000B - 0x8C10010C, // 0006 GETMET R4 R0 K12 - 0x5C180200, // 0007 MOVE R6 R1 - 0x5C1C0400, // 0008 MOVE R7 R2 - 0x7C100600, // 0009 CALL R4 3 - 0x7002000E, // 000A JMP #001A - 0x6010000F, // 000B GETGBL R4 G15 - 0x5C140400, // 000C MOVE R5 R2 - 0x60180012, // 000D GETGBL R6 G18 - 0x7C100400, // 000E CALL R4 2 - 0x78120004, // 000F JMPF R4 #0015 - 0x8C100122, // 0010 GETMET R4 R0 K34 - 0x5C180200, // 0011 MOVE R6 R1 - 0x5C1C0400, // 0012 MOVE R7 R2 - 0x7C100600, // 0013 CALL R4 3 - 0x70020004, // 0014 JMP #001A - 0x8C100305, // 0015 GETMET R4 R1 K5 - 0x8C180711, // 0016 GETMET R6 R3 K17 - 0x5C200400, // 0017 MOVE R8 R2 - 0x7C180400, // 0018 CALL R6 2 - 0x7C100400, // 0019 CALL R4 2 - 0x80000000, // 001A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: find -********************************************************************/ -be_local_closure(class_Persist_find, /* name */ - be_nested_proto( - 7, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Persist, /* shared constants */ - &be_const_str_find, - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x880C0107, // 0000 GETMBR R3 R0 K7 - 0x8C0C0717, // 0001 GETMET R3 R3 K23 - 0x5C140200, // 0002 MOVE R5 R1 - 0x5C180400, // 0003 MOVE R6 R2 - 0x7C0C0600, // 0004 CALL R3 3 - 0x80040600, // 0005 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: Persist -********************************************************************/ -be_local_class(Persist, - 2, - NULL, - be_nested_map(18, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(save, -1), be_const_closure(class_Persist_save_closure) }, - { be_const_key(setmember, 12), be_const_closure(class_Persist_setmember_closure) }, - { be_const_key(dirty, -1), be_const_closure(class_Persist_dirty_closure) }, - { be_const_key(remove, -1), be_const_closure(class_Persist_remove_closure) }, - { be_const_key(contains, -1), be_const_closure(class_Persist_contains_closure) }, - { be_const_key(json_fdump_map, 2), be_const_closure(class_Persist_json_fdump_map_closure) }, - { be_const_key(json_fdump, -1), be_const_closure(class_Persist_json_fdump_closure) }, - { be_const_key(has, -1), be_const_closure(class_Persist_has_closure) }, - { be_const_key(_p, -1), be_const_var(0) }, - { be_const_key(json_fdump_any, -1), be_const_closure(class_Persist_json_fdump_any_closure) }, - { be_const_key(zero, -1), be_const_closure(class_Persist_zero_closure) }, - { be_const_key(load, 10), be_const_closure(class_Persist_load_closure) }, - { be_const_key(json_fdump_list, 5), be_const_closure(class_Persist_json_fdump_list_closure) }, - { be_const_key(member, 11), be_const_closure(class_Persist_member_closure) }, - { be_const_key(_dirty, -1), be_const_var(1) }, - { be_const_key(init, 9), be_const_closure(class_Persist_init_closure) }, - { be_const_key(find, -1), be_const_closure(class_Persist_find_closure) }, - { be_const_key(_filename, -1), be_nested_str(_persist_X2Ejson) }, - })), - (bstring*) &be_const_str_Persist -); - -/******************************************************************** -** Solidified module: persist -********************************************************************/ -be_local_module(persist, - "persist", - be_nested_map(2, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(Persist, -1), be_const_class(be_class_Persist) }, - { be_const_key(init, 0), be_const_closure(_anonymous__closure) }, - })) -); -BE_EXPORT_VARIABLE be_define_const_native_module(persist); -/********************************************************************/ -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_python_compat.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_python_compat.h deleted file mode 100644 index 01d239710..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_python_compat.h +++ /dev/null @@ -1,59 +0,0 @@ -/* Solidification of python_compat.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" - -/******************************************************************** -** Solidified function: _anonymous_ -********************************************************************/ -be_local_closure(_anonymous_, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str(global), - /* K1 */ be_nested_str(True), - /* K2 */ be_nested_str(False), - /* K3 */ be_nested_str(None), - /* K4 */ be_nested_str(b), - }), - &be_const_str__anonymous_, - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x50080200, // 0001 LDBOOL R2 1 0 - 0x90060202, // 0002 SETMBR R1 K1 R2 - 0x50080000, // 0003 LDBOOL R2 0 0 - 0x90060402, // 0004 SETMBR R1 K2 R2 - 0x4C080000, // 0005 LDNIL R2 - 0x90060602, // 0006 SETMBR R1 K3 R2 - 0x60080015, // 0007 GETGBL R2 G21 - 0x90060802, // 0008 SETMBR R1 K4 R2 - 0x80040000, // 0009 RET 1 R0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified module: python_compat -********************************************************************/ -be_local_module(python_compat, - "python_compat", - be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(init, -1), be_const_closure(_anonymous__closure) }, - })) -); -BE_EXPORT_VARIABLE be_define_const_native_module(python_compat); -/********************************************************************/ -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_rule_matcher.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_rule_matcher.h deleted file mode 100644 index 66322afb7..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_rule_matcher.h +++ /dev/null @@ -1,1483 +0,0 @@ -/* Solidification of rule_matcher.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -extern const bclass be_class_Rule_Matcher_Key; -// compact class 'Rule_Matcher_Key' ktab size: 9, total: 11 (saved 16 bytes) -static const bvalue be_ktab_class_Rule_Matcher_Key[9] = { - /* K0 */ be_nested_str(_X3CMatcher_X20key_X3D_X27), - /* K1 */ be_nested_str(name), - /* K2 */ be_nested_str(_X27_X3E), - /* K3 */ be_const_class(be_class_Rule_Matcher_Key), - /* K4 */ be_nested_str(string), - /* K5 */ be_nested_str(toupper), - /* K6 */ be_nested_str(keys), - /* K7 */ be_nested_str(stop_iteration), - /* K8 */ be_nested_str(find_key_i), -}; - - -extern const bclass be_class_Rule_Matcher_Key; - -/******************************************************************** -** Solidified function: tostring -********************************************************************/ -be_local_closure(class_Rule_Matcher_Key_tostring, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Rule_Matcher_Key, /* shared constants */ - &be_const_str_tostring, - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x60040008, // 0000 GETGBL R1 G8 - 0x88080101, // 0001 GETMBR R2 R0 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x00060001, // 0003 ADD R1 K0 R1 - 0x00040302, // 0004 ADD R1 R1 K2 - 0x80040200, // 0005 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: find_key_i -********************************************************************/ -be_local_closure(class_Rule_Matcher_Key_find_key_i, /* name */ - be_nested_proto( - 11, /* nstack */ - 2, /* argc */ - 12, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Rule_Matcher_Key, /* shared constants */ - &be_const_str_find_key_i, - &be_const_str_solidified, - ( &(const binstruction[31]) { /* code */ - 0x58080003, // 0000 LDCONST R2 K3 - 0xA40E0800, // 0001 IMPORT R3 K4 - 0x8C100705, // 0002 GETMET R4 R3 K5 - 0x5C180200, // 0003 MOVE R6 R1 - 0x7C100400, // 0004 CALL R4 2 - 0x6014000F, // 0005 GETGBL R5 G15 - 0x5C180000, // 0006 MOVE R6 R0 - 0x601C0013, // 0007 GETGBL R7 G19 - 0x7C140400, // 0008 CALL R5 2 - 0x78160013, // 0009 JMPF R5 #001E - 0x60140010, // 000A GETGBL R5 G16 - 0x8C180106, // 000B GETMET R6 R0 K6 - 0x7C180200, // 000C CALL R6 1 - 0x7C140200, // 000D CALL R5 1 - 0xA802000B, // 000E EXBLK 0 #001B - 0x5C180A00, // 000F MOVE R6 R5 - 0x7C180000, // 0010 CALL R6 0 - 0x8C1C0705, // 0011 GETMET R7 R3 K5 - 0x60240008, // 0012 GETGBL R9 G8 - 0x5C280C00, // 0013 MOVE R10 R6 - 0x7C240200, // 0014 CALL R9 1 - 0x7C1C0400, // 0015 CALL R7 2 - 0x1C1C0E04, // 0016 EQ R7 R7 R4 - 0x781E0001, // 0017 JMPF R7 #001A - 0xA8040001, // 0018 EXBLK 1 1 - 0x80040C00, // 0019 RET 1 R6 - 0x7001FFF3, // 001A JMP #000F - 0x58140007, // 001B LDCONST R5 K7 - 0xAC140200, // 001C CATCH R5 1 0 - 0xB0080000, // 001D RAISE 2 R0 R0 - 0x80000000, // 001E RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: match -********************************************************************/ -be_local_closure(class_Rule_Matcher_Key_match, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Rule_Matcher_Key, /* shared constants */ - &be_const_str_match, - &be_const_str_solidified, - ( &(const binstruction[23]) { /* code */ - 0x4C080000, // 0000 LDNIL R2 - 0x1C080202, // 0001 EQ R2 R1 R2 - 0x780A0001, // 0002 JMPF R2 #0005 - 0x4C080000, // 0003 LDNIL R2 - 0x80040400, // 0004 RET 1 R2 - 0x6008000F, // 0005 GETGBL R2 G15 - 0x5C0C0200, // 0006 MOVE R3 R1 - 0x60100013, // 0007 GETGBL R4 G19 - 0x7C080400, // 0008 CALL R2 2 - 0x740A0001, // 0009 JMPT R2 #000C - 0x4C080000, // 000A LDNIL R2 - 0x80040400, // 000B RET 1 R2 - 0x8C080108, // 000C GETMET R2 R0 K8 - 0x5C100200, // 000D MOVE R4 R1 - 0x88140101, // 000E GETMBR R5 R0 K1 - 0x7C080600, // 000F CALL R2 3 - 0x4C0C0000, // 0010 LDNIL R3 - 0x1C0C0403, // 0011 EQ R3 R2 R3 - 0x780E0001, // 0012 JMPF R3 #0015 - 0x4C0C0000, // 0013 LDNIL R3 - 0x80040600, // 0014 RET 1 R3 - 0x940C0202, // 0015 GETIDX R3 R1 R2 - 0x80040600, // 0016 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_Rule_Matcher_Key_init, /* name */ - be_nested_proto( - 2, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Rule_Matcher_Key, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x90020201, // 0000 SETMBR R0 K1 R1 - 0x80000000, // 0001 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: Rule_Matcher_Key -********************************************************************/ -be_local_class(Rule_Matcher_Key, - 1, - NULL, - be_nested_map(5, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(tostring, 3), be_const_closure(class_Rule_Matcher_Key_tostring_closure) }, - { be_const_key(find_key_i, -1), be_const_static_closure(class_Rule_Matcher_Key_find_key_i_closure) }, - { be_const_key(name, -1), be_const_var(0) }, - { be_const_key(init, 4), be_const_closure(class_Rule_Matcher_Key_init_closure) }, - { be_const_key(match, -1), be_const_closure(class_Rule_Matcher_Key_match_closure) }, - })), - (bstring*) &be_const_str_Rule_Matcher_Key -); - -extern const bclass be_class_Rule_Matcher_Wildcard; - -/******************************************************************** -** Solidified function: match -********************************************************************/ -be_local_closure(class_Rule_Matcher_Wildcard_match, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_const_int(0), - /* K1 */ be_nested_str(iter), - }), - &be_const_str_match, - &be_const_str_solidified, - ( &(const binstruction[23]) { /* code */ - 0x4C080000, // 0000 LDNIL R2 - 0x1C080202, // 0001 EQ R2 R1 R2 - 0x780A0001, // 0002 JMPF R2 #0005 - 0x4C080000, // 0003 LDNIL R2 - 0x80040400, // 0004 RET 1 R2 - 0x6008000F, // 0005 GETGBL R2 G15 - 0x5C0C0200, // 0006 MOVE R3 R1 - 0x60100013, // 0007 GETGBL R4 G19 - 0x7C080400, // 0008 CALL R2 2 - 0x740A0001, // 0009 JMPT R2 #000C - 0x4C080000, // 000A LDNIL R2 - 0x80040400, // 000B RET 1 R2 - 0x6008000C, // 000C GETGBL R2 G12 - 0x5C0C0200, // 000D MOVE R3 R1 - 0x7C080200, // 000E CALL R2 1 - 0x1C080500, // 000F EQ R2 R2 K0 - 0x780A0001, // 0010 JMPF R2 #0013 - 0x4C080000, // 0011 LDNIL R2 - 0x80040400, // 0012 RET 1 R2 - 0x8C080301, // 0013 GETMET R2 R1 K1 - 0x7C080200, // 0014 CALL R2 1 - 0x7C080000, // 0015 CALL R2 0 - 0x80040400, // 0016 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: tostring -********************************************************************/ -be_local_closure(class_Rule_Matcher_Wildcard_tostring, /* name */ - be_nested_proto( - 1, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str(_X3CMatcher_X20any_X3E), - }), - &be_const_str_tostring, - &be_const_str_solidified, - ( &(const binstruction[ 1]) { /* code */ - 0x80060000, // 0000 RET 1 K0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: Rule_Matcher_Wildcard -********************************************************************/ -be_local_class(Rule_Matcher_Wildcard, - 0, - NULL, - be_nested_map(2, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(match, -1), be_const_closure(class_Rule_Matcher_Wildcard_match_closure) }, - { be_const_key(tostring, -1), be_const_closure(class_Rule_Matcher_Wildcard_tostring_closure) }, - })), - (bstring*) &be_const_str_Rule_Matcher_Wildcard -); -// compact class 'Rule_Matcher_Operator' ktab size: 29, total: 37 (saved 64 bytes) -static const bvalue be_ktab_class_Rule_Matcher_Operator[29] = { - /* K0 */ be_nested_str(int), - /* K1 */ be_nested_str(real), - /* K2 */ be_nested_str(string), - /* K3 */ be_nested_str(op_func), - /* K4 */ be_nested_str(op_value), - /* K5 */ be_nested_str(op_str), - /* K6 */ be_nested_str(_X3D), - /* K7 */ be_nested_str(_X21_X3D_X3D), - /* K8 */ be_nested_str(_X24_X21), - /* K9 */ be_nested_str(_X24_X3C), - /* K10 */ be_nested_str(_X24_X3E), - /* K11 */ be_nested_str(_X24_X7C), - /* K12 */ be_nested_str(_X24_X5E), - /* K13 */ be_nested_str(_X3D_X3D), - /* K14 */ be_nested_str(_X21_X3D), - /* K15 */ be_nested_str(_X3E), - /* K16 */ be_nested_str(_X3E_X3D), - /* K17 */ be_nested_str(_X3C), - /* K18 */ be_nested_str(_X3C_X3D), - /* K19 */ be_nested_str(_X7C), - /* K20 */ be_nested_str(json), - /* K21 */ be_nested_str(load), - /* K22 */ be_nested_str(value_error), - /* K23 */ be_nested_str(value_X20needs_X20to_X20be_X20a_X20number), - /* K24 */ be_nested_str(_X3CMatcher_X20op_X20_X27), - /* K25 */ be_nested_str(_X27_X20val_X3D_X27), - /* K26 */ be_nested_str(_X27_X3E), - /* K27 */ be_nested_str(_X27_X20val_X3D), - /* K28 */ be_nested_str(op_parse), -}; - - -extern const bclass be_class_Rule_Matcher_Operator; - -/******************************************************************** -** Solidified function: match -********************************************************************/ -be_local_closure(class_Rule_Matcher_Operator_match, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Rule_Matcher_Operator, /* shared constants */ - &be_const_str_match, - &be_const_str_solidified, - ( &(const binstruction[20]) { /* code */ - 0x60080004, // 0000 GETGBL R2 G4 - 0x5C0C0200, // 0001 MOVE R3 R1 - 0x7C080200, // 0002 CALL R2 1 - 0x200C0500, // 0003 NE R3 R2 K0 - 0x780E0005, // 0004 JMPF R3 #000B - 0x200C0501, // 0005 NE R3 R2 K1 - 0x780E0003, // 0006 JMPF R3 #000B - 0x200C0502, // 0007 NE R3 R2 K2 - 0x780E0001, // 0008 JMPF R3 #000B - 0x4C0C0000, // 0009 LDNIL R3 - 0x80040600, // 000A RET 1 R3 - 0x8C0C0103, // 000B GETMET R3 R0 K3 - 0x5C140200, // 000C MOVE R5 R1 - 0x88180104, // 000D GETMBR R6 R0 K4 - 0x7C0C0600, // 000E CALL R3 3 - 0x780E0001, // 000F JMPF R3 #0012 - 0x5C0C0200, // 0010 MOVE R3 R1 - 0x70020000, // 0011 JMP #0013 - 0x4C0C0000, // 0012 LDNIL R3 - 0x80040600, // 0013 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: op_parse -********************************************************************/ -be_local_closure(class_Rule_Matcher_Operator_op_parse, /* name */ - be_nested_proto( - 22, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[13]) { - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str(tasmota), - /* K1 */ be_nested_str(_apply_str_op), - /* K2 */ be_const_int(1), - }), - &be_const_str_op_eq_str, - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0xB80A0000, // 0000 GETNGBL R2 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x58100002, // 0002 LDCONST R4 K2 - 0x60140008, // 0003 GETGBL R5 G8 - 0x5C180000, // 0004 MOVE R6 R0 - 0x7C140200, // 0005 CALL R5 1 - 0x5C180200, // 0006 MOVE R6 R1 - 0x7C080800, // 0007 CALL R2 4 - 0x80040400, // 0008 RET 1 R2 - }) - ), - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str(tasmota), - /* K1 */ be_nested_str(_apply_str_op), - /* K2 */ be_const_int(2), - }), - &be_const_str_op_neq_str, - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0xB80A0000, // 0000 GETNGBL R2 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x58100002, // 0002 LDCONST R4 K2 - 0x60140008, // 0003 GETGBL R5 G8 - 0x5C180000, // 0004 MOVE R6 R0 - 0x7C140200, // 0005 CALL R5 1 - 0x5C180200, // 0006 MOVE R6 R1 - 0x7C080800, // 0007 CALL R2 4 - 0x80040400, // 0008 RET 1 R2 - }) - ), - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str(tasmota), - /* K1 */ be_nested_str(_apply_str_op), - /* K2 */ be_const_int(3), - }), - &be_const_str_op_start_str, - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0xB80A0000, // 0000 GETNGBL R2 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x58100002, // 0002 LDCONST R4 K2 - 0x60140008, // 0003 GETGBL R5 G8 - 0x5C180000, // 0004 MOVE R6 R0 - 0x7C140200, // 0005 CALL R5 1 - 0x5C180200, // 0006 MOVE R6 R1 - 0x7C080800, // 0007 CALL R2 4 - 0x80040400, // 0008 RET 1 R2 - }) - ), - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str(tasmota), - /* K1 */ be_nested_str(_apply_str_op), - }), - &be_const_str_op_end_str, - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0xB80A0000, // 0000 GETNGBL R2 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x54120003, // 0002 LDINT R4 4 - 0x60140008, // 0003 GETGBL R5 G8 - 0x5C180000, // 0004 MOVE R6 R0 - 0x7C140200, // 0005 CALL R5 1 - 0x5C180200, // 0006 MOVE R6 R1 - 0x7C080800, // 0007 CALL R2 4 - 0x80040400, // 0008 RET 1 R2 - }) - ), - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str(tasmota), - /* K1 */ be_nested_str(_apply_str_op), - }), - &be_const_str_op_sub_str, - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0xB80A0000, // 0000 GETNGBL R2 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x54120004, // 0002 LDINT R4 5 - 0x60140008, // 0003 GETGBL R5 G8 - 0x5C180000, // 0004 MOVE R6 R0 - 0x7C140200, // 0005 CALL R5 1 - 0x5C180200, // 0006 MOVE R6 R1 - 0x7C080800, // 0007 CALL R2 4 - 0x80040400, // 0008 RET 1 R2 - }) - ), - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str(tasmota), - /* K1 */ be_nested_str(_apply_str_op), - }), - &be_const_str_op_notsub_str, - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0xB80A0000, // 0000 GETNGBL R2 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x54120005, // 0002 LDINT R4 6 - 0x60140008, // 0003 GETGBL R5 G8 - 0x5C180000, // 0004 MOVE R6 R0 - 0x7C140200, // 0005 CALL R5 1 - 0x5C180200, // 0006 MOVE R6 R1 - 0x7C080800, // 0007 CALL R2 4 - 0x80040400, // 0008 RET 1 R2 - }) - ), - be_nested_proto( - 4, /* nstack */ - 2, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - &be_const_str_op_eq, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x60080007, // 0000 GETGBL R2 G7 - 0x5C0C0000, // 0001 MOVE R3 R0 - 0x7C080200, // 0002 CALL R2 1 - 0x1C080401, // 0003 EQ R2 R2 R1 - 0x80040400, // 0004 RET 1 R2 - }) - ), - be_nested_proto( - 4, /* nstack */ - 2, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - &be_const_str_op_neq, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x60080007, // 0000 GETGBL R2 G7 - 0x5C0C0000, // 0001 MOVE R3 R0 - 0x7C080200, // 0002 CALL R2 1 - 0x20080401, // 0003 NE R2 R2 R1 - 0x80040400, // 0004 RET 1 R2 - }) - ), - be_nested_proto( - 4, /* nstack */ - 2, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - &be_const_str_op_gt, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x60080007, // 0000 GETGBL R2 G7 - 0x5C0C0000, // 0001 MOVE R3 R0 - 0x7C080200, // 0002 CALL R2 1 - 0x24080401, // 0003 GT R2 R2 R1 - 0x80040400, // 0004 RET 1 R2 - }) - ), - be_nested_proto( - 4, /* nstack */ - 2, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - &be_const_str_op_gte, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x60080007, // 0000 GETGBL R2 G7 - 0x5C0C0000, // 0001 MOVE R3 R0 - 0x7C080200, // 0002 CALL R2 1 - 0x28080401, // 0003 GE R2 R2 R1 - 0x80040400, // 0004 RET 1 R2 - }) - ), - be_nested_proto( - 4, /* nstack */ - 2, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - &be_const_str_op_lt, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x60080007, // 0000 GETGBL R2 G7 - 0x5C0C0000, // 0001 MOVE R3 R0 - 0x7C080200, // 0002 CALL R2 1 - 0x14080401, // 0003 LT R2 R2 R1 - 0x80040400, // 0004 RET 1 R2 - }) - ), - be_nested_proto( - 4, /* nstack */ - 2, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - &be_const_str_op_lte, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x60080007, // 0000 GETGBL R2 G7 - 0x5C0C0000, // 0001 MOVE R3 R0 - 0x7C080200, // 0002 CALL R2 1 - 0x18080401, // 0003 LE R2 R2 R1 - 0x80040400, // 0004 RET 1 R2 - }) - ), - be_nested_proto( - 4, /* nstack */ - 2, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_const_int(0), - }), - &be_const_str_op_mod, - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x60080009, // 0000 GETGBL R2 G9 - 0x5C0C0000, // 0001 MOVE R3 R0 - 0x7C080200, // 0002 CALL R2 1 - 0x10080401, // 0003 MOD R2 R2 R1 - 0x1C080500, // 0004 EQ R2 R2 K0 - 0x80040400, // 0005 RET 1 R2 - }) - ), - }), - 1, /* has constants */ - &be_ktab_class_Rule_Matcher_Operator, /* shared constants */ - &be_const_str_op_parse, - &be_const_str_solidified, - ( &(const binstruction[97]) { /* code */ - 0x90020A01, // 0000 SETMBR R0 K5 R1 - 0x840C0000, // 0001 CLOSURE R3 P0 - 0x84100001, // 0002 CLOSURE R4 P1 - 0x84140002, // 0003 CLOSURE R5 P2 - 0x84180003, // 0004 CLOSURE R6 P3 - 0x841C0004, // 0005 CLOSURE R7 P4 - 0x84200005, // 0006 CLOSURE R8 P5 - 0x84240006, // 0007 CLOSURE R9 P6 - 0x84280007, // 0008 CLOSURE R10 P7 - 0x842C0008, // 0009 CLOSURE R11 P8 - 0x84300009, // 000A CLOSURE R12 P9 - 0x8434000A, // 000B CLOSURE R13 P10 - 0x8438000B, // 000C CLOSURE R14 P11 - 0x843C000C, // 000D CLOSURE R15 P12 - 0x50400000, // 000E LDBOOL R16 0 0 - 0x4C440000, // 000F LDNIL R17 - 0x1C480306, // 0010 EQ R18 R1 K6 - 0x784A0001, // 0011 JMPF R18 #0014 - 0x5C440600, // 0012 MOVE R17 R3 - 0x70020033, // 0013 JMP #0048 - 0x1C480307, // 0014 EQ R18 R1 K7 - 0x784A0001, // 0015 JMPF R18 #0018 - 0x5C440800, // 0016 MOVE R17 R4 - 0x7002002F, // 0017 JMP #0048 - 0x1C480308, // 0018 EQ R18 R1 K8 - 0x784A0001, // 0019 JMPF R18 #001C - 0x5C440800, // 001A MOVE R17 R4 - 0x7002002B, // 001B JMP #0048 - 0x1C480309, // 001C EQ R18 R1 K9 - 0x784A0001, // 001D JMPF R18 #0020 - 0x5C440A00, // 001E MOVE R17 R5 - 0x70020027, // 001F JMP #0048 - 0x1C48030A, // 0020 EQ R18 R1 K10 - 0x784A0001, // 0021 JMPF R18 #0024 - 0x5C440C00, // 0022 MOVE R17 R6 - 0x70020023, // 0023 JMP #0048 - 0x1C48030B, // 0024 EQ R18 R1 K11 - 0x784A0001, // 0025 JMPF R18 #0028 - 0x5C440E00, // 0026 MOVE R17 R7 - 0x7002001F, // 0027 JMP #0048 - 0x1C48030C, // 0028 EQ R18 R1 K12 - 0x784A0001, // 0029 JMPF R18 #002C - 0x5C441000, // 002A MOVE R17 R8 - 0x7002001B, // 002B JMP #0048 - 0x50400200, // 002C LDBOOL R16 1 0 - 0x1C48030D, // 002D EQ R18 R1 K13 - 0x784A0001, // 002E JMPF R18 #0031 - 0x5C441200, // 002F MOVE R17 R9 - 0x70020016, // 0030 JMP #0048 - 0x1C48030E, // 0031 EQ R18 R1 K14 - 0x784A0001, // 0032 JMPF R18 #0035 - 0x5C441400, // 0033 MOVE R17 R10 - 0x70020012, // 0034 JMP #0048 - 0x1C48030F, // 0035 EQ R18 R1 K15 - 0x784A0001, // 0036 JMPF R18 #0039 - 0x5C441600, // 0037 MOVE R17 R11 - 0x7002000E, // 0038 JMP #0048 - 0x1C480310, // 0039 EQ R18 R1 K16 - 0x784A0001, // 003A JMPF R18 #003D - 0x5C441800, // 003B MOVE R17 R12 - 0x7002000A, // 003C JMP #0048 - 0x1C480311, // 003D EQ R18 R1 K17 - 0x784A0001, // 003E JMPF R18 #0041 - 0x5C441A00, // 003F MOVE R17 R13 - 0x70020006, // 0040 JMP #0048 - 0x1C480312, // 0041 EQ R18 R1 K18 - 0x784A0001, // 0042 JMPF R18 #0045 - 0x5C441C00, // 0043 MOVE R17 R14 - 0x70020002, // 0044 JMP #0048 - 0x1C480313, // 0045 EQ R18 R1 K19 - 0x784A0000, // 0046 JMPF R18 #0048 - 0x5C441E00, // 0047 MOVE R17 R15 - 0x90020611, // 0048 SETMBR R0 K3 R17 - 0x78420011, // 0049 JMPF R16 #005C - 0xA44A2800, // 004A IMPORT R18 K20 - 0x8C4C2515, // 004B GETMET R19 R18 K21 - 0x5C540400, // 004C MOVE R21 R2 - 0x7C4C0400, // 004D CALL R19 2 - 0x60500004, // 004E GETGBL R20 G4 - 0x5C542600, // 004F MOVE R21 R19 - 0x7C500200, // 0050 CALL R20 1 - 0x20502900, // 0051 NE R20 R20 K0 - 0x78520006, // 0052 JMPF R20 #005A - 0x60500004, // 0053 GETGBL R20 G4 - 0x5C542600, // 0054 MOVE R21 R19 - 0x7C500200, // 0055 CALL R20 1 - 0x20502901, // 0056 NE R20 R20 K1 - 0x78520001, // 0057 JMPF R20 #005A - 0xB0062D17, // 0058 RAISE 1 K22 K23 - 0x70020000, // 0059 JMP #005B - 0x90020813, // 005A SETMBR R0 K4 R19 - 0x70020003, // 005B JMP #0060 - 0x60480008, // 005C GETGBL R18 G8 - 0x5C4C0400, // 005D MOVE R19 R2 - 0x7C480200, // 005E CALL R18 1 - 0x90020812, // 005F SETMBR R0 K4 R18 - 0x80000000, // 0060 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: tostring -********************************************************************/ -be_local_closure(class_Rule_Matcher_Operator_tostring, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Rule_Matcher_Operator, /* shared constants */ - &be_const_str_tostring, - &be_const_str_solidified, - ( &(const binstruction[25]) { /* code */ - 0x60040004, // 0000 GETGBL R1 G4 - 0x88080104, // 0001 GETMBR R2 R0 K4 - 0x7C040200, // 0002 CALL R1 1 - 0x1C040302, // 0003 EQ R1 R1 K2 - 0x78060009, // 0004 JMPF R1 #000F - 0x88040105, // 0005 GETMBR R1 R0 K5 - 0x00063001, // 0006 ADD R1 K24 R1 - 0x00040319, // 0007 ADD R1 R1 K25 - 0x60080008, // 0008 GETGBL R2 G8 - 0x880C0104, // 0009 GETMBR R3 R0 K4 - 0x7C080200, // 000A CALL R2 1 - 0x00040202, // 000B ADD R1 R1 R2 - 0x0004031A, // 000C ADD R1 R1 K26 - 0x80040200, // 000D RET 1 R1 - 0x70020008, // 000E JMP #0018 - 0x88040105, // 000F GETMBR R1 R0 K5 - 0x00063001, // 0010 ADD R1 K24 R1 - 0x0004031B, // 0011 ADD R1 R1 K27 - 0x60080008, // 0012 GETGBL R2 G8 - 0x880C0104, // 0013 GETMBR R3 R0 K4 - 0x7C080200, // 0014 CALL R2 1 - 0x00040202, // 0015 ADD R1 R1 R2 - 0x0004030F, // 0016 ADD R1 R1 K15 - 0x80040200, // 0017 RET 1 R1 - 0x80000000, // 0018 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_Rule_Matcher_Operator_init, /* name */ - be_nested_proto( - 7, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Rule_Matcher_Operator, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x8C0C011C, // 0000 GETMET R3 R0 K28 - 0x5C140200, // 0001 MOVE R5 R1 - 0x5C180400, // 0002 MOVE R6 R2 - 0x7C0C0600, // 0003 CALL R3 3 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: Rule_Matcher_Operator -********************************************************************/ -be_local_class(Rule_Matcher_Operator, - 3, - NULL, - be_nested_map(7, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(op_value, 6), be_const_var(2) }, - { be_const_key(tostring, -1), be_const_closure(class_Rule_Matcher_Operator_tostring_closure) }, - { be_const_key(op_func, 0), be_const_var(0) }, - { be_const_key(match, 1), be_const_closure(class_Rule_Matcher_Operator_match_closure) }, - { be_const_key(op_str, -1), be_const_var(1) }, - { be_const_key(init, -1), be_const_closure(class_Rule_Matcher_Operator_init_closure) }, - { be_const_key(op_parse, -1), be_const_closure(class_Rule_Matcher_Operator_op_parse_closure) }, - })), - (bstring*) &be_const_str_Rule_Matcher_Operator -); -// compact class 'Rule_Matcher_Array' ktab size: 5, total: 7 (saved 16 bytes) -static const bvalue be_ktab_class_Rule_Matcher_Array[5] = { - /* K0 */ be_nested_str(index), - /* K1 */ be_nested_str(_X3CMatcher_X20_X5B), - /* K2 */ be_nested_str(_X5D_X3E), - /* K3 */ be_const_int(0), - /* K4 */ be_const_int(1), -}; - - -extern const bclass be_class_Rule_Matcher_Array; - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_Rule_Matcher_Array_init, /* name */ - be_nested_proto( - 2, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Rule_Matcher_Array, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x90020001, // 0000 SETMBR R0 K0 R1 - 0x80000000, // 0001 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: tostring -********************************************************************/ -be_local_closure(class_Rule_Matcher_Array_tostring, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Rule_Matcher_Array, /* shared constants */ - &be_const_str_tostring, - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x60040008, // 0000 GETGBL R1 G8 - 0x88080100, // 0001 GETMBR R2 R0 K0 - 0x7C040200, // 0002 CALL R1 1 - 0x00060201, // 0003 ADD R1 K1 R1 - 0x00040302, // 0004 ADD R1 R1 K2 - 0x80040200, // 0005 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: match -********************************************************************/ -be_local_closure(class_Rule_Matcher_Array_match, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Rule_Matcher_Array, /* shared constants */ - &be_const_str_match, - &be_const_str_solidified, - ( &(const binstruction[28]) { /* code */ - 0x4C080000, // 0000 LDNIL R2 - 0x1C080202, // 0001 EQ R2 R1 R2 - 0x780A0001, // 0002 JMPF R2 #0005 - 0x4C080000, // 0003 LDNIL R2 - 0x80040400, // 0004 RET 1 R2 - 0x6008000F, // 0005 GETGBL R2 G15 - 0x5C0C0200, // 0006 MOVE R3 R1 - 0x60100012, // 0007 GETGBL R4 G18 - 0x7C080400, // 0008 CALL R2 2 - 0x740A0000, // 0009 JMPT R2 #000B - 0x80040200, // 000A RET 1 R1 - 0x88080100, // 000B GETMBR R2 R0 K0 - 0x18080503, // 000C LE R2 R2 K3 - 0x780A0001, // 000D JMPF R2 #0010 - 0x4C080000, // 000E LDNIL R2 - 0x80040400, // 000F RET 1 R2 - 0x88080100, // 0010 GETMBR R2 R0 K0 - 0x600C000C, // 0011 GETGBL R3 G12 - 0x5C100200, // 0012 MOVE R4 R1 - 0x7C0C0200, // 0013 CALL R3 1 - 0x24080403, // 0014 GT R2 R2 R3 - 0x780A0001, // 0015 JMPF R2 #0018 - 0x4C080000, // 0016 LDNIL R2 - 0x80040400, // 0017 RET 1 R2 - 0x88080100, // 0018 GETMBR R2 R0 K0 - 0x04080504, // 0019 SUB R2 R2 K4 - 0x94080202, // 001A GETIDX R2 R1 R2 - 0x80040400, // 001B RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: Rule_Matcher_Array -********************************************************************/ -be_local_class(Rule_Matcher_Array, - 1, - NULL, - be_nested_map(4, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(index, -1), be_const_var(0) }, - { be_const_key(tostring, -1), be_const_closure(class_Rule_Matcher_Array_tostring_closure) }, - { be_const_key(match, -1), be_const_closure(class_Rule_Matcher_Array_match_closure) }, - { be_const_key(init, 0), be_const_closure(class_Rule_Matcher_Array_init_closure) }, - })), - (bstring*) &be_const_str_Rule_Matcher_Array -); -// compact class 'Rule_Matcher_AND_List' ktab size: 7, total: 9 (saved 16 bytes) -static const bvalue be_ktab_class_Rule_Matcher_AND_List[7] = { - /* K0 */ be_nested_str(and_list), - /* K1 */ be_nested_str(_X3CMatcher_AND_List_X20), - /* K2 */ be_nested_str(_X3E), - /* K3 */ be_const_int(0), - /* K4 */ be_nested_str(match), - /* K5 */ be_nested_str(push), - /* K6 */ be_const_int(1), -}; - - -extern const bclass be_class_Rule_Matcher_AND_List; - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_Rule_Matcher_AND_List_init, /* name */ - be_nested_proto( - 2, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Rule_Matcher_AND_List, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x90020001, // 0000 SETMBR R0 K0 R1 - 0x80000000, // 0001 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: tostring -********************************************************************/ -be_local_closure(class_Rule_Matcher_AND_List_tostring, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Rule_Matcher_AND_List, /* shared constants */ - &be_const_str_tostring, - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x60040008, // 0000 GETGBL R1 G8 - 0x88080100, // 0001 GETMBR R2 R0 K0 - 0x7C040200, // 0002 CALL R1 1 - 0x00060201, // 0003 ADD R1 K1 R1 - 0x00040302, // 0004 ADD R1 R1 K2 - 0x80040200, // 0005 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: match -********************************************************************/ -be_local_closure(class_Rule_Matcher_AND_List_match, /* name */ - be_nested_proto( - 9, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Rule_Matcher_AND_List, /* shared constants */ - &be_const_str_match, - &be_const_str_solidified, - ( &(const binstruction[24]) { /* code */ - 0x58080003, // 0000 LDCONST R2 K3 - 0x600C0012, // 0001 GETGBL R3 G18 - 0x7C0C0000, // 0002 CALL R3 0 - 0x6010000C, // 0003 GETGBL R4 G12 - 0x88140100, // 0004 GETMBR R5 R0 K0 - 0x7C100200, // 0005 CALL R4 1 - 0x14100404, // 0006 LT R4 R2 R4 - 0x7812000E, // 0007 JMPF R4 #0017 - 0x88100100, // 0008 GETMBR R4 R0 K0 - 0x94100802, // 0009 GETIDX R4 R4 R2 - 0x8C140904, // 000A GETMET R5 R4 K4 - 0x5C1C0200, // 000B MOVE R7 R1 - 0x7C140400, // 000C CALL R5 2 - 0x4C180000, // 000D LDNIL R6 - 0x1C180A06, // 000E EQ R6 R5 R6 - 0x781A0001, // 000F JMPF R6 #0012 - 0x4C180000, // 0010 LDNIL R6 - 0x80040C00, // 0011 RET 1 R6 - 0x8C180705, // 0012 GETMET R6 R3 K5 - 0x5C200A00, // 0013 MOVE R8 R5 - 0x7C180400, // 0014 CALL R6 2 - 0x00080506, // 0015 ADD R2 R2 K6 - 0x7001FFEB, // 0016 JMP #0003 - 0x80040600, // 0017 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: Rule_Matcher_AND_List -********************************************************************/ -be_local_class(Rule_Matcher_AND_List, - 1, - NULL, - be_nested_map(4, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(and_list, -1), be_const_var(0) }, - { be_const_key(tostring, -1), be_const_closure(class_Rule_Matcher_AND_List_tostring_closure) }, - { be_const_key(match, -1), be_const_closure(class_Rule_Matcher_AND_List_match_closure) }, - { be_const_key(init, 0), be_const_closure(class_Rule_Matcher_AND_List_init_closure) }, - })), - (bstring*) &be_const_str_Rule_Matcher_AND_List -); -extern const bclass be_class_Rule_Matcher; -// compact class 'Rule_Matcher' ktab size: 29, total: 34 (saved 40 bytes) -static const bvalue be_ktab_class_Rule_Matcher[29] = { - /* K0 */ be_nested_str(matchers), - /* K1 */ be_nested_str(rule), - /* K2 */ be_nested_str(trigger), - /* K3 */ be_const_class(be_class_Rule_Matcher), - /* K4 */ be_nested_str(string), - /* K5 */ be_nested_str(parse), - /* K6 */ be_nested_str(push), - /* K7 */ be_nested_str(stop_iteration), - /* K8 */ be_nested_str(Rule_Matcher_AND_List), - /* K9 */ be_nested_str(tasmota), - /* K10 */ be_nested_str(find_op), - /* K11 */ be_const_int(0), - /* K12 */ be_const_int(1), - /* K13 */ be_const_int(2), - /* K14 */ be_nested_str(find), - /* K15 */ be_nested_str(_X23), - /* K16 */ be_nested_str(pattern_error), - /* K17 */ be_nested_str(empty_X20pattern_X20not_X20allowed), - /* K18 */ be_const_int(2147483647), - /* K19 */ be_nested_str(_X5B), - /* K20 */ be_nested_str(_X5D), - /* K21 */ be_nested_str(value_error), - /* K22 */ be_nested_str(missing_X20_X27_X5D_X27_X20in_X20rule_X20pattern), - /* K23 */ be_nested_str(_X3F), - /* K24 */ be_nested_str(Rule_Matcher_Wildcard), - /* K25 */ be_nested_str(Rule_Matcher_Key), - /* K26 */ be_nested_str(Rule_Matcher_Array), - /* K27 */ be_nested_str(Rule_Matcher_Operator), - /* K28 */ be_nested_str(match), -}; - - -extern const bclass be_class_Rule_Matcher; - -/******************************************************************** -** Solidified function: tostring -********************************************************************/ -be_local_closure(class_Rule_Matcher_tostring, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Rule_Matcher, /* shared constants */ - &be_const_str_tostring, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x60040008, // 0000 GETGBL R1 G8 - 0x88080100, // 0001 GETMBR R2 R0 K0 - 0x7C040200, // 0002 CALL R1 1 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_Rule_Matcher_init, /* name */ - be_nested_proto( - 4, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Rule_Matcher, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x90020201, // 0000 SETMBR R0 K1 R1 - 0x90020402, // 0001 SETMBR R0 K2 R2 - 0x90020003, // 0002 SETMBR R0 K0 R3 - 0x80000000, // 0003 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: parse -********************************************************************/ -be_local_closure(class_Rule_Matcher_parse, /* name */ - be_nested_proto( - 20, /* nstack */ - 1, /* argc */ - 12, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Rule_Matcher, /* shared constants */ - &be_const_str_parse, - &be_const_str_solidified, - ( &(const binstruction[147]) { /* code */ - 0x58040003, // 0000 LDCONST R1 K3 - 0xA40A0800, // 0001 IMPORT R2 K4 - 0x4C0C0000, // 0002 LDNIL R3 - 0x1C0C0003, // 0003 EQ R3 R0 R3 - 0x780E0001, // 0004 JMPF R3 #0007 - 0x4C0C0000, // 0005 LDNIL R3 - 0x80040600, // 0006 RET 1 R3 - 0x600C000F, // 0007 GETGBL R3 G15 - 0x5C100000, // 0008 MOVE R4 R0 - 0x60140012, // 0009 GETGBL R5 G18 - 0x7C0C0400, // 000A CALL R3 2 - 0x780E0021, // 000B JMPF R3 #002E - 0x600C0012, // 000C GETGBL R3 G18 - 0x7C0C0000, // 000D CALL R3 0 - 0x60100012, // 000E GETGBL R4 G18 - 0x7C100000, // 000F CALL R4 0 - 0x60140010, // 0010 GETGBL R5 G16 - 0x5C180000, // 0011 MOVE R6 R0 - 0x7C140200, // 0012 CALL R5 1 - 0xA802000B, // 0013 EXBLK 0 #0020 - 0x5C180A00, // 0014 MOVE R6 R5 - 0x7C180000, // 0015 CALL R6 0 - 0x8C1C0305, // 0016 GETMET R7 R1 K5 - 0x5C240C00, // 0017 MOVE R9 R6 - 0x7C1C0400, // 0018 CALL R7 2 - 0x8C200706, // 0019 GETMET R8 R3 K6 - 0x5C280E00, // 001A MOVE R10 R7 - 0x7C200400, // 001B CALL R8 2 - 0x8C200906, // 001C GETMET R8 R4 K6 - 0x88280F02, // 001D GETMBR R10 R7 K2 - 0x7C200400, // 001E CALL R8 2 - 0x7001FFF3, // 001F JMP #0014 - 0x58140007, // 0020 LDCONST R5 K7 - 0xAC140200, // 0021 CATCH R5 1 0 - 0xB0080000, // 0022 RAISE 2 R0 R0 - 0x5C140200, // 0023 MOVE R5 R1 - 0x5C180000, // 0024 MOVE R6 R0 - 0x5C1C0800, // 0025 MOVE R7 R4 - 0x60200012, // 0026 GETGBL R8 G18 - 0x7C200000, // 0027 CALL R8 0 - 0x8C240308, // 0028 GETMET R9 R1 K8 - 0x5C2C0600, // 0029 MOVE R11 R3 - 0x7C240400, // 002A CALL R9 2 - 0x40241009, // 002B CONNECT R9 R8 R9 - 0x7C140600, // 002C CALL R5 3 - 0x80040A00, // 002D RET 1 R5 - 0x600C0012, // 002E GETGBL R3 G18 - 0x7C0C0000, // 002F CALL R3 0 - 0xB8121200, // 0030 GETNGBL R4 K9 - 0x8C10090A, // 0031 GETMET R4 R4 K10 - 0x5C180000, // 0032 MOVE R6 R0 - 0x7C100400, // 0033 CALL R4 2 - 0x9414090B, // 0034 GETIDX R5 R4 K11 - 0x9418090C, // 0035 GETIDX R6 R4 K12 - 0x941C090D, // 0036 GETIDX R7 R4 K13 - 0x6020000C, // 0037 GETGBL R8 G12 - 0x5C240A00, // 0038 MOVE R9 R5 - 0x7C200200, // 0039 CALL R8 1 - 0x5824000B, // 003A LDCONST R9 K11 - 0x5429FFFE, // 003B LDINT R10 -1 - 0x142C1208, // 003C LT R11 R9 R8 - 0x782E0042, // 003D JMPF R11 #0081 - 0x8C2C050E, // 003E GETMET R11 R2 K14 - 0x5C340A00, // 003F MOVE R13 R5 - 0x5838000F, // 0040 LDCONST R14 K15 - 0x5C3C1200, // 0041 MOVE R15 R9 - 0x7C2C0800, // 0042 CALL R11 4 - 0x4C300000, // 0043 LDNIL R12 - 0x2834170B, // 0044 GE R13 R11 K11 - 0x78360008, // 0045 JMPF R13 #004F - 0x1C341609, // 0046 EQ R13 R11 R9 - 0x78360000, // 0047 JMPF R13 #0049 - 0xB0062111, // 0048 RAISE 1 K16 K17 - 0x0434170C, // 0049 SUB R13 R11 K12 - 0x4034120D, // 004A CONNECT R13 R9 R13 - 0x94300A0D, // 004B GETIDX R12 R5 R13 - 0x0034170C, // 004C ADD R13 R11 K12 - 0x5C241A00, // 004D MOVE R9 R13 - 0x70020002, // 004E JMP #0052 - 0x40341312, // 004F CONNECT R13 R9 K18 - 0x94300A0D, // 0050 GETIDX R12 R5 R13 - 0x5C241000, // 0051 MOVE R9 R8 - 0x8C34050E, // 0052 GETMET R13 R2 K14 - 0x5C3C1800, // 0053 MOVE R15 R12 - 0x58400013, // 0054 LDCONST R16 K19 - 0x7C340600, // 0055 CALL R13 3 - 0x4C380000, // 0056 LDNIL R14 - 0x283C1B0B, // 0057 GE R15 R13 K11 - 0x783E0012, // 0058 JMPF R15 #006C - 0x8C3C050E, // 0059 GETMET R15 R2 K14 - 0x5C441800, // 005A MOVE R17 R12 - 0x58480014, // 005B LDCONST R18 K20 - 0x5C4C1A00, // 005C MOVE R19 R13 - 0x7C3C0800, // 005D CALL R15 4 - 0x14401F0B, // 005E LT R16 R15 K11 - 0x78420000, // 005F JMPF R16 #0061 - 0xB0062B16, // 0060 RAISE 1 K21 K22 - 0x00401B0C, // 0061 ADD R16 R13 K12 - 0x04441F0C, // 0062 SUB R17 R15 K12 - 0x40402011, // 0063 CONNECT R16 R16 R17 - 0x94401810, // 0064 GETIDX R16 R12 R16 - 0x04441B0C, // 0065 SUB R17 R13 K12 - 0x40461611, // 0066 CONNECT R17 K11 R17 - 0x94301811, // 0067 GETIDX R12 R12 R17 - 0x60440009, // 0068 GETGBL R17 G9 - 0x5C482000, // 0069 MOVE R18 R16 - 0x7C440200, // 006A CALL R17 1 - 0x5C382200, // 006B MOVE R14 R17 - 0x1C3C1917, // 006C EQ R15 R12 K23 - 0x783E0004, // 006D JMPF R15 #0073 - 0x8C3C0706, // 006E GETMET R15 R3 K6 - 0x8C440318, // 006F GETMET R17 R1 K24 - 0x7C440200, // 0070 CALL R17 1 - 0x7C3C0400, // 0071 CALL R15 2 - 0x70020004, // 0072 JMP #0078 - 0x8C3C0706, // 0073 GETMET R15 R3 K6 - 0x8C440319, // 0074 GETMET R17 R1 K25 - 0x5C4C1800, // 0075 MOVE R19 R12 - 0x7C440400, // 0076 CALL R17 2 - 0x7C3C0400, // 0077 CALL R15 2 - 0x4C3C0000, // 0078 LDNIL R15 - 0x203C1C0F, // 0079 NE R15 R14 R15 - 0x783E0004, // 007A JMPF R15 #0080 - 0x8C3C0706, // 007B GETMET R15 R3 K6 - 0x8C44031A, // 007C GETMET R17 R1 K26 - 0x5C4C1C00, // 007D MOVE R19 R14 - 0x7C440400, // 007E CALL R17 2 - 0x7C3C0400, // 007F CALL R15 2 - 0x7001FFBA, // 0080 JMP #003C - 0x4C2C0000, // 0081 LDNIL R11 - 0x202C0C0B, // 0082 NE R11 R6 R11 - 0x782E0008, // 0083 JMPF R11 #008D - 0x4C2C0000, // 0084 LDNIL R11 - 0x202C0E0B, // 0085 NE R11 R7 R11 - 0x782E0005, // 0086 JMPF R11 #008D - 0x8C2C0706, // 0087 GETMET R11 R3 K6 - 0x8C34031B, // 0088 GETMET R13 R1 K27 - 0x5C3C0C00, // 0089 MOVE R15 R6 - 0x5C400E00, // 008A MOVE R16 R7 - 0x7C340600, // 008B CALL R13 3 - 0x7C2C0400, // 008C CALL R11 2 - 0x5C2C0200, // 008D MOVE R11 R1 - 0x5C300000, // 008E MOVE R12 R0 - 0x5C340A00, // 008F MOVE R13 R5 - 0x5C380600, // 0090 MOVE R14 R3 - 0x7C2C0600, // 0091 CALL R11 3 - 0x80041600, // 0092 RET 1 R11 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: match -********************************************************************/ -be_local_closure(class_Rule_Matcher_match, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Rule_Matcher, /* shared constants */ - &be_const_str_match, - &be_const_str_solidified, - ( &(const binstruction[27]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x4C0C0000, // 0001 LDNIL R3 - 0x1C080403, // 0002 EQ R2 R2 R3 - 0x780A0001, // 0003 JMPF R2 #0006 - 0x4C080000, // 0004 LDNIL R2 - 0x80040400, // 0005 RET 1 R2 - 0x5C080200, // 0006 MOVE R2 R1 - 0x580C000B, // 0007 LDCONST R3 K11 - 0x6010000C, // 0008 GETGBL R4 G12 - 0x88140100, // 0009 GETMBR R5 R0 K0 - 0x7C100200, // 000A CALL R4 1 - 0x14100604, // 000B LT R4 R3 R4 - 0x7812000C, // 000C JMPF R4 #001A - 0x88100100, // 000D GETMBR R4 R0 K0 - 0x94100803, // 000E GETIDX R4 R4 R3 - 0x8C10091C, // 000F GETMET R4 R4 K28 - 0x5C180400, // 0010 MOVE R6 R2 - 0x7C100400, // 0011 CALL R4 2 - 0x5C080800, // 0012 MOVE R2 R4 - 0x4C100000, // 0013 LDNIL R4 - 0x1C100404, // 0014 EQ R4 R2 R4 - 0x78120001, // 0015 JMPF R4 #0018 - 0x4C100000, // 0016 LDNIL R4 - 0x80040800, // 0017 RET 1 R4 - 0x000C070C, // 0018 ADD R3 R3 K12 - 0x7001FFED, // 0019 JMP #0008 - 0x80040400, // 001A RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: Rule_Matcher -********************************************************************/ -be_local_class(Rule_Matcher, - 3, - NULL, - be_nested_map(12, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(Rule_Matcher_AND_List, -1), be_const_class(be_class_Rule_Matcher_AND_List) }, - { be_const_key(tostring, 0), be_const_closure(class_Rule_Matcher_tostring_closure) }, - { be_const_key(match, 6), be_const_closure(class_Rule_Matcher_match_closure) }, - { be_const_key(init, 5), be_const_closure(class_Rule_Matcher_init_closure) }, - { be_const_key(Rule_Matcher_Array, 11), be_const_class(be_class_Rule_Matcher_Array) }, - { be_const_key(rule, -1), be_const_var(0) }, - { be_const_key(Rule_Matcher_Key, -1), be_const_class(be_class_Rule_Matcher_Key) }, - { be_const_key(Rule_Matcher_Operator, 8), be_const_class(be_class_Rule_Matcher_Operator) }, - { be_const_key(trigger, -1), be_const_var(1) }, - { be_const_key(Rule_Matcher_Wildcard, -1), be_const_class(be_class_Rule_Matcher_Wildcard) }, - { be_const_key(matchers, 2), be_const_var(2) }, - { be_const_key(parse, -1), be_const_static_closure(class_Rule_Matcher_parse_closure) }, - })), - (bstring*) &be_const_str_Rule_Matcher -); -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_tapp.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_tapp.h deleted file mode 100644 index 56da5bbc5..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_tapp.h +++ /dev/null @@ -1,170 +0,0 @@ -/* Solidification of tapp.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -// compact class 'Tapp' ktab size: 15, total: 16 (saved 8 bytes) -static const bvalue be_ktab_class_Tapp[15] = { - /* K0 */ be_nested_str(tasmota), - /* K1 */ be_nested_str(add_driver), - /* K2 */ be_nested_str(path), - /* K3 */ be_nested_str(string), - /* K4 */ be_nested_str(listdir), - /* K5 */ be_nested_str(_X2F), - /* K6 */ be_nested_str(find), - /* K7 */ be_nested_str(_X2Etapp), - /* K8 */ be_const_int(0), - /* K9 */ be_nested_str(log), - /* K10 */ be_nested_str(TAP_X3A_X20Loaded_X20Tasmota_X20App_X20_X27_X25s_X27), - /* K11 */ be_const_int(2), - /* K12 */ be_nested_str(load), - /* K13 */ be_nested_str(_X23autoexec_X2Ebe), - /* K14 */ be_nested_str(stop_iteration), -}; - - -extern const bclass be_class_Tapp; - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_Tapp_init, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tapp, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x5C0C0000, // 0002 MOVE R3 R0 - 0x7C040400, // 0003 CALL R1 2 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: autoexec -********************************************************************/ -be_local_closure(class_Tapp_autoexec, /* name */ - be_nested_proto( - 11, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tapp, /* shared constants */ - &be_const_str_autoexec, - &be_const_str_solidified, - ( &(const binstruction[34]) { /* code */ - 0xA4060400, // 0000 IMPORT R1 K2 - 0xA40A0600, // 0001 IMPORT R2 K3 - 0x8C0C0304, // 0002 GETMET R3 R1 K4 - 0x58140005, // 0003 LDCONST R5 K5 - 0x7C0C0400, // 0004 CALL R3 2 - 0x60100010, // 0005 GETGBL R4 G16 - 0x5C140600, // 0006 MOVE R5 R3 - 0x7C100200, // 0007 CALL R4 1 - 0xA8020014, // 0008 EXBLK 0 #001E - 0x5C140800, // 0009 MOVE R5 R4 - 0x7C140000, // 000A CALL R5 0 - 0x8C180506, // 000B GETMET R6 R2 K6 - 0x5C200A00, // 000C MOVE R8 R5 - 0x58240007, // 000D LDCONST R9 K7 - 0x7C180600, // 000E CALL R6 3 - 0x24180D08, // 000F GT R6 R6 K8 - 0x781A000B, // 0010 JMPF R6 #001D - 0xB81A0000, // 0011 GETNGBL R6 K0 - 0x8C180D09, // 0012 GETMET R6 R6 K9 - 0x60200018, // 0013 GETGBL R8 G24 - 0x5824000A, // 0014 LDCONST R9 K10 - 0x5C280A00, // 0015 MOVE R10 R5 - 0x7C200400, // 0016 CALL R8 2 - 0x5824000B, // 0017 LDCONST R9 K11 - 0x7C180600, // 0018 CALL R6 3 - 0xB81A0000, // 0019 GETNGBL R6 K0 - 0x8C180D0C, // 001A GETMET R6 R6 K12 - 0x00200B0D, // 001B ADD R8 R5 K13 - 0x7C180400, // 001C CALL R6 2 - 0x7001FFEA, // 001D JMP #0009 - 0x5810000E, // 001E LDCONST R4 K14 - 0xAC100200, // 001F CATCH R4 1 0 - 0xB0080000, // 0020 RAISE 2 R0 R0 - 0x80000000, // 0021 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: Tapp -********************************************************************/ -be_local_class(Tapp, - 0, - NULL, - be_nested_map(2, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(autoexec, -1), be_const_closure(class_Tapp_autoexec_closure) }, - { be_const_key(init, 0), be_const_closure(class_Tapp_init_closure) }, - })), - (bstring*) &be_const_str_Tapp -); - -/******************************************************************** -** Solidified function: _anonymous_ -********************************************************************/ -be_local_closure(_anonymous_, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_const_class(be_class_Tapp), - }), - &be_const_str__anonymous_, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x58040000, // 0000 LDCONST R1 K0 - 0xB4000000, // 0001 CLASS K0 - 0x5C080200, // 0002 MOVE R2 R1 - 0x7C080000, // 0003 CALL R2 0 - 0x80040400, // 0004 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified module: tapp -********************************************************************/ -be_local_module(tapp, - "tapp", - be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(init, -1), be_const_closure(_anonymous__closure) }, - })) -); -BE_EXPORT_VARIABLE be_define_const_native_module(tapp); -/********************************************************************/ -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_tasmota_class.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_tasmota_class.h deleted file mode 100644 index 9d991f410..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_tasmota_class.h +++ /dev/null @@ -1,2738 +0,0 @@ -/* Solidification of tasmota_class.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -extern const bclass be_class_Tasmota; -// compact class 'Tasmota' ktab size: 155, total: 290 (saved 1080 bytes) -static const bvalue be_ktab_class_Tasmota[155] = { - /* K0 */ be_nested_str(introspect), - /* K1 */ be_nested_str(function), - /* K2 */ be_nested_str(type_error), - /* K3 */ be_nested_str(BRY_X3A_X20argument_X20must_X20be_X20a_X20function), - /* K4 */ be_nested_str(ismethod), - /* K5 */ be_nested_str(BRY_X3A_X20method_X20not_X20allowed_X2C_X20use_X20a_X20closure_X20like_X20_X27_X2F_X20args_X20_X2D_X3E_X20obj_X2Efunc_X28args_X29_X27), - /* K6 */ be_const_class(be_class_Tasmota), - /* K7 */ be_nested_str(string), - /* K8 */ be_nested_str(split), - /* K9 */ be_nested_str(_X2F), - /* K10 */ be_nested_str(pop), - /* K11 */ be_const_int(0), - /* K12 */ be_nested_str(index_X2Ehtml), - /* K13 */ be_nested_str(webclient), - /* K14 */ be_nested_str(set_follow_redirects), - /* K15 */ be_nested_str(begin), - /* K16 */ be_nested_str(GET), - /* K17 */ be_nested_str(status_X3A_X20), - /* K18 */ be_nested_str(connection_error), - /* K19 */ be_nested_str(write_file), - /* K20 */ be_nested_str(close), - /* K21 */ be_nested_str(log), - /* K22 */ be_nested_str(BRY_X3A_X20Fetched_X20), - /* K23 */ be_const_int(3), - /* K24 */ be_nested_str(endswith), - /* K25 */ be_nested_str(_X2Ebe), - /* K26 */ be_nested_str(BRY_X3A_X20file_X20_X27_X25s_X27_X20does_X20not_X20have_X20_X27_X2Ebe_X27_X20extension), - /* K27 */ be_nested_str(find), - /* K28 */ be_nested_str(_X23), - /* K29 */ be_nested_str(BRY_X3A_X20cannot_X20compile_X20file_X20in_X20read_X2Donly_X20archive), - /* K30 */ be_nested_str(file), - /* K31 */ be_nested_str(BRY_X3A_X20empty_X20compiled_X20file), - /* K32 */ be_nested_str(BRY_X3A_X20failed_X20to_X20load_X20_X27_X25s_X27_X20_X28_X25s_X20_X2D_X20_X25s_X29), - /* K33 */ be_nested_str(c), - /* K34 */ be_nested_str(save), - /* K35 */ be_nested_str(BRY_X3A_X20could_X20not_X20save_X20compiled_X20file_X20_X25s_X20_X28_X25s_X29), - /* K36 */ be_nested_str(_ccmd), - /* K37 */ be_nested_str(remove), - /* K38 */ be_nested_str(tasmota_X2Eset_light_X28_X29_X20is_X20deprecated_X2C_X20use_X20light_X2Eset_X28_X29), - /* K39 */ be_nested_str(light), - /* K40 */ be_nested_str(set), - /* K41 */ be_nested_str(_crons), - /* K42 */ be_nested_str(ccronexpr), - /* K43 */ be_nested_str(now), - /* K44 */ be_nested_str(size), - /* K45 */ be_nested_str(trig), - /* K46 */ be_nested_str(next), - /* K47 */ be_nested_str(time_reached), - /* K48 */ be_nested_str(f), - /* K49 */ be_const_int(1), - /* K50 */ be_nested_str(id), - /* K51 */ be_nested_str(_timers), - /* K52 */ be_nested_str(check_not_method), - /* K53 */ be_nested_str(push), - /* K54 */ be_nested_str(Trigger), - /* K55 */ be_nested_str(millis), - /* K56 */ be_nested_str(value_error), - /* K57 */ be_nested_str(the_X20second_X20argument_X20is_X20not_X20a_X20function), - /* K58 */ be_nested_str(tasmota), - /* K59 */ be_nested_str(scale_uint), - /* K60 */ be_const_int(2), - /* K61 */ be_nested_str(_fl), - /* K62 */ be_nested_str(argument_X20must_X20be_X20a_X20function), - /* K63 */ be_nested_str(global), - /* K64 */ be_nested_str(fast_loop_enabled), - /* K65 */ be_nested_str(every_50ms), - /* K66 */ be_nested_str(run_deferred), - /* K67 */ be_nested_str(every_250ms), - /* K68 */ be_nested_str(run_cron), - /* K69 */ be_nested_str(mqtt_data), - /* K70 */ be_nested_str(cmd), - /* K71 */ be_nested_str(exec_cmd), - /* K72 */ be_nested_str(tele), - /* K73 */ be_nested_str(exec_tele), - /* K74 */ be_nested_str(rule), - /* K75 */ be_nested_str(exec_rules), - /* K76 */ be_nested_str(gc), - /* K77 */ be_nested_str(_drivers), - /* K78 */ be_nested_str(get), - /* K79 */ be_nested_str(BRY_X3A_X20Exception_X3E_X20_X27_X25s_X27_X20_X2D_X20_X25s), - /* K80 */ be_nested_str(_debug_present), - /* K81 */ be_nested_str(debug), - /* K82 */ be_nested_str(traceback), - /* K83 */ be_nested_str(save_before_restart), - /* K84 */ be_nested_str(persist), - /* K85 */ be_nested_str(path), - /* K86 */ be_nested_str(startswith), - /* K87 */ be_const_int(2147483647), - /* K88 */ be_nested_str(_X2E), - /* K89 */ be_nested_str(_X2Ebec), - /* K90 */ be_nested_str(BRY_X3A_X20file_X20extension_X20is_X20not_X20_X27_X2Ebe_X27_X20nor_X20_X27_X2Ebec_X27), - /* K91 */ be_nested_str(exists), - /* K92 */ be_nested_str(wd), - /* K93 */ be_nested_str(), - /* K94 */ be_nested_str(BRY_X3A_X20corrupt_X20bytecode_X20_X27_X25s_X27), - /* K95 */ be_nested_str(BRY_X3A_X20bytecode_X20has_X20wrong_X20version_X20_X27_X25s_X27_X20_X28_X25s_X29), - /* K96 */ be_nested_str(json), - /* K97 */ be_nested_str(load), - /* K98 */ be_nested_str(find_key_i), - /* K99 */ be_nested_str(resolvecmnd), - /* K100 */ be_nested_str(match), - /* K101 */ be_nested_str(trigger), - /* K102 */ be_nested_str(_rules), - /* K103 */ be_nested_str(cb), - /* K104 */ be_nested_str(gen_cb), - /* K105 */ be_nested_str(add_rule), - /* K106 */ be_nested_str(ctypes_bytes_dyn), - /* K107 */ be_nested_str(_global_addr), - /* K108 */ be_nested_str(_global_def), - /* K109 */ be_nested_str(_settings_ptr), - /* K110 */ be_nested_str(settings), - /* K111 */ be_nested_str(toptr), - /* K112 */ be_nested_str(_settings_def), - /* K113 */ be_nested_str(contains), - /* K114 */ be_nested_str(add_cmd), - /* K115 */ be_nested_str(UrlFetch), - /* K116 */ be_nested_str(toupper), - /* K117 */ be_nested_str(keys), - /* K118 */ be_nested_str(_X3F), - /* K119 */ be_nested_str(stop_iteration), - /* K120 */ be_nested_str(BRY_X3A_X20ERROR_X2C_X20bad_X20json_X3A_X20), - /* K121 */ be_nested_str(Tele), - /* K122 */ be_nested_str(try_rule), - /* K123 */ be_nested_str(instance), - /* K124 */ be_nested_str(instance_X20required), - /* K125 */ be_nested_str(remove_rule), - /* K126 */ be_nested_str(Rule_Matcher), - /* K127 */ be_nested_str(parse), - /* K128 */ be_nested_str(tasmota_X2Eget_light_X28_X29_X20is_X20deprecated_X2C_X20use_X20light_X2Eget_X28_X29), - /* K129 */ be_nested_str(cmd_res), - /* K130 */ be_nested_str(maxlog_level), - /* K131 */ be_nested_str(_cmd), - /* K132 */ be_nested_str(i2c_enabled), - /* K133 */ be_nested_str(wire1), - /* K134 */ be_nested_str(enabled), - /* K135 */ be_nested_str(detect), - /* K136 */ be_nested_str(wire2), - /* K137 */ be_nested_str(time_dump), - /* K138 */ be_nested_str(_X2504d_X2D_X2502d_X2D_X2502dT_X2502d_X3A_X2502d_X3A_X2502d), - /* K139 */ be_nested_str(year), - /* K140 */ be_nested_str(month), - /* K141 */ be_nested_str(day), - /* K142 */ be_nested_str(hour), - /* K143 */ be_nested_str(min), - /* K144 */ be_nested_str(sec), - /* K145 */ be_nested_str(o), - /* K146 */ be_nested_str(_find_op), - /* K147 */ be_nested_str(collect), - /* K148 */ be_nested_str(allocated), - /* K149 */ be_nested_str(http), - /* K150 */ be_nested_str(resp_cmnd_str), - /* K151 */ be_nested_str(URL_X20must_X20start_X20with_X20_X27http_X28s_X29_X27), - /* K152 */ be_nested_str(urlfetch), - /* K153 */ be_nested_str(resp_cmnd_failed), - /* K154 */ be_nested_str(resp_cmnd_done), -}; - - -extern const bclass be_class_Tasmota; - -/******************************************************************** -** Solidified function: check_not_method -********************************************************************/ -be_local_closure(class_Tasmota_check_not_method, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_check_not_method, - &be_const_str_solidified, - ( &(const binstruction[15]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x600C0004, // 0001 GETGBL R3 G4 - 0x5C100200, // 0002 MOVE R4 R1 - 0x7C0C0200, // 0003 CALL R3 1 - 0x200C0701, // 0004 NE R3 R3 K1 - 0x780E0000, // 0005 JMPF R3 #0007 - 0xB0060503, // 0006 RAISE 1 K2 K3 - 0x8C0C0504, // 0007 GETMET R3 R2 K4 - 0x5C140200, // 0008 MOVE R5 R1 - 0x7C0C0400, // 0009 CALL R3 2 - 0x50100200, // 000A LDBOOL R4 1 0 - 0x1C0C0604, // 000B EQ R3 R3 R4 - 0x780E0000, // 000C JMPF R3 #000E - 0xB0060505, // 000D RAISE 1 K2 K5 - 0x80000000, // 000E RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: int -********************************************************************/ -be_local_closure(class_Tasmota_int, /* name */ - be_nested_proto( - 6, /* nstack */ - 3, /* argc */ - 12, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_int, - &be_const_str_solidified, - ( &(const binstruction[46]) { /* code */ - 0x580C0006, // 0000 LDCONST R3 K6 - 0x60100009, // 0001 GETGBL R4 G9 - 0x5C140000, // 0002 MOVE R5 R0 - 0x7C100200, // 0003 CALL R4 1 - 0x5C000800, // 0004 MOVE R0 R4 - 0x4C100000, // 0005 LDNIL R4 - 0x1C100204, // 0006 EQ R4 R1 R4 - 0x78120003, // 0007 JMPF R4 #000C - 0x4C100000, // 0008 LDNIL R4 - 0x1C100404, // 0009 EQ R4 R2 R4 - 0x78120000, // 000A JMPF R4 #000C - 0x80040000, // 000B RET 1 R0 - 0x60100009, // 000C GETGBL R4 G9 - 0x5C140200, // 000D MOVE R5 R1 - 0x7C100200, // 000E CALL R4 1 - 0x5C040800, // 000F MOVE R1 R4 - 0x60100009, // 0010 GETGBL R4 G9 - 0x5C140400, // 0011 MOVE R5 R2 - 0x7C100200, // 0012 CALL R4 1 - 0x5C080800, // 0013 MOVE R2 R4 - 0x4C100000, // 0014 LDNIL R4 - 0x20100204, // 0015 NE R4 R1 R4 - 0x78120006, // 0016 JMPF R4 #001E - 0x4C100000, // 0017 LDNIL R4 - 0x20100404, // 0018 NE R4 R2 R4 - 0x78120003, // 0019 JMPF R4 #001E - 0x4C100000, // 001A LDNIL R4 - 0x1C100004, // 001B EQ R4 R0 R4 - 0x78120000, // 001C JMPF R4 #001E - 0x80040200, // 001D RET 1 R1 - 0x4C100000, // 001E LDNIL R4 - 0x20100004, // 001F NE R4 R0 R4 - 0x7812000B, // 0020 JMPF R4 #002D - 0x4C100000, // 0021 LDNIL R4 - 0x20100204, // 0022 NE R4 R1 R4 - 0x78120002, // 0023 JMPF R4 #0027 - 0x14100001, // 0024 LT R4 R0 R1 - 0x78120000, // 0025 JMPF R4 #0027 - 0x80040200, // 0026 RET 1 R1 - 0x4C100000, // 0027 LDNIL R4 - 0x20100404, // 0028 NE R4 R2 R4 - 0x78120002, // 0029 JMPF R4 #002D - 0x24100002, // 002A GT R4 R0 R2 - 0x78120000, // 002B JMPF R4 #002D - 0x80040400, // 002C RET 1 R2 - 0x80040000, // 002D RET 1 R0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: urlfetch -********************************************************************/ -be_local_closure(class_Tasmota_urlfetch, /* name */ - be_nested_proto( - 10, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_urlfetch, - &be_const_str_solidified, - ( &(const binstruction[48]) { /* code */ - 0x4C0C0000, // 0000 LDNIL R3 - 0x1C0C0403, // 0001 EQ R3 R2 R3 - 0x780E000D, // 0002 JMPF R3 #0011 - 0xA40E0E00, // 0003 IMPORT R3 K7 - 0x8C100708, // 0004 GETMET R4 R3 K8 - 0x5C180200, // 0005 MOVE R6 R1 - 0x581C0009, // 0006 LDCONST R7 K9 - 0x7C100600, // 0007 CALL R4 3 - 0x8C10090A, // 0008 GETMET R4 R4 K10 - 0x7C100200, // 0009 CALL R4 1 - 0x5C080800, // 000A MOVE R2 R4 - 0x6010000C, // 000B GETGBL R4 G12 - 0x5C140400, // 000C MOVE R5 R2 - 0x7C100200, // 000D CALL R4 1 - 0x1C10090B, // 000E EQ R4 R4 K11 - 0x78120000, // 000F JMPF R4 #0011 - 0x5808000C, // 0010 LDCONST R2 K12 - 0xB80E1A00, // 0011 GETNGBL R3 K13 - 0x7C0C0000, // 0012 CALL R3 0 - 0x8C10070E, // 0013 GETMET R4 R3 K14 - 0x50180200, // 0014 LDBOOL R6 1 0 - 0x7C100400, // 0015 CALL R4 2 - 0x8C10070F, // 0016 GETMET R4 R3 K15 - 0x5C180200, // 0017 MOVE R6 R1 - 0x7C100400, // 0018 CALL R4 2 - 0x8C100710, // 0019 GETMET R4 R3 K16 - 0x7C100200, // 001A CALL R4 1 - 0x541600C7, // 001B LDINT R5 200 - 0x20140805, // 001C NE R5 R4 R5 - 0x78160004, // 001D JMPF R5 #0023 - 0x60140008, // 001E GETGBL R5 G8 - 0x5C180800, // 001F MOVE R6 R4 - 0x7C140200, // 0020 CALL R5 1 - 0x00162205, // 0021 ADD R5 K17 R5 - 0xB0062405, // 0022 RAISE 1 K18 R5 - 0x8C140713, // 0023 GETMET R5 R3 K19 - 0x5C1C0400, // 0024 MOVE R7 R2 - 0x7C140400, // 0025 CALL R5 2 - 0x8C180714, // 0026 GETMET R6 R3 K20 - 0x7C180200, // 0027 CALL R6 1 - 0x8C180115, // 0028 GETMET R6 R0 K21 - 0x60200008, // 0029 GETGBL R8 G8 - 0x5C240A00, // 002A MOVE R9 R5 - 0x7C200200, // 002B CALL R8 1 - 0x00222C08, // 002C ADD R8 K22 R8 - 0x58240017, // 002D LDCONST R9 K23 - 0x7C180600, // 002E CALL R6 3 - 0x80040800, // 002F RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: compile -********************************************************************/ -be_local_closure(class_Tasmota_compile, /* name */ - be_nested_proto( - 12, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_compile, - &be_const_str_solidified, - ( &(const binstruction[84]) { /* code */ - 0xA40A0E00, // 0000 IMPORT R2 K7 - 0x8C0C0518, // 0001 GETMET R3 R2 K24 - 0x5C140200, // 0002 MOVE R5 R1 - 0x58180019, // 0003 LDCONST R6 K25 - 0x7C0C0600, // 0004 CALL R3 3 - 0x740E0007, // 0005 JMPT R3 #000E - 0x600C0001, // 0006 GETGBL R3 G1 - 0x60100018, // 0007 GETGBL R4 G24 - 0x5814001A, // 0008 LDCONST R5 K26 - 0x5C180200, // 0009 MOVE R6 R1 - 0x7C100400, // 000A CALL R4 2 - 0x7C0C0200, // 000B CALL R3 1 - 0x500C0000, // 000C LDBOOL R3 0 0 - 0x80040600, // 000D RET 1 R3 - 0x8C0C051B, // 000E GETMET R3 R2 K27 - 0x5C140200, // 000F MOVE R5 R1 - 0x5818001C, // 0010 LDCONST R6 K28 - 0x7C0C0600, // 0011 CALL R3 3 - 0x240C070B, // 0012 GT R3 R3 K11 - 0x780E0006, // 0013 JMPF R3 #001B - 0x600C0001, // 0014 GETGBL R3 G1 - 0x60100018, // 0015 GETGBL R4 G24 - 0x5814001D, // 0016 LDCONST R5 K29 - 0x7C100200, // 0017 CALL R4 1 - 0x7C0C0200, // 0018 CALL R3 1 - 0x500C0000, // 0019 LDBOOL R3 0 0 - 0x80040600, // 001A RET 1 R3 - 0x4C0C0000, // 001B LDNIL R3 - 0xA8020011, // 001C EXBLK 0 #002F - 0x6010000D, // 001D GETGBL R4 G13 - 0x5C140200, // 001E MOVE R5 R1 - 0x5818001E, // 001F LDCONST R6 K30 - 0x7C100400, // 0020 CALL R4 2 - 0x5C0C0800, // 0021 MOVE R3 R4 - 0x4C100000, // 0022 LDNIL R4 - 0x1C100604, // 0023 EQ R4 R3 R4 - 0x78120007, // 0024 JMPF R4 #002D - 0x60100001, // 0025 GETGBL R4 G1 - 0x60140018, // 0026 GETGBL R5 G24 - 0x5818001F, // 0027 LDCONST R6 K31 - 0x7C140200, // 0028 CALL R5 1 - 0x7C100200, // 0029 CALL R4 1 - 0x50100000, // 002A LDBOOL R4 0 0 - 0xA8040001, // 002B EXBLK 1 1 - 0x80040800, // 002C RET 1 R4 - 0xA8040001, // 002D EXBLK 1 1 - 0x7002000D, // 002E JMP #003D - 0xAC100002, // 002F CATCH R4 0 2 - 0x7002000A, // 0030 JMP #003C - 0x60180001, // 0031 GETGBL R6 G1 - 0x601C0018, // 0032 GETGBL R7 G24 - 0x58200020, // 0033 LDCONST R8 K32 - 0x5C240200, // 0034 MOVE R9 R1 - 0x5C280800, // 0035 MOVE R10 R4 - 0x5C2C0A00, // 0036 MOVE R11 R5 - 0x7C1C0800, // 0037 CALL R7 4 - 0x7C180200, // 0038 CALL R6 1 - 0x50180000, // 0039 LDBOOL R6 0 0 - 0x80040C00, // 003A RET 1 R6 - 0x70020000, // 003B JMP #003D - 0xB0080000, // 003C RAISE 2 R0 R0 - 0x00100321, // 003D ADD R4 R1 K33 - 0xA8020005, // 003E EXBLK 0 #0045 - 0x8C140122, // 003F GETMET R5 R0 K34 - 0x5C1C0800, // 0040 MOVE R7 R4 - 0x5C200600, // 0041 MOVE R8 R3 - 0x7C140600, // 0042 CALL R5 3 - 0xA8040001, // 0043 EXBLK 1 1 - 0x7002000C, // 0044 JMP #0052 - 0xAC140001, // 0045 CATCH R5 0 1 - 0x70020009, // 0046 JMP #0051 - 0x60180001, // 0047 GETGBL R6 G1 - 0x601C0018, // 0048 GETGBL R7 G24 - 0x58200023, // 0049 LDCONST R8 K35 - 0x5C240800, // 004A MOVE R9 R4 - 0x5C280A00, // 004B MOVE R10 R5 - 0x7C1C0600, // 004C CALL R7 3 - 0x7C180200, // 004D CALL R6 1 - 0x50180000, // 004E LDBOOL R6 0 0 - 0x80040C00, // 004F RET 1 R6 - 0x70020000, // 0050 JMP #0052 - 0xB0080000, // 0051 RAISE 2 R0 R0 - 0x50140200, // 0052 LDBOOL R5 1 0 - 0x80040A00, // 0053 RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: remove_cmd -********************************************************************/ -be_local_closure(class_Tasmota_remove_cmd, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_remove_cmd, - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x88080124, // 0000 GETMBR R2 R0 K36 - 0x780A0003, // 0001 JMPF R2 #0006 - 0x88080124, // 0002 GETMBR R2 R0 K36 - 0x8C080525, // 0003 GETMET R2 R2 K37 - 0x5C100200, // 0004 MOVE R4 R1 - 0x7C080400, // 0005 CALL R2 2 - 0x80000000, // 0006 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_light -********************************************************************/ -be_local_closure(class_Tasmota_set_light, /* name */ - be_nested_proto( - 8, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_set_light, - &be_const_str_solidified, - ( &(const binstruction[18]) { /* code */ - 0x600C0001, // 0000 GETGBL R3 G1 - 0x58100026, // 0001 LDCONST R4 K38 - 0x7C0C0200, // 0002 CALL R3 1 - 0xA40E4E00, // 0003 IMPORT R3 K39 - 0x4C100000, // 0004 LDNIL R4 - 0x20100404, // 0005 NE R4 R2 R4 - 0x78120005, // 0006 JMPF R4 #000D - 0x8C100728, // 0007 GETMET R4 R3 K40 - 0x5C180200, // 0008 MOVE R6 R1 - 0x5C1C0400, // 0009 MOVE R7 R2 - 0x7C100600, // 000A CALL R4 3 - 0x80040800, // 000B RET 1 R4 - 0x70020003, // 000C JMP #0011 - 0x8C100728, // 000D GETMET R4 R3 K40 - 0x5C180200, // 000E MOVE R6 R1 - 0x7C100400, // 000F CALL R4 2 - 0x80040800, // 0010 RET 1 R4 - 0x80000000, // 0011 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: run_cron -********************************************************************/ -be_local_closure(class_Tasmota_run_cron, /* name */ - be_nested_proto( - 9, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_run_cron, - &be_const_str_solidified, - ( &(const binstruction[34]) { /* code */ - 0x88040129, // 0000 GETMBR R1 R0 K41 - 0x7806001E, // 0001 JMPF R1 #0021 - 0x5804000B, // 0002 LDCONST R1 K11 - 0xB80A5400, // 0003 GETNGBL R2 K42 - 0x8C08052B, // 0004 GETMET R2 R2 K43 - 0x7C080200, // 0005 CALL R2 1 - 0x880C0129, // 0006 GETMBR R3 R0 K41 - 0x8C0C072C, // 0007 GETMET R3 R3 K44 - 0x7C0C0200, // 0008 CALL R3 1 - 0x140C0203, // 0009 LT R3 R1 R3 - 0x780E0015, // 000A JMPF R3 #0021 - 0x880C0129, // 000B GETMBR R3 R0 K41 - 0x940C0601, // 000C GETIDX R3 R3 R1 - 0x8810072D, // 000D GETMBR R4 R3 K45 - 0x1C10090B, // 000E EQ R4 R4 K11 - 0x78120003, // 000F JMPF R4 #0014 - 0x8C10072E, // 0010 GETMET R4 R3 K46 - 0x7C100200, // 0011 CALL R4 1 - 0x900E5A04, // 0012 SETMBR R3 K45 R4 - 0x7002000A, // 0013 JMP #001F - 0x8C10072F, // 0014 GETMET R4 R3 K47 - 0x7C100200, // 0015 CALL R4 1 - 0x78120007, // 0016 JMPF R4 #001F - 0x88100730, // 0017 GETMBR R4 R3 K48 - 0x8C14072E, // 0018 GETMET R5 R3 K46 - 0x7C140200, // 0019 CALL R5 1 - 0x900E5A05, // 001A SETMBR R3 K45 R5 - 0x5C180800, // 001B MOVE R6 R4 - 0x5C1C0400, // 001C MOVE R7 R2 - 0x5C200A00, // 001D MOVE R8 R5 - 0x7C180400, // 001E CALL R6 2 - 0x00040331, // 001F ADD R1 R1 K49 - 0x7001FFE4, // 0020 JMP #0006 - 0x80000000, // 0021 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: remove_cron -********************************************************************/ -be_local_closure(class_Tasmota_remove_cron, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_remove_cron, - &be_const_str_solidified, - ( &(const binstruction[18]) { /* code */ - 0x88080129, // 0000 GETMBR R2 R0 K41 - 0x780A000E, // 0001 JMPF R2 #0011 - 0x580C000B, // 0002 LDCONST R3 K11 - 0x8C10052C, // 0003 GETMET R4 R2 K44 - 0x7C100200, // 0004 CALL R4 1 - 0x14100604, // 0005 LT R4 R3 R4 - 0x78120009, // 0006 JMPF R4 #0011 - 0x94100403, // 0007 GETIDX R4 R2 R3 - 0x88100932, // 0008 GETMBR R4 R4 K50 - 0x1C100801, // 0009 EQ R4 R4 R1 - 0x78120003, // 000A JMPF R4 #000F - 0x8C100525, // 000B GETMET R4 R2 K37 - 0x5C180600, // 000C MOVE R6 R3 - 0x7C100400, // 000D CALL R4 2 - 0x70020000, // 000E JMP #0010 - 0x000C0731, // 000F ADD R3 R3 K49 - 0x7001FFF1, // 0010 JMP #0003 - 0x80000000, // 0011 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: remove_timer -********************************************************************/ -be_local_closure(class_Tasmota_remove_timer, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_remove_timer, - &be_const_str_solidified, - ( &(const binstruction[18]) { /* code */ - 0x88080133, // 0000 GETMBR R2 R0 K51 - 0x780A000E, // 0001 JMPF R2 #0011 - 0x580C000B, // 0002 LDCONST R3 K11 - 0x8C10052C, // 0003 GETMET R4 R2 K44 - 0x7C100200, // 0004 CALL R4 1 - 0x14100604, // 0005 LT R4 R3 R4 - 0x78120009, // 0006 JMPF R4 #0011 - 0x94100403, // 0007 GETIDX R4 R2 R3 - 0x88100932, // 0008 GETMBR R4 R4 K50 - 0x1C100801, // 0009 EQ R4 R4 R1 - 0x78120003, // 000A JMPF R4 #000F - 0x8C100525, // 000B GETMET R4 R2 K37 - 0x5C180600, // 000C MOVE R6 R3 - 0x7C100400, // 000D CALL R4 2 - 0x70020000, // 000E JMP #0010 - 0x000C0731, // 000F ADD R3 R3 K49 - 0x7001FFF1, // 0010 JMP #0003 - 0x80000000, // 0011 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: next_cron -********************************************************************/ -be_local_closure(class_Tasmota_next_cron, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_next_cron, - &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0x88080129, // 0000 GETMBR R2 R0 K41 - 0x780A000D, // 0001 JMPF R2 #0010 - 0x580C000B, // 0002 LDCONST R3 K11 - 0x8C10052C, // 0003 GETMET R4 R2 K44 - 0x7C100200, // 0004 CALL R4 1 - 0x14100604, // 0005 LT R4 R3 R4 - 0x78120008, // 0006 JMPF R4 #0010 - 0x94100403, // 0007 GETIDX R4 R2 R3 - 0x88100932, // 0008 GETMBR R4 R4 K50 - 0x1C100801, // 0009 EQ R4 R4 R1 - 0x78120002, // 000A JMPF R4 #000E - 0x94100403, // 000B GETIDX R4 R2 R3 - 0x8810092D, // 000C GETMBR R4 R4 K45 - 0x80040800, // 000D RET 1 R4 - 0x000C0731, // 000E ADD R3 R3 K49 - 0x7001FFF2, // 000F JMP #0003 - 0x80000000, // 0010 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_timer -********************************************************************/ -be_local_closure(class_Tasmota_set_timer, /* name */ - be_nested_proto( - 10, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_set_timer, - &be_const_str_solidified, - ( &(const binstruction[21]) { /* code */ - 0x8C100134, // 0000 GETMET R4 R0 K52 - 0x5C180400, // 0001 MOVE R6 R2 - 0x7C100400, // 0002 CALL R4 2 - 0x88100133, // 0003 GETMBR R4 R0 K51 - 0x4C140000, // 0004 LDNIL R5 - 0x1C100805, // 0005 EQ R4 R4 R5 - 0x78120002, // 0006 JMPF R4 #000A - 0x60100012, // 0007 GETGBL R4 G18 - 0x7C100000, // 0008 CALL R4 0 - 0x90026604, // 0009 SETMBR R0 K51 R4 - 0x88100133, // 000A GETMBR R4 R0 K51 - 0x8C100935, // 000B GETMET R4 R4 K53 - 0xB81A6C00, // 000C GETNGBL R6 K54 - 0x8C1C0137, // 000D GETMET R7 R0 K55 - 0x5C240200, // 000E MOVE R9 R1 - 0x7C1C0400, // 000F CALL R7 2 - 0x5C200400, // 0010 MOVE R8 R2 - 0x5C240600, // 0011 MOVE R9 R3 - 0x7C180600, // 0012 CALL R6 3 - 0x7C100400, // 0013 CALL R4 2 - 0x80000000, // 0014 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: add_cmd -********************************************************************/ -be_local_closure(class_Tasmota_add_cmd, /* name */ - be_nested_proto( - 6, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_add_cmd, - &be_const_str_solidified, - ( &(const binstruction[20]) { /* code */ - 0x8C0C0134, // 0000 GETMET R3 R0 K52 - 0x5C140400, // 0001 MOVE R5 R2 - 0x7C0C0400, // 0002 CALL R3 2 - 0x880C0124, // 0003 GETMBR R3 R0 K36 - 0x4C100000, // 0004 LDNIL R4 - 0x1C0C0604, // 0005 EQ R3 R3 R4 - 0x780E0002, // 0006 JMPF R3 #000A - 0x600C0013, // 0007 GETGBL R3 G19 - 0x7C0C0000, // 0008 CALL R3 0 - 0x90024803, // 0009 SETMBR R0 K36 R3 - 0x600C0004, // 000A GETGBL R3 G4 - 0x5C100400, // 000B MOVE R4 R2 - 0x7C0C0200, // 000C CALL R3 1 - 0x1C0C0701, // 000D EQ R3 R3 K1 - 0x780E0002, // 000E JMPF R3 #0012 - 0x880C0124, // 000F GETMBR R3 R0 K36 - 0x980C0202, // 0010 SETIDX R3 R1 R2 - 0x70020000, // 0011 JMP #0013 - 0xB0067139, // 0012 RAISE 1 K56 K57 - 0x80000000, // 0013 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: hs2rgb -********************************************************************/ -be_local_closure(class_Tasmota_hs2rgb, /* name */ - be_nested_proto( - 17, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_hs2rgb, - &be_const_str_solidified, - ( &(const binstruction[68]) { /* code */ - 0x4C0C0000, // 0000 LDNIL R3 - 0x1C0C0403, // 0001 EQ R3 R2 R3 - 0x780E0000, // 0002 JMPF R3 #0004 - 0x540A00FE, // 0003 LDINT R2 255 - 0x540E00FE, // 0004 LDINT R3 255 - 0x541200FE, // 0005 LDINT R4 255 - 0x541600FE, // 0006 LDINT R5 255 - 0x541A0167, // 0007 LDINT R6 360 - 0x10040206, // 0008 MOD R1 R1 R6 - 0x2418050B, // 0009 GT R6 R2 K11 - 0x781A0031, // 000A JMPF R6 #003D - 0x541A003B, // 000B LDINT R6 60 - 0x0C180206, // 000C DIV R6 R1 R6 - 0x541E003B, // 000D LDINT R7 60 - 0x101C0207, // 000E MOD R7 R1 R7 - 0x542200FE, // 000F LDINT R8 255 - 0x04201002, // 0010 SUB R8 R8 R2 - 0xB8267400, // 0011 GETNGBL R9 K58 - 0x8C24133B, // 0012 GETMET R9 R9 K59 - 0x5C2C0E00, // 0013 MOVE R11 R7 - 0x5830000B, // 0014 LDCONST R12 K11 - 0x5436003B, // 0015 LDINT R13 60 - 0x543A00FE, // 0016 LDINT R14 255 - 0x5C3C1000, // 0017 MOVE R15 R8 - 0x7C240C00, // 0018 CALL R9 6 - 0xB82A7400, // 0019 GETNGBL R10 K58 - 0x8C28153B, // 001A GETMET R10 R10 K59 - 0x5C300E00, // 001B MOVE R12 R7 - 0x5834000B, // 001C LDCONST R13 K11 - 0x543A003B, // 001D LDINT R14 60 - 0x5C3C1000, // 001E MOVE R15 R8 - 0x544200FE, // 001F LDINT R16 255 - 0x7C280C00, // 0020 CALL R10 6 - 0x1C2C0D0B, // 0021 EQ R11 R6 K11 - 0x782E0002, // 0022 JMPF R11 #0026 - 0x5C141400, // 0023 MOVE R5 R10 - 0x5C101000, // 0024 MOVE R4 R8 - 0x70020016, // 0025 JMP #003D - 0x1C2C0D31, // 0026 EQ R11 R6 K49 - 0x782E0002, // 0027 JMPF R11 #002B - 0x5C0C1200, // 0028 MOVE R3 R9 - 0x5C101000, // 0029 MOVE R4 R8 - 0x70020011, // 002A JMP #003D - 0x1C2C0D3C, // 002B EQ R11 R6 K60 - 0x782E0002, // 002C JMPF R11 #0030 - 0x5C0C1000, // 002D MOVE R3 R8 - 0x5C101400, // 002E MOVE R4 R10 - 0x7002000C, // 002F JMP #003D - 0x1C2C0D17, // 0030 EQ R11 R6 K23 - 0x782E0002, // 0031 JMPF R11 #0035 - 0x5C0C1000, // 0032 MOVE R3 R8 - 0x5C141200, // 0033 MOVE R5 R9 - 0x70020007, // 0034 JMP #003D - 0x542E0003, // 0035 LDINT R11 4 - 0x1C2C0C0B, // 0036 EQ R11 R6 R11 - 0x782E0002, // 0037 JMPF R11 #003B - 0x5C0C1400, // 0038 MOVE R3 R10 - 0x5C141000, // 0039 MOVE R5 R8 - 0x70020001, // 003A JMP #003D - 0x5C141000, // 003B MOVE R5 R8 - 0x5C101200, // 003C MOVE R4 R9 - 0x541A000F, // 003D LDINT R6 16 - 0x38180606, // 003E SHL R6 R3 R6 - 0x541E0007, // 003F LDINT R7 8 - 0x381C0A07, // 0040 SHL R7 R5 R7 - 0x30180C07, // 0041 OR R6 R6 R7 - 0x30180C04, // 0042 OR R6 R6 R4 - 0x80040C00, // 0043 RET 1 R6 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: add_fast_loop -********************************************************************/ -be_local_closure(class_Tasmota_add_fast_loop, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_add_fast_loop, - &be_const_str_solidified, - ( &(const binstruction[23]) { /* code */ - 0x8C080134, // 0000 GETMET R2 R0 K52 - 0x5C100200, // 0001 MOVE R4 R1 - 0x7C080400, // 0002 CALL R2 2 - 0x8808013D, // 0003 GETMBR R2 R0 K61 - 0x4C0C0000, // 0004 LDNIL R3 - 0x1C080403, // 0005 EQ R2 R2 R3 - 0x780A0002, // 0006 JMPF R2 #000A - 0x60080012, // 0007 GETGBL R2 G18 - 0x7C080000, // 0008 CALL R2 0 - 0x90027A02, // 0009 SETMBR R0 K61 R2 - 0x60080004, // 000A GETGBL R2 G4 - 0x5C0C0200, // 000B MOVE R3 R1 - 0x7C080200, // 000C CALL R2 1 - 0x20080501, // 000D NE R2 R2 K1 - 0x780A0000, // 000E JMPF R2 #0010 - 0xB006713E, // 000F RAISE 1 K56 K62 - 0x8808013F, // 0010 GETMBR R2 R0 K63 - 0x900A8131, // 0011 SETMBR R2 K64 K49 - 0x8808013D, // 0012 GETMBR R2 R0 K61 - 0x8C080535, // 0013 GETMET R2 R2 K53 - 0x5C100200, // 0014 MOVE R4 R1 - 0x7C080400, // 0015 CALL R2 2 - 0x80000000, // 0016 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: event -********************************************************************/ -be_local_closure(class_Tasmota_event, /* name */ - be_nested_proto( - 19, /* nstack */ - 6, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_event, - &be_const_str_solidified, - ( &(const binstruction[108]) { /* code */ - 0xA41A0000, // 0000 IMPORT R6 K0 - 0x1C1C0341, // 0001 EQ R7 R1 K65 - 0x781E0001, // 0002 JMPF R7 #0005 - 0x8C1C0142, // 0003 GETMET R7 R0 K66 - 0x7C1C0200, // 0004 CALL R7 1 - 0x1C1C0343, // 0005 EQ R7 R1 K67 - 0x781E0001, // 0006 JMPF R7 #0009 - 0x8C1C0144, // 0007 GETMET R7 R0 K68 - 0x7C1C0200, // 0008 CALL R7 1 - 0x501C0000, // 0009 LDBOOL R7 0 0 - 0x50200000, // 000A LDBOOL R8 0 0 - 0x1C240345, // 000B EQ R9 R1 K69 - 0x78260000, // 000C JMPF R9 #000E - 0x50200200, // 000D LDBOOL R8 1 0 - 0x1C240346, // 000E EQ R9 R1 K70 - 0x78260006, // 000F JMPF R9 #0017 - 0x8C240147, // 0010 GETMET R9 R0 K71 - 0x5C2C0400, // 0011 MOVE R11 R2 - 0x5C300600, // 0012 MOVE R12 R3 - 0x5C340800, // 0013 MOVE R13 R4 - 0x7C240800, // 0014 CALL R9 4 - 0x80041200, // 0015 RET 1 R9 - 0x7002004E, // 0016 JMP #0066 - 0x1C240348, // 0017 EQ R9 R1 K72 - 0x78260004, // 0018 JMPF R9 #001E - 0x8C240149, // 0019 GETMET R9 R0 K73 - 0x5C2C0800, // 001A MOVE R11 R4 - 0x7C240400, // 001B CALL R9 2 - 0x80041200, // 001C RET 1 R9 - 0x70020047, // 001D JMP #0066 - 0x1C24034A, // 001E EQ R9 R1 K74 - 0x78260007, // 001F JMPF R9 #0028 - 0x8C24014B, // 0020 GETMET R9 R0 K75 - 0x5C2C0800, // 0021 MOVE R11 R4 - 0x60300017, // 0022 GETGBL R12 G23 - 0x5C340600, // 0023 MOVE R13 R3 - 0x7C300200, // 0024 CALL R12 1 - 0x7C240600, // 0025 CALL R9 3 - 0x80041200, // 0026 RET 1 R9 - 0x7002003D, // 0027 JMP #0066 - 0x1C24034C, // 0028 EQ R9 R1 K76 - 0x78260003, // 0029 JMPF R9 #002E - 0x8C24014C, // 002A GETMET R9 R0 K76 - 0x7C240200, // 002B CALL R9 1 - 0x80041200, // 002C RET 1 R9 - 0x70020037, // 002D JMP #0066 - 0x8824014D, // 002E GETMBR R9 R0 K77 - 0x78260035, // 002F JMPF R9 #0066 - 0x5824000B, // 0030 LDCONST R9 K11 - 0x6028000C, // 0031 GETGBL R10 G12 - 0x882C014D, // 0032 GETMBR R11 R0 K77 - 0x7C280200, // 0033 CALL R10 1 - 0x1428120A, // 0034 LT R10 R9 R10 - 0x782A002F, // 0035 JMPF R10 #0066 - 0x8828014D, // 0036 GETMBR R10 R0 K77 - 0x94281409, // 0037 GETIDX R10 R10 R9 - 0x8C2C0D4E, // 0038 GETMET R11 R6 K78 - 0x5C341400, // 0039 MOVE R13 R10 - 0x5C380200, // 003A MOVE R14 R1 - 0x7C2C0600, // 003B CALL R11 3 - 0x60300004, // 003C GETGBL R12 G4 - 0x5C341600, // 003D MOVE R13 R11 - 0x7C300200, // 003E CALL R12 1 - 0x1C301901, // 003F EQ R12 R12 K1 - 0x78320022, // 0040 JMPF R12 #0064 - 0xA8020011, // 0041 EXBLK 0 #0054 - 0x5C301600, // 0042 MOVE R12 R11 - 0x5C341400, // 0043 MOVE R13 R10 - 0x5C380400, // 0044 MOVE R14 R2 - 0x5C3C0600, // 0045 MOVE R15 R3 - 0x5C400800, // 0046 MOVE R16 R4 - 0x5C440A00, // 0047 MOVE R17 R5 - 0x7C300A00, // 0048 CALL R12 5 - 0x74320001, // 0049 JMPT R12 #004C - 0x741E0000, // 004A JMPT R7 #004C - 0x501C0001, // 004B LDBOOL R7 0 1 - 0x501C0200, // 004C LDBOOL R7 1 0 - 0x781E0003, // 004D JMPF R7 #0052 - 0x5C301000, // 004E MOVE R12 R8 - 0x74320001, // 004F JMPT R12 #0052 - 0xA8040001, // 0050 EXBLK 1 1 - 0x70020013, // 0051 JMP #0066 - 0xA8040001, // 0052 EXBLK 1 1 - 0x7002000F, // 0053 JMP #0064 - 0xAC300002, // 0054 CATCH R12 0 2 - 0x7002000C, // 0055 JMP #0063 - 0x60380001, // 0056 GETGBL R14 G1 - 0x603C0018, // 0057 GETGBL R15 G24 - 0x5840004F, // 0058 LDCONST R16 K79 - 0x5C441800, // 0059 MOVE R17 R12 - 0x5C481A00, // 005A MOVE R18 R13 - 0x7C3C0600, // 005B CALL R15 3 - 0x7C380200, // 005C CALL R14 1 - 0x88380150, // 005D GETMBR R14 R0 K80 - 0x783A0002, // 005E JMPF R14 #0062 - 0xA43AA200, // 005F IMPORT R14 K81 - 0x8C3C1D52, // 0060 GETMET R15 R14 K82 - 0x7C3C0200, // 0061 CALL R15 1 - 0x70020000, // 0062 JMP #0064 - 0xB0080000, // 0063 RAISE 2 R0 R0 - 0x00241331, // 0064 ADD R9 R9 K49 - 0x7001FFCA, // 0065 JMP #0031 - 0x1C240353, // 0066 EQ R9 R1 K83 - 0x78260002, // 0067 JMPF R9 #006B - 0xA426A800, // 0068 IMPORT R9 K84 - 0x8C281322, // 0069 GETMET R10 R9 K34 - 0x7C280200, // 006A CALL R10 1 - 0x80040E00, // 006B RET 1 R7 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: load -********************************************************************/ -be_local_closure(class_Tasmota_load, /* name */ - be_nested_proto( - 26, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 6]) { - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str(sys), - /* K1 */ be_nested_str(path), - /* K2 */ be_nested_str(find), - /* K3 */ be_nested_str(push), - }), - &be_const_str_push_path, - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C080301, // 0001 GETMET R2 R1 K1 - 0x7C080200, // 0002 CALL R2 1 - 0x8C0C0502, // 0003 GETMET R3 R2 K2 - 0x5C140000, // 0004 MOVE R5 R0 - 0x7C0C0400, // 0005 CALL R3 2 - 0x4C100000, // 0006 LDNIL R4 - 0x1C0C0604, // 0007 EQ R3 R3 R4 - 0x780E0002, // 0008 JMPF R3 #000C - 0x8C0C0503, // 0009 GETMET R3 R2 K3 - 0x5C140000, // 000A MOVE R5 R0 - 0x7C0C0400, // 000B CALL R3 2 - 0x80000000, // 000C RET 0 - }) - ), - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str(sys), - /* K1 */ be_nested_str(path), - /* K2 */ be_nested_str(find), - /* K3 */ be_nested_str(remove), - }), - &be_const_str_pop_path, - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C080301, // 0001 GETMET R2 R1 K1 - 0x7C080200, // 0002 CALL R2 1 - 0x8C0C0502, // 0003 GETMET R3 R2 K2 - 0x5C140000, // 0004 MOVE R5 R0 - 0x7C0C0400, // 0005 CALL R3 2 - 0x4C100000, // 0006 LDNIL R4 - 0x20100604, // 0007 NE R4 R3 R4 - 0x78120002, // 0008 JMPF R4 #000C - 0x8C100503, // 0009 GETMET R4 R2 K3 - 0x5C180600, // 000A MOVE R6 R3 - 0x7C100400, // 000B CALL R4 2 - 0x80000000, // 000C RET 0 - }) - ), - be_nested_proto( - 8, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ - /* K0 */ be_nested_str(r), - /* K1 */ be_nested_str(readbytes), - /* K2 */ be_const_int(3), - /* K3 */ be_const_int(1), - /* K4 */ be_nested_str(BECDFE), - /* K5 */ be_const_int(0), - /* K6 */ be_nested_str(close), - /* K7 */ be_nested_str(BRY_X3A_X20failed_X20to_X20load_X20compiled_X20_X27_X25s_X27_X20_X28_X25s_X29), - }), - &be_const_str_try_get_bec_version, - &be_const_str_solidified, - ( &(const binstruction[43]) { /* code */ - 0x4C040000, // 0000 LDNIL R1 - 0xA8020016, // 0001 EXBLK 0 #0019 - 0x60080011, // 0002 GETGBL R2 G17 - 0x5C0C0000, // 0003 MOVE R3 R0 - 0x58100000, // 0004 LDCONST R4 K0 - 0x7C080400, // 0005 CALL R2 2 - 0x5C040400, // 0006 MOVE R1 R2 - 0x8C080301, // 0007 GETMET R2 R1 K1 - 0x58100002, // 0008 LDCONST R4 K2 - 0x7C080400, // 0009 CALL R2 2 - 0x8C0C0301, // 000A GETMET R3 R1 K1 - 0x58140003, // 000B LDCONST R5 K3 - 0x7C0C0400, // 000C CALL R3 2 - 0x60100015, // 000D GETGBL R4 G21 - 0x58140004, // 000E LDCONST R5 K4 - 0x7C100200, // 000F CALL R4 1 - 0x1C100404, // 0010 EQ R4 R2 R4 - 0x78120002, // 0011 JMPF R4 #0015 - 0x94100705, // 0012 GETIDX R4 R3 K5 - 0xA8040001, // 0013 EXBLK 1 1 - 0x80040800, // 0014 RET 1 R4 - 0x8C100306, // 0015 GETMET R4 R1 K6 - 0x7C100200, // 0016 CALL R4 1 - 0xA8040001, // 0017 EXBLK 1 1 - 0x7002000F, // 0018 JMP #0029 - 0xAC080001, // 0019 CATCH R2 0 1 - 0x7002000C, // 001A JMP #0028 - 0x4C0C0000, // 001B LDNIL R3 - 0x200C0203, // 001C NE R3 R1 R3 - 0x780E0001, // 001D JMPF R3 #0020 - 0x8C0C0306, // 001E GETMET R3 R1 K6 - 0x7C0C0200, // 001F CALL R3 1 - 0x600C0001, // 0020 GETGBL R3 G1 - 0x60100018, // 0021 GETGBL R4 G24 - 0x58140007, // 0022 LDCONST R5 K7 - 0x5C180000, // 0023 MOVE R6 R0 - 0x5C1C0400, // 0024 MOVE R7 R2 - 0x7C100600, // 0025 CALL R4 3 - 0x7C0C0200, // 0026 CALL R3 1 - 0x70020000, // 0027 JMP #0029 - 0xB0080000, // 0028 RAISE 2 R0 R0 - 0x4C080000, // 0029 LDNIL R2 - 0x80040400, // 002A RET 1 R2 - }) - ), - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str(path), - /* K1 */ be_nested_str(remove), - }), - &be_const_str_try_remove_file, - &be_const_str_solidified, - ( &(const binstruction[15]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA8020006, // 0001 EXBLK 0 #0009 - 0x8C080301, // 0002 GETMET R2 R1 K1 - 0x5C100000, // 0003 MOVE R4 R0 - 0x7C080400, // 0004 CALL R2 2 - 0xA8040001, // 0005 EXBLK 1 1 - 0x80040400, // 0006 RET 1 R2 - 0xA8040001, // 0007 EXBLK 1 1 - 0x70020003, // 0008 JMP #000D - 0xAC080000, // 0009 CATCH R2 0 0 - 0x70020000, // 000A JMP #000C - 0x70020000, // 000B JMP #000D - 0xB0080000, // 000C RAISE 2 R0 R0 - 0x50080000, // 000D LDBOOL R2 0 0 - 0x80040400, // 000E RET 1 R2 - }) - ), - be_nested_proto( - 9, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str(file), - /* K1 */ be_nested_str(BRY_X3A_X20failed_X20to_X20load_X20_X27_X25s_X27_X20_X28_X25s_X20_X2D_X20_X25s_X29), - }), - &be_const_str_try_compile, - &be_const_str_solidified, - ( &(const binstruction[23]) { /* code */ - 0xA8020007, // 0000 EXBLK 0 #0009 - 0x6004000D, // 0001 GETGBL R1 G13 - 0x5C080000, // 0002 MOVE R2 R0 - 0x580C0000, // 0003 LDCONST R3 K0 - 0x7C040400, // 0004 CALL R1 2 - 0xA8040001, // 0005 EXBLK 1 1 - 0x80040200, // 0006 RET 1 R1 - 0xA8040001, // 0007 EXBLK 1 1 - 0x7002000B, // 0008 JMP #0015 - 0xAC040002, // 0009 CATCH R1 0 2 - 0x70020008, // 000A JMP #0014 - 0x600C0001, // 000B GETGBL R3 G1 - 0x60100018, // 000C GETGBL R4 G24 - 0x58140001, // 000D LDCONST R5 K1 - 0x5C180000, // 000E MOVE R6 R0 - 0x5C1C0200, // 000F MOVE R7 R1 - 0x5C200400, // 0010 MOVE R8 R2 - 0x7C100800, // 0011 CALL R4 4 - 0x7C0C0200, // 0012 CALL R3 1 - 0x70020000, // 0013 JMP #0015 - 0xB0080000, // 0014 RAISE 2 R0 R0 - 0x4C040000, // 0015 LDNIL R1 - 0x80040200, // 0016 RET 1 R1 - }) - ), - be_nested_proto( - 8, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str(BRY_X3A_X20failed_X20to_X20run_X20compiled_X20code_X20_X28_X25s_X20_X2D_X20_X25s_X29), - /* K1 */ be_nested_str(_debug_present), - /* K2 */ be_nested_str(debug), - /* K3 */ be_nested_str(traceback), - }), - &be_const_str_try_run_compiled, - &be_const_str_solidified, - ( &(const binstruction[30]) { /* code */ - 0x4C040000, // 0000 LDNIL R1 - 0x20040001, // 0001 NE R1 R0 R1 - 0x78060018, // 0002 JMPF R1 #001C - 0xA8020006, // 0003 EXBLK 0 #000B - 0x5C040000, // 0004 MOVE R1 R0 - 0x7C040000, // 0005 CALL R1 0 - 0x50040200, // 0006 LDBOOL R1 1 0 - 0xA8040001, // 0007 EXBLK 1 1 - 0x80040200, // 0008 RET 1 R1 - 0xA8040001, // 0009 EXBLK 1 1 - 0x70020010, // 000A JMP #001C - 0xAC040002, // 000B CATCH R1 0 2 - 0x7002000D, // 000C JMP #001B - 0x600C0001, // 000D GETGBL R3 G1 - 0x60100018, // 000E GETGBL R4 G24 - 0x58140000, // 000F LDCONST R5 K0 - 0x5C180200, // 0010 MOVE R6 R1 - 0x5C1C0400, // 0011 MOVE R7 R2 - 0x7C100600, // 0012 CALL R4 3 - 0x7C0C0200, // 0013 CALL R3 1 - 0x680C0000, // 0014 GETUPV R3 U0 - 0x880C0701, // 0015 GETMBR R3 R3 K1 - 0x780E0002, // 0016 JMPF R3 #001A - 0xA40E0400, // 0017 IMPORT R3 K2 - 0x8C100703, // 0018 GETMET R4 R3 K3 - 0x7C100200, // 0019 CALL R4 1 - 0x70020000, // 001A JMP #001C - 0xB0080000, // 001B RAISE 2 R0 R0 - 0x50040000, // 001C LDBOOL R1 0 0 - 0x80040200, // 001D RET 1 R1 - }) - ), - }), - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_load, - &be_const_str_solidified, - ( &(const binstruction[164]) { /* code */ - 0x84080000, // 0000 CLOSURE R2 P0 - 0x840C0001, // 0001 CLOSURE R3 P1 - 0x84100002, // 0002 CLOSURE R4 P2 - 0x84140003, // 0003 CLOSURE R5 P3 - 0x84180004, // 0004 CLOSURE R6 P4 - 0x841C0005, // 0005 CLOSURE R7 P5 - 0xA4220E00, // 0006 IMPORT R8 K7 - 0xA426AA00, // 0007 IMPORT R9 K85 - 0x6028000C, // 0008 GETGBL R10 G12 - 0x5C2C0200, // 0009 MOVE R11 R1 - 0x7C280200, // 000A CALL R10 1 - 0x1C28150B, // 000B EQ R10 R10 K11 - 0x782A0002, // 000C JMPF R10 #0010 - 0x50280000, // 000D LDBOOL R10 0 0 - 0xA0000000, // 000E CLOSE R0 - 0x80041400, // 000F RET 1 R10 - 0x8C281156, // 0010 GETMET R10 R8 K86 - 0x5C300200, // 0011 MOVE R12 R1 - 0x58340009, // 0012 LDCONST R13 K9 - 0x7C280600, // 0013 CALL R10 3 - 0x742A0000, // 0014 JMPT R10 #0016 - 0x00061201, // 0015 ADD R1 K9 R1 - 0x8C28111B, // 0016 GETMET R10 R8 K27 - 0x5C300200, // 0017 MOVE R12 R1 - 0x5834001C, // 0018 LDCONST R13 K28 - 0x7C280600, // 0019 CALL R10 3 - 0x242C150B, // 001A GT R11 R10 K11 - 0x782E0003, // 001B JMPF R11 #0020 - 0x04301531, // 001C SUB R12 R10 K49 - 0x4032160C, // 001D CONNECT R12 K11 R12 - 0x9430020C, // 001E GETIDX R12 R1 R12 - 0x70020000, // 001F JMP #0021 - 0x5C300200, // 0020 MOVE R12 R1 - 0x782E0003, // 0021 JMPF R11 #0026 - 0x00341531, // 0022 ADD R13 R10 K49 - 0x40341B57, // 0023 CONNECT R13 R13 K87 - 0x9434020D, // 0024 GETIDX R13 R1 R13 - 0x70020000, // 0025 JMP #0027 - 0x5C340200, // 0026 MOVE R13 R1 - 0x8C38111B, // 0027 GETMET R14 R8 K27 - 0x5C401A00, // 0028 MOVE R16 R13 - 0x58440058, // 0029 LDCONST R17 K88 - 0x7C380600, // 002A CALL R14 3 - 0x14381D0B, // 002B LT R14 R14 K11 - 0x783A0001, // 002C JMPF R14 #002F - 0x00040319, // 002D ADD R1 R1 K25 - 0x00341B19, // 002E ADD R13 R13 K25 - 0x8C381118, // 002F GETMET R14 R8 K24 - 0x5C401A00, // 0030 MOVE R16 R13 - 0x58440019, // 0031 LDCONST R17 K25 - 0x7C380600, // 0032 CALL R14 3 - 0x8C3C1118, // 0033 GETMET R15 R8 K24 - 0x5C441A00, // 0034 MOVE R17 R13 - 0x58480059, // 0035 LDCONST R18 K89 - 0x7C3C0600, // 0036 CALL R15 3 - 0x783E0001, // 0037 JMPF R15 #003A - 0x5C400200, // 0038 MOVE R16 R1 - 0x70020000, // 0039 JMP #003B - 0x00400321, // 003A ADD R16 R1 K33 - 0x5C441C00, // 003B MOVE R17 R14 - 0x74460007, // 003C JMPT R17 #0045 - 0x5C441E00, // 003D MOVE R17 R15 - 0x74460005, // 003E JMPT R17 #0045 - 0x60440001, // 003F GETGBL R17 G1 - 0x5848005A, // 0040 LDCONST R18 K90 - 0x7C440200, // 0041 CALL R17 1 - 0x50440000, // 0042 LDBOOL R17 0 0 - 0xA0000000, // 0043 CLOSE R0 - 0x80042200, // 0044 RET 1 R17 - 0x50440000, // 0045 LDBOOL R17 0 0 - 0x783E0008, // 0046 JMPF R15 #0050 - 0x8C48135B, // 0047 GETMET R18 R9 K91 - 0x5C502000, // 0048 MOVE R20 R16 - 0x7C480400, // 0049 CALL R18 2 - 0x744A0002, // 004A JMPT R18 #004E - 0x50480000, // 004B LDBOOL R18 0 0 - 0xA0000000, // 004C CLOSE R0 - 0x80042400, // 004D RET 1 R18 - 0x50440200, // 004E LDBOOL R17 1 0 - 0x70020014, // 004F JMP #0065 - 0x8C48135B, // 0050 GETMET R18 R9 K91 - 0x5C500200, // 0051 MOVE R20 R1 - 0x7C480400, // 0052 CALL R18 2 - 0x784A0007, // 0053 JMPF R18 #005C - 0x8C48135B, // 0054 GETMET R18 R9 K91 - 0x5C502000, // 0055 MOVE R20 R16 - 0x7C480400, // 0056 CALL R18 2 - 0x784A0002, // 0057 JMPF R18 #005B - 0x5C480A00, // 0058 MOVE R18 R5 - 0x5C4C2000, // 0059 MOVE R19 R16 - 0x7C480200, // 005A CALL R18 1 - 0x70020008, // 005B JMP #0065 - 0x8C48135B, // 005C GETMET R18 R9 K91 - 0x5C502000, // 005D MOVE R20 R16 - 0x7C480400, // 005E CALL R18 2 - 0x784A0001, // 005F JMPF R18 #0062 - 0x50440200, // 0060 LDBOOL R17 1 0 - 0x70020002, // 0061 JMP #0065 - 0x50480000, // 0062 LDBOOL R18 0 0 - 0xA0000000, // 0063 CLOSE R0 - 0x80042400, // 0064 RET 1 R18 - 0x782E0005, // 0065 JMPF R11 #006C - 0x0048191C, // 0066 ADD R18 R12 K28 - 0x9002B812, // 0067 SETMBR R0 K92 R18 - 0x5C480400, // 0068 MOVE R18 R2 - 0x884C015C, // 0069 GETMBR R19 R0 K92 - 0x7C480200, // 006A CALL R18 1 - 0x70020000, // 006B JMP #006D - 0x9002B95D, // 006C SETMBR R0 K92 K93 - 0x4C480000, // 006D LDNIL R18 - 0x78460025, // 006E JMPF R17 #0095 - 0x5C4C0800, // 006F MOVE R19 R4 - 0x5C502000, // 0070 MOVE R20 R16 - 0x7C4C0200, // 0071 CALL R19 1 - 0x50500200, // 0072 LDBOOL R20 1 0 - 0x4C540000, // 0073 LDNIL R21 - 0x1C542615, // 0074 EQ R21 R19 R21 - 0x78560007, // 0075 JMPF R21 #007E - 0x60540001, // 0076 GETGBL R21 G1 - 0x60580018, // 0077 GETGBL R22 G24 - 0x585C005E, // 0078 LDCONST R23 K94 - 0x5C602000, // 0079 MOVE R24 R16 - 0x7C580400, // 007A CALL R22 2 - 0x7C540200, // 007B CALL R21 1 - 0x50500000, // 007C LDBOOL R20 0 0 - 0x7002000A, // 007D JMP #0089 - 0x54560003, // 007E LDINT R21 4 - 0x20542615, // 007F NE R21 R19 R21 - 0x78560007, // 0080 JMPF R21 #0089 - 0x60540001, // 0081 GETGBL R21 G1 - 0x60580018, // 0082 GETGBL R22 G24 - 0x585C005F, // 0083 LDCONST R23 K95 - 0x5C602000, // 0084 MOVE R24 R16 - 0x5C642600, // 0085 MOVE R25 R19 - 0x7C580600, // 0086 CALL R22 3 - 0x7C540200, // 0087 CALL R21 1 - 0x50500000, // 0088 LDBOOL R20 0 0 - 0x78520003, // 0089 JMPF R20 #008E - 0x5C540C00, // 008A MOVE R21 R6 - 0x5C582000, // 008B MOVE R22 R16 - 0x7C540200, // 008C CALL R21 1 - 0x5C482A00, // 008D MOVE R18 R21 - 0x4C540000, // 008E LDNIL R21 - 0x1C542415, // 008F EQ R21 R18 R21 - 0x78560003, // 0090 JMPF R21 #0095 - 0x5C540A00, // 0091 MOVE R21 R5 - 0x5C582000, // 0092 MOVE R22 R16 - 0x7C540200, // 0093 CALL R21 1 - 0x50440000, // 0094 LDBOOL R17 0 0 - 0x5C4C2200, // 0095 MOVE R19 R17 - 0x744E0003, // 0096 JMPT R19 #009B - 0x5C4C0C00, // 0097 MOVE R19 R6 - 0x5C500200, // 0098 MOVE R20 R1 - 0x7C4C0200, // 0099 CALL R19 1 - 0x5C482600, // 009A MOVE R18 R19 - 0x5C4C0E00, // 009B MOVE R19 R7 - 0x5C502400, // 009C MOVE R20 R18 - 0x7C4C0200, // 009D CALL R19 1 - 0x782E0002, // 009E JMPF R11 #00A2 - 0x5C500600, // 009F MOVE R20 R3 - 0x0054191C, // 00A0 ADD R21 R12 K28 - 0x7C500200, // 00A1 CALL R20 1 - 0xA0000000, // 00A2 CLOSE R0 - 0x80042600, // 00A3 RET 1 R19 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: exec_cmd -********************************************************************/ -be_local_closure(class_Tasmota_exec_cmd, /* name */ - be_nested_proto( - 12, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_exec_cmd, - &be_const_str_solidified, - ( &(const binstruction[27]) { /* code */ - 0x88100124, // 0000 GETMBR R4 R0 K36 - 0x78120016, // 0001 JMPF R4 #0019 - 0xA412C000, // 0002 IMPORT R4 K96 - 0x8C140961, // 0003 GETMET R5 R4 K97 - 0x5C1C0600, // 0004 MOVE R7 R3 - 0x7C140400, // 0005 CALL R5 2 - 0x8C180162, // 0006 GETMET R6 R0 K98 - 0x88200124, // 0007 GETMBR R8 R0 K36 - 0x5C240200, // 0008 MOVE R9 R1 - 0x7C180600, // 0009 CALL R6 3 - 0x4C1C0000, // 000A LDNIL R7 - 0x201C0C07, // 000B NE R7 R6 R7 - 0x781E000B, // 000C JMPF R7 #0019 - 0x8C1C0163, // 000D GETMET R7 R0 K99 - 0x5C240C00, // 000E MOVE R9 R6 - 0x7C1C0400, // 000F CALL R7 2 - 0x881C0124, // 0010 GETMBR R7 R0 K36 - 0x941C0E06, // 0011 GETIDX R7 R7 R6 - 0x5C200C00, // 0012 MOVE R8 R6 - 0x5C240400, // 0013 MOVE R9 R2 - 0x5C280600, // 0014 MOVE R10 R3 - 0x5C2C0A00, // 0015 MOVE R11 R5 - 0x7C1C0800, // 0016 CALL R7 4 - 0x501C0200, // 0017 LDBOOL R7 1 0 - 0x80040E00, // 0018 RET 1 R7 - 0x50100000, // 0019 LDBOOL R4 0 0 - 0x80040800, // 001A RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: try_rule -********************************************************************/ -be_local_closure(class_Tasmota_try_rule, /* name */ - be_nested_proto( - 9, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_try_rule, - &be_const_str_solidified, - ( &(const binstruction[18]) { /* code */ - 0x8C100564, // 0000 GETMET R4 R2 K100 - 0x5C180200, // 0001 MOVE R6 R1 - 0x7C100400, // 0002 CALL R4 2 - 0x4C140000, // 0003 LDNIL R5 - 0x20140805, // 0004 NE R5 R4 R5 - 0x78160009, // 0005 JMPF R5 #0010 - 0x4C140000, // 0006 LDNIL R5 - 0x20140605, // 0007 NE R5 R3 R5 - 0x78160004, // 0008 JMPF R5 #000E - 0x5C140600, // 0009 MOVE R5 R3 - 0x5C180800, // 000A MOVE R6 R4 - 0x881C0565, // 000B GETMBR R7 R2 K101 - 0x5C200200, // 000C MOVE R8 R1 - 0x7C140600, // 000D CALL R5 3 - 0x50140200, // 000E LDBOOL R5 1 0 - 0x80040A00, // 000F RET 1 R5 - 0x50140000, // 0010 LDBOOL R5 0 0 - 0x80040A00, // 0011 RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: add_cron -********************************************************************/ -be_local_closure(class_Tasmota_add_cron, /* name */ - be_nested_proto( - 13, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_add_cron, - &be_const_str_solidified, - ( &(const binstruction[27]) { /* code */ - 0x8C100134, // 0000 GETMET R4 R0 K52 - 0x5C180400, // 0001 MOVE R6 R2 - 0x7C100400, // 0002 CALL R4 2 - 0x88100129, // 0003 GETMBR R4 R0 K41 - 0x4C140000, // 0004 LDNIL R5 - 0x1C100805, // 0005 EQ R4 R4 R5 - 0x78120002, // 0006 JMPF R4 #000A - 0x60100012, // 0007 GETGBL R4 G18 - 0x7C100000, // 0008 CALL R4 0 - 0x90025204, // 0009 SETMBR R0 K41 R4 - 0xB8125400, // 000A GETNGBL R4 K42 - 0x60140008, // 000B GETGBL R5 G8 - 0x5C180200, // 000C MOVE R6 R1 - 0x7C140200, // 000D CALL R5 1 - 0x7C100200, // 000E CALL R4 1 - 0x8C14092E, // 000F GETMET R5 R4 K46 - 0x7C140200, // 0010 CALL R5 1 - 0x88180129, // 0011 GETMBR R6 R0 K41 - 0x8C180D35, // 0012 GETMET R6 R6 K53 - 0xB8226C00, // 0013 GETNGBL R8 K54 - 0x5C240A00, // 0014 MOVE R9 R5 - 0x5C280400, // 0015 MOVE R10 R2 - 0x5C2C0600, // 0016 MOVE R11 R3 - 0x5C300800, // 0017 MOVE R12 R4 - 0x7C200800, // 0018 CALL R8 4 - 0x7C180400, // 0019 CALL R6 2 - 0x80000000, // 001A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: remove_rule -********************************************************************/ -be_local_closure(class_Tasmota_remove_rule, /* name */ - be_nested_proto( - 7, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_remove_rule, - &be_const_str_solidified, - ( &(const binstruction[27]) { /* code */ - 0x880C0166, // 0000 GETMBR R3 R0 K102 - 0x780E0017, // 0001 JMPF R3 #001A - 0x580C000B, // 0002 LDCONST R3 K11 - 0x6010000C, // 0003 GETGBL R4 G12 - 0x88140166, // 0004 GETMBR R5 R0 K102 - 0x7C100200, // 0005 CALL R4 1 - 0x14100604, // 0006 LT R4 R3 R4 - 0x78120011, // 0007 JMPF R4 #001A - 0x88100166, // 0008 GETMBR R4 R0 K102 - 0x94100803, // 0009 GETIDX R4 R4 R3 - 0x8810092D, // 000A GETMBR R4 R4 K45 - 0x8810094A, // 000B GETMBR R4 R4 K74 - 0x1C100801, // 000C EQ R4 R4 R1 - 0x78120009, // 000D JMPF R4 #0018 - 0x88100166, // 000E GETMBR R4 R0 K102 - 0x94100803, // 000F GETIDX R4 R4 R3 - 0x88100932, // 0010 GETMBR R4 R4 K50 - 0x1C100802, // 0011 EQ R4 R4 R2 - 0x78120004, // 0012 JMPF R4 #0018 - 0x88100166, // 0013 GETMBR R4 R0 K102 - 0x8C100925, // 0014 GETMET R4 R4 K37 - 0x5C180600, // 0015 MOVE R6 R3 - 0x7C100400, // 0016 CALL R4 2 - 0x70020000, // 0017 JMP #0019 - 0x000C0731, // 0018 ADD R3 R3 K49 - 0x7001FFE8, // 0019 JMP #0003 - 0x80000000, // 001A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: gen_cb -********************************************************************/ -be_local_closure(class_Tasmota_gen_cb, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_gen_cb, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0xA40ACE00, // 0000 IMPORT R2 K103 - 0x8C0C0568, // 0001 GETMET R3 R2 K104 - 0x5C140200, // 0002 MOVE R5 R1 - 0x7C0C0400, // 0003 CALL R3 2 - 0x80040600, // 0004 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: add_rule_once -********************************************************************/ -be_local_closure(class_Tasmota_add_rule_once, /* name */ - be_nested_proto( - 10, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_add_rule_once, - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x8C100169, // 0000 GETMET R4 R0 K105 - 0x5C180200, // 0001 MOVE R6 R1 - 0x5C1C0400, // 0002 MOVE R7 R2 - 0x5C200600, // 0003 MOVE R8 R3 - 0x50240200, // 0004 LDBOOL R9 1 0 - 0x7C100A00, // 0005 CALL R4 5 - 0x80000000, // 0006 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_Tasmota_init, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 1]) { - be_nested_proto( - 10, /* nstack */ - 4, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str(urlfetch_cmd), - }), - &be_const_str__anonymous_, - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x68100000, // 0000 GETUPV R4 U0 - 0x8C100900, // 0001 GETMET R4 R4 K0 - 0x5C180000, // 0002 MOVE R6 R0 - 0x5C1C0200, // 0003 MOVE R7 R1 - 0x5C200400, // 0004 MOVE R8 R2 - 0x5C240600, // 0005 MOVE R9 R3 - 0x7C100A00, // 0006 CALL R4 5 - 0x80000000, // 0007 RET 0 - }) - ), - }), - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[34]) { /* code */ - 0xB806D400, // 0000 GETNGBL R1 K106 - 0x8808016B, // 0001 GETMBR R2 R0 K107 - 0x880C016C, // 0002 GETMBR R3 R0 K108 - 0x7C040400, // 0003 CALL R1 2 - 0x90027E01, // 0004 SETMBR R0 K63 R1 - 0xA4060000, // 0005 IMPORT R1 K0 - 0x60080015, // 0006 GETGBL R2 G21 - 0x880C016D, // 0007 GETMBR R3 R0 K109 - 0x54120003, // 0008 LDINT R4 4 - 0x7C080400, // 0009 CALL R2 2 - 0x8C08054E, // 000A GETMET R2 R2 K78 - 0x5810000B, // 000B LDCONST R4 K11 - 0x54160003, // 000C LDINT R5 4 - 0x7C080600, // 000D CALL R2 3 - 0x780A0006, // 000E JMPF R2 #0016 - 0xB80ED400, // 000F GETNGBL R3 K106 - 0x8C10036F, // 0010 GETMET R4 R1 K111 - 0x5C180400, // 0011 MOVE R6 R2 - 0x7C100400, // 0012 CALL R4 2 - 0x88140170, // 0013 GETMBR R5 R0 K112 - 0x7C0C0400, // 0014 CALL R3 2 - 0x9002DC03, // 0015 SETMBR R0 K110 R3 - 0x9002B95D, // 0016 SETMBR R0 K92 K93 - 0xB80E7E00, // 0017 GETNGBL R3 K63 - 0x8C0C0771, // 0018 GETMET R3 R3 K113 - 0x58140051, // 0019 LDCONST R5 K81 - 0x7C0C0400, // 001A CALL R3 2 - 0x9002A003, // 001B SETMBR R0 K80 R3 - 0x8C0C0172, // 001C GETMET R3 R0 K114 - 0x58140073, // 001D LDCONST R5 K115 - 0x84180000, // 001E CLOSURE R6 P0 - 0x7C0C0600, // 001F CALL R3 3 - 0xA0000000, // 0020 CLOSE R0 - 0x80000000, // 0021 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: find_key_i -********************************************************************/ -be_local_closure(class_Tasmota_find_key_i, /* name */ - be_nested_proto( - 10, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_find_key_i, - &be_const_str_solidified, - ( &(const binstruction[30]) { /* code */ - 0xA40E0E00, // 0000 IMPORT R3 K7 - 0x8C100774, // 0001 GETMET R4 R3 K116 - 0x5C180400, // 0002 MOVE R6 R2 - 0x7C100400, // 0003 CALL R4 2 - 0x6014000F, // 0004 GETGBL R5 G15 - 0x5C180200, // 0005 MOVE R6 R1 - 0x601C0013, // 0006 GETGBL R7 G19 - 0x7C140400, // 0007 CALL R5 2 - 0x78160013, // 0008 JMPF R5 #001D - 0x60140010, // 0009 GETGBL R5 G16 - 0x8C180375, // 000A GETMET R6 R1 K117 - 0x7C180200, // 000B CALL R6 1 - 0x7C140200, // 000C CALL R5 1 - 0xA802000B, // 000D EXBLK 0 #001A - 0x5C180A00, // 000E MOVE R6 R5 - 0x7C180000, // 000F CALL R6 0 - 0x8C1C0774, // 0010 GETMET R7 R3 K116 - 0x5C240C00, // 0011 MOVE R9 R6 - 0x7C1C0400, // 0012 CALL R7 2 - 0x1C1C0E04, // 0013 EQ R7 R7 R4 - 0x741E0001, // 0014 JMPT R7 #0017 - 0x1C1C0576, // 0015 EQ R7 R2 K118 - 0x781E0001, // 0016 JMPF R7 #0019 - 0xA8040001, // 0017 EXBLK 1 1 - 0x80040C00, // 0018 RET 1 R6 - 0x7001FFF3, // 0019 JMP #000E - 0x58140077, // 001A LDCONST R5 K119 - 0xAC140200, // 001B CATCH R5 1 0 - 0xB0080000, // 001C RAISE 2 R0 R0 - 0x80000000, // 001D RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: exec_tele -********************************************************************/ -be_local_closure(class_Tasmota_exec_tele, /* name */ - be_nested_proto( - 12, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_exec_tele, - &be_const_str_solidified, - ( &(const binstruction[41]) { /* code */ - 0x88080166, // 0000 GETMBR R2 R0 K102 - 0x780A0024, // 0001 JMPF R2 #0027 - 0xA40AC000, // 0002 IMPORT R2 K96 - 0x8C0C0561, // 0003 GETMET R3 R2 K97 - 0x5C140200, // 0004 MOVE R5 R1 - 0x7C0C0400, // 0005 CALL R3 2 - 0x50100000, // 0006 LDBOOL R4 0 0 - 0x4C140000, // 0007 LDNIL R5 - 0x1C140605, // 0008 EQ R5 R3 R5 - 0x78160004, // 0009 JMPF R5 #000F - 0x8C140115, // 000A GETMET R5 R0 K21 - 0x001EF001, // 000B ADD R7 K120 R1 - 0x58200017, // 000C LDCONST R8 K23 - 0x7C140600, // 000D CALL R5 3 - 0x5C0C0200, // 000E MOVE R3 R1 - 0x60140013, // 000F GETGBL R5 G19 - 0x7C140000, // 0010 CALL R5 0 - 0x9816F203, // 0011 SETIDX R5 K121 R3 - 0x5C0C0A00, // 0012 MOVE R3 R5 - 0x5814000B, // 0013 LDCONST R5 K11 - 0x6018000C, // 0014 GETGBL R6 G12 - 0x881C0166, // 0015 GETMBR R7 R0 K102 - 0x7C180200, // 0016 CALL R6 1 - 0x14180A06, // 0017 LT R6 R5 R6 - 0x781A000C, // 0018 JMPF R6 #0026 - 0x88180166, // 0019 GETMBR R6 R0 K102 - 0x94180C05, // 001A GETIDX R6 R6 R5 - 0x8C1C017A, // 001B GETMET R7 R0 K122 - 0x5C240600, // 001C MOVE R9 R3 - 0x88280D2D, // 001D GETMBR R10 R6 K45 - 0x882C0D30, // 001E GETMBR R11 R6 K48 - 0x7C1C0800, // 001F CALL R7 4 - 0x741E0001, // 0020 JMPT R7 #0023 - 0x74120000, // 0021 JMPT R4 #0023 - 0x50100001, // 0022 LDBOOL R4 0 1 - 0x50100200, // 0023 LDBOOL R4 1 0 - 0x00140B31, // 0024 ADD R5 R5 K49 - 0x7001FFED, // 0025 JMP #0014 - 0x80040800, // 0026 RET 1 R4 - 0x50080000, // 0027 LDBOOL R2 0 0 - 0x80040400, // 0028 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: remove_driver -********************************************************************/ -be_local_closure(class_Tasmota_remove_driver, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_remove_driver, - &be_const_str_solidified, - ( &(const binstruction[14]) { /* code */ - 0x8808014D, // 0000 GETMBR R2 R0 K77 - 0x780A000A, // 0001 JMPF R2 #000D - 0x8808014D, // 0002 GETMBR R2 R0 K77 - 0x8C08051B, // 0003 GETMET R2 R2 K27 - 0x5C100200, // 0004 MOVE R4 R1 - 0x7C080400, // 0005 CALL R2 2 - 0x4C0C0000, // 0006 LDNIL R3 - 0x200C0403, // 0007 NE R3 R2 R3 - 0x780E0003, // 0008 JMPF R3 #000D - 0x880C014D, // 0009 GETMBR R3 R0 K77 - 0x8C0C070A, // 000A GETMET R3 R3 K10 - 0x5C140400, // 000B MOVE R5 R2 - 0x7C0C0400, // 000C CALL R3 2 - 0x80000000, // 000D RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: add_driver -********************************************************************/ -be_local_closure(class_Tasmota_add_driver, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_add_driver, - &be_const_str_solidified, - ( &(const binstruction[25]) { /* code */ - 0x60080004, // 0000 GETGBL R2 G4 - 0x5C0C0200, // 0001 MOVE R3 R1 - 0x7C080200, // 0002 CALL R2 1 - 0x2008057B, // 0003 NE R2 R2 K123 - 0x780A0000, // 0004 JMPF R2 #0006 - 0xB006717C, // 0005 RAISE 1 K56 K124 - 0x8808014D, // 0006 GETMBR R2 R0 K77 - 0x780A000B, // 0007 JMPF R2 #0014 - 0x8808014D, // 0008 GETMBR R2 R0 K77 - 0x8C08051B, // 0009 GETMET R2 R2 K27 - 0x5C100200, // 000A MOVE R4 R1 - 0x7C080400, // 000B CALL R2 2 - 0x4C0C0000, // 000C LDNIL R3 - 0x1C080403, // 000D EQ R2 R2 R3 - 0x780A0003, // 000E JMPF R2 #0013 - 0x8808014D, // 000F GETMBR R2 R0 K77 - 0x8C080535, // 0010 GETMET R2 R2 K53 - 0x5C100200, // 0011 MOVE R4 R1 - 0x7C080400, // 0012 CALL R2 2 - 0x70020003, // 0013 JMP #0018 - 0x60080012, // 0014 GETGBL R2 G18 - 0x7C080000, // 0015 CALL R2 0 - 0x400C0401, // 0016 CONNECT R3 R2 R1 - 0x90029A02, // 0017 SETMBR R0 K77 R2 - 0x80000000, // 0018 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: add_rule -********************************************************************/ -be_local_closure(class_Tasmota_add_rule, /* name */ - be_nested_proto( - 12, /* nstack */ - 5, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_add_rule, - &be_const_str_solidified, - ( &(const binstruction[37]) { /* code */ - 0x8C140134, // 0000 GETMET R5 R0 K52 - 0x5C1C0400, // 0001 MOVE R7 R2 - 0x7C140400, // 0002 CALL R5 2 - 0x88140166, // 0003 GETMBR R5 R0 K102 - 0x4C180000, // 0004 LDNIL R6 - 0x1C140A06, // 0005 EQ R5 R5 R6 - 0x78160002, // 0006 JMPF R5 #000A - 0x60140012, // 0007 GETGBL R5 G18 - 0x7C140000, // 0008 CALL R5 0 - 0x9002CC05, // 0009 SETMBR R0 K102 R5 - 0x60140004, // 000A GETGBL R5 G4 - 0x5C180400, // 000B MOVE R6 R2 - 0x7C140200, // 000C CALL R5 1 - 0x1C140B01, // 000D EQ R5 R5 K1 - 0x78160013, // 000E JMPF R5 #0023 - 0x4C140000, // 000F LDNIL R5 - 0x20140605, // 0010 NE R5 R3 R5 - 0x78160003, // 0011 JMPF R5 #0016 - 0x8C14017D, // 0012 GETMET R5 R0 K125 - 0x5C1C0200, // 0013 MOVE R7 R1 - 0x5C200600, // 0014 MOVE R8 R3 - 0x7C140600, // 0015 CALL R5 3 - 0x88140166, // 0016 GETMBR R5 R0 K102 - 0x8C140B35, // 0017 GETMET R5 R5 K53 - 0xB81E6C00, // 0018 GETNGBL R7 K54 - 0x8820017E, // 0019 GETMBR R8 R0 K126 - 0x8C20117F, // 001A GETMET R8 R8 K127 - 0x5C280200, // 001B MOVE R10 R1 - 0x7C200400, // 001C CALL R8 2 - 0x5C240400, // 001D MOVE R9 R2 - 0x5C280600, // 001E MOVE R10 R3 - 0x5C2C0800, // 001F MOVE R11 R4 - 0x7C1C0800, // 0020 CALL R7 4 - 0x7C140400, // 0021 CALL R5 2 - 0x70020000, // 0022 JMP #0024 - 0xB0067139, // 0023 RAISE 1 K56 K57 - 0x80000000, // 0024 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_light -********************************************************************/ -be_local_closure(class_Tasmota_get_light, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_get_light, - &be_const_str_solidified, - ( &(const binstruction[16]) { /* code */ - 0x60080001, // 0000 GETGBL R2 G1 - 0x580C0080, // 0001 LDCONST R3 K128 - 0x7C080200, // 0002 CALL R2 1 - 0xA40A4E00, // 0003 IMPORT R2 K39 - 0x4C0C0000, // 0004 LDNIL R3 - 0x200C0203, // 0005 NE R3 R1 R3 - 0x780E0004, // 0006 JMPF R3 #000C - 0x8C0C054E, // 0007 GETMET R3 R2 K78 - 0x5C140200, // 0008 MOVE R5 R1 - 0x7C0C0400, // 0009 CALL R3 2 - 0x80040600, // 000A RET 1 R3 - 0x70020002, // 000B JMP #000F - 0x8C0C054E, // 000C GETMET R3 R2 K78 - 0x7C0C0200, // 000D CALL R3 1 - 0x80040600, // 000E RET 1 R3 - 0x80000000, // 000F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: cmd -********************************************************************/ -be_local_closure(class_Tasmota_cmd, /* name */ - be_nested_proto( - 8, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_cmd, - &be_const_str_solidified, - ( &(const binstruction[27]) { /* code */ - 0x880C0181, // 0000 GETMBR R3 R0 K129 - 0x50100200, // 0001 LDBOOL R4 1 0 - 0x90030204, // 0002 SETMBR R0 K129 R4 - 0xB8127400, // 0003 GETNGBL R4 K58 - 0x8810093F, // 0004 GETMBR R4 R4 K63 - 0x88100982, // 0005 GETMBR R4 R4 K130 - 0x780A0004, // 0006 JMPF R2 #000C - 0x2814093C, // 0007 GE R5 R4 K60 - 0x78160002, // 0008 JMPF R5 #000C - 0xB8167400, // 0009 GETNGBL R5 K58 - 0x88140B3F, // 000A GETMBR R5 R5 K63 - 0x90170531, // 000B SETMBR R5 K130 K49 - 0x8C140183, // 000C GETMET R5 R0 K131 - 0x5C1C0200, // 000D MOVE R7 R1 - 0x7C140400, // 000E CALL R5 2 - 0x4C140000, // 000F LDNIL R5 - 0x88180181, // 0010 GETMBR R6 R0 K129 - 0x501C0200, // 0011 LDBOOL R7 1 0 - 0x20180C07, // 0012 NE R6 R6 R7 - 0x781A0000, // 0013 JMPF R6 #0015 - 0x88140181, // 0014 GETMBR R5 R0 K129 - 0x90030203, // 0015 SETMBR R0 K129 R3 - 0x780A0002, // 0016 JMPF R2 #001A - 0xB81A7400, // 0017 GETNGBL R6 K58 - 0x88180D3F, // 0018 GETMBR R6 R6 K63 - 0x901B0404, // 0019 SETMBR R6 K130 R4 - 0x80040A00, // 001A RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: remove_fast_loop -********************************************************************/ -be_local_closure(class_Tasmota_remove_fast_loop, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_remove_fast_loop, - &be_const_str_solidified, - ( &(const binstruction[15]) { /* code */ - 0x8808013D, // 0000 GETMBR R2 R0 K61 - 0x740A0000, // 0001 JMPT R2 #0003 - 0x80000400, // 0002 RET 0 - 0x8808013D, // 0003 GETMBR R2 R0 K61 - 0x8C08051B, // 0004 GETMET R2 R2 K27 - 0x5C100200, // 0005 MOVE R4 R1 - 0x7C080400, // 0006 CALL R2 2 - 0x4C0C0000, // 0007 LDNIL R3 - 0x200C0403, // 0008 NE R3 R2 R3 - 0x780E0003, // 0009 JMPF R3 #000E - 0x880C013D, // 000A GETMBR R3 R0 K61 - 0x8C0C0725, // 000B GETMET R3 R3 K37 - 0x5C140400, // 000C MOVE R5 R2 - 0x7C0C0400, // 000D CALL R3 2 - 0x80000000, // 000E RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: wire_scan -********************************************************************/ -be_local_closure(class_Tasmota_wire_scan, /* name */ - be_nested_proto( - 6, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_wire_scan, - &be_const_str_solidified, - ( &(const binstruction[33]) { /* code */ - 0x4C0C0000, // 0000 LDNIL R3 - 0x200C0403, // 0001 NE R3 R2 R3 - 0x780E0005, // 0002 JMPF R3 #0009 - 0x8C0C0184, // 0003 GETMET R3 R0 K132 - 0x5C140400, // 0004 MOVE R5 R2 - 0x7C0C0400, // 0005 CALL R3 2 - 0x740E0001, // 0006 JMPT R3 #0009 - 0x4C0C0000, // 0007 LDNIL R3 - 0x80040600, // 0008 RET 1 R3 - 0x880C0185, // 0009 GETMBR R3 R0 K133 - 0x8C0C0786, // 000A GETMET R3 R3 K134 - 0x7C0C0200, // 000B CALL R3 1 - 0x780E0006, // 000C JMPF R3 #0014 - 0x880C0185, // 000D GETMBR R3 R0 K133 - 0x8C0C0787, // 000E GETMET R3 R3 K135 - 0x5C140200, // 000F MOVE R5 R1 - 0x7C0C0400, // 0010 CALL R3 2 - 0x780E0001, // 0011 JMPF R3 #0014 - 0x880C0185, // 0012 GETMBR R3 R0 K133 - 0x80040600, // 0013 RET 1 R3 - 0x880C0188, // 0014 GETMBR R3 R0 K136 - 0x8C0C0786, // 0015 GETMET R3 R3 K134 - 0x7C0C0200, // 0016 CALL R3 1 - 0x780E0006, // 0017 JMPF R3 #001F - 0x880C0188, // 0018 GETMBR R3 R0 K136 - 0x8C0C0787, // 0019 GETMET R3 R3 K135 - 0x5C140200, // 001A MOVE R5 R1 - 0x7C0C0400, // 001B CALL R3 2 - 0x780E0001, // 001C JMPF R3 #001F - 0x880C0188, // 001D GETMBR R3 R0 K136 - 0x80040600, // 001E RET 1 R3 - 0x4C0C0000, // 001F LDNIL R3 - 0x80040600, // 0020 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: time_str -********************************************************************/ -be_local_closure(class_Tasmota_time_str, /* name */ - be_nested_proto( - 11, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_time_str, - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0x8C080189, // 0000 GETMET R2 R0 K137 - 0x5C100200, // 0001 MOVE R4 R1 - 0x7C080400, // 0002 CALL R2 2 - 0x600C0018, // 0003 GETGBL R3 G24 - 0x5810008A, // 0004 LDCONST R4 K138 - 0x9414058B, // 0005 GETIDX R5 R2 K139 - 0x9418058C, // 0006 GETIDX R6 R2 K140 - 0x941C058D, // 0007 GETIDX R7 R2 K141 - 0x9420058E, // 0008 GETIDX R8 R2 K142 - 0x9424058F, // 0009 GETIDX R9 R2 K143 - 0x94280590, // 000A GETIDX R10 R2 K144 - 0x7C0C0E00, // 000B CALL R3 7 - 0x80040600, // 000C RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: fast_loop -********************************************************************/ -be_local_closure(class_Tasmota_fast_loop, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_fast_loop, - &be_const_str_solidified, - ( &(const binstruction[15]) { /* code */ - 0x8804013D, // 0000 GETMBR R1 R0 K61 - 0x5C080200, // 0001 MOVE R2 R1 - 0x740A0000, // 0002 JMPT R2 #0004 - 0x80000400, // 0003 RET 0 - 0x5808000B, // 0004 LDCONST R2 K11 - 0x600C000C, // 0005 GETGBL R3 G12 - 0x5C100200, // 0006 MOVE R4 R1 - 0x7C0C0200, // 0007 CALL R3 1 - 0x140C0403, // 0008 LT R3 R2 R3 - 0x780E0003, // 0009 JMPF R3 #000E - 0x940C0202, // 000A GETIDX R3 R1 R2 - 0x7C0C0000, // 000B CALL R3 0 - 0x00080531, // 000C ADD R2 R2 K49 - 0x7001FFF6, // 000D JMP #0005 - 0x80000000, // 000E RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: exec_rules -********************************************************************/ -be_local_closure(class_Tasmota_exec_rules, /* name */ - be_nested_proto( - 14, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_exec_rules, - &be_const_str_solidified, - ( &(const binstruction[60]) { /* code */ - 0x880C0181, // 0000 GETMBR R3 R0 K129 - 0x88100166, // 0001 GETMBR R4 R0 K102 - 0x74120002, // 0002 JMPT R4 #0006 - 0x4C100000, // 0003 LDNIL R4 - 0x20100604, // 0004 NE R4 R3 R4 - 0x78120033, // 0005 JMPF R4 #003A - 0xA412C000, // 0006 IMPORT R4 K96 - 0x4C140000, // 0007 LDNIL R5 - 0x90030205, // 0008 SETMBR R0 K129 R5 - 0x50140000, // 0009 LDBOOL R5 0 0 - 0x8C180961, // 000A GETMET R6 R4 K97 - 0x5C200200, // 000B MOVE R8 R1 - 0x7C180400, // 000C CALL R6 2 - 0x4C1C0000, // 000D LDNIL R7 - 0x1C1C0C07, // 000E EQ R7 R6 R7 - 0x781E0004, // 000F JMPF R7 #0015 - 0x8C1C0115, // 0010 GETMET R7 R0 K21 - 0x0026F001, // 0011 ADD R9 K120 R1 - 0x58280017, // 0012 LDCONST R10 K23 - 0x7C1C0600, // 0013 CALL R7 3 - 0x5C180200, // 0014 MOVE R6 R1 - 0x780A001E, // 0015 JMPF R2 #0035 - 0x881C0166, // 0016 GETMBR R7 R0 K102 - 0x781E001C, // 0017 JMPF R7 #0035 - 0x581C000B, // 0018 LDCONST R7 K11 - 0x6020000C, // 0019 GETGBL R8 G12 - 0x88240166, // 001A GETMBR R9 R0 K102 - 0x7C200200, // 001B CALL R8 1 - 0x14200E08, // 001C LT R8 R7 R8 - 0x78220016, // 001D JMPF R8 #0035 - 0x88200166, // 001E GETMBR R8 R0 K102 - 0x94201007, // 001F GETIDX R8 R8 R7 - 0x8C24017A, // 0020 GETMET R9 R0 K122 - 0x5C2C0C00, // 0021 MOVE R11 R6 - 0x8830112D, // 0022 GETMBR R12 R8 K45 - 0x88341130, // 0023 GETMBR R13 R8 K48 - 0x7C240800, // 0024 CALL R9 4 - 0x74160001, // 0025 JMPT R5 #0028 - 0x74260000, // 0026 JMPT R9 #0028 - 0x50140001, // 0027 LDBOOL R5 0 1 - 0x50140200, // 0028 LDBOOL R5 1 0 - 0x78260008, // 0029 JMPF R9 #0033 - 0x88281191, // 002A GETMBR R10 R8 K145 - 0x502C0200, // 002B LDBOOL R11 1 0 - 0x1C28140B, // 002C EQ R10 R10 R11 - 0x782A0004, // 002D JMPF R10 #0033 - 0x88280166, // 002E GETMBR R10 R0 K102 - 0x8C281525, // 002F GETMET R10 R10 K37 - 0x5C300E00, // 0030 MOVE R12 R7 - 0x7C280400, // 0031 CALL R10 2 - 0x70020000, // 0032 JMP #0034 - 0x001C0F31, // 0033 ADD R7 R7 K49 - 0x7001FFE3, // 0034 JMP #0019 - 0x4C1C0000, // 0035 LDNIL R7 - 0x201C0607, // 0036 NE R7 R3 R7 - 0x781E0000, // 0037 JMPF R7 #0039 - 0x90030206, // 0038 SETMBR R0 K129 R6 - 0x80040A00, // 0039 RET 1 R5 - 0x50100000, // 003A LDBOOL R4 0 0 - 0x80040800, // 003B RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: find_op -********************************************************************/ -be_local_closure(class_Tasmota_find_op, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_find_op, - &be_const_str_solidified, - ( &(const binstruction[31]) { /* code */ - 0x8C080192, // 0000 GETMET R2 R0 K146 - 0x5C100200, // 0001 MOVE R4 R1 - 0x7C080400, // 0002 CALL R2 2 - 0x280C050B, // 0003 GE R3 R2 K11 - 0x780E0011, // 0004 JMPF R3 #0017 - 0x540E7FFE, // 0005 LDINT R3 32767 - 0x2C0C0403, // 0006 AND R3 R2 R3 - 0x5412000F, // 0007 LDINT R4 16 - 0x3C100404, // 0008 SHR R4 R2 R4 - 0x60140012, // 0009 GETGBL R5 G18 - 0x7C140000, // 000A CALL R5 0 - 0x04180731, // 000B SUB R6 R3 K49 - 0x401A1606, // 000C CONNECT R6 K11 R6 - 0x94180206, // 000D GETIDX R6 R1 R6 - 0x40180A06, // 000E CONNECT R6 R5 R6 - 0x04180931, // 000F SUB R6 R4 K49 - 0x40180606, // 0010 CONNECT R6 R3 R6 - 0x94180206, // 0011 GETIDX R6 R1 R6 - 0x40180A06, // 0012 CONNECT R6 R5 R6 - 0x40180957, // 0013 CONNECT R6 R4 K87 - 0x94180206, // 0014 GETIDX R6 R1 R6 - 0x40180A06, // 0015 CONNECT R6 R5 R6 - 0x80040A00, // 0016 RET 1 R5 - 0x600C0012, // 0017 GETGBL R3 G18 - 0x7C0C0000, // 0018 CALL R3 0 - 0x40100601, // 0019 CONNECT R4 R3 R1 - 0x4C100000, // 001A LDNIL R4 - 0x40100604, // 001B CONNECT R4 R3 R4 - 0x4C100000, // 001C LDNIL R4 - 0x40100604, // 001D CONNECT R4 R3 R4 - 0x80040600, // 001E RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: gc -********************************************************************/ -be_local_closure(class_Tasmota_gc, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_gc, - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0xA4069800, // 0000 IMPORT R1 K76 - 0x8C080393, // 0001 GETMET R2 R1 K147 - 0x7C080200, // 0002 CALL R2 1 - 0x8C080394, // 0003 GETMET R2 R1 K148 - 0x7C080200, // 0004 CALL R2 1 - 0x80040400, // 0005 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: urlfetch_cmd -********************************************************************/ -be_local_closure(class_Tasmota_urlfetch_cmd, /* name */ - be_nested_proto( - 10, /* nstack */ - 5, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_urlfetch_cmd, - &be_const_str_solidified, - ( &(const binstruction[34]) { /* code */ - 0xA4160E00, // 0000 IMPORT R5 K7 - 0x8C180B1B, // 0001 GETMET R6 R5 K27 - 0x5C200600, // 0002 MOVE R8 R3 - 0x58240095, // 0003 LDCONST R9 K149 - 0x7C180600, // 0004 CALL R6 3 - 0x20180D0B, // 0005 NE R6 R6 K11 - 0x781A0003, // 0006 JMPF R6 #000B - 0x8C180196, // 0007 GETMET R6 R0 K150 - 0x58200097, // 0008 LDCONST R8 K151 - 0x7C180400, // 0009 CALL R6 2 - 0x80000C00, // 000A RET 0 - 0xA802000A, // 000B EXBLK 0 #0017 - 0x8C180198, // 000C GETMET R6 R0 K152 - 0x5C200600, // 000D MOVE R8 R3 - 0x7C180400, // 000E CALL R6 2 - 0x141C0D0B, // 000F LT R7 R6 K11 - 0x781E0003, // 0010 JMPF R7 #0015 - 0x8C1C0199, // 0011 GETMET R7 R0 K153 - 0x7C1C0200, // 0012 CALL R7 1 - 0xA8040001, // 0013 EXBLK 1 1 - 0x80000E00, // 0014 RET 0 - 0xA8040001, // 0015 EXBLK 1 1 - 0x70020006, // 0016 JMP #001E - 0xAC180002, // 0017 CATCH R6 0 2 - 0x70020003, // 0018 JMP #001D - 0x8C200199, // 0019 GETMET R8 R0 K153 - 0x7C200200, // 001A CALL R8 1 - 0x80001000, // 001B RET 0 - 0x70020000, // 001C JMP #001E - 0xB0080000, // 001D RAISE 2 R0 R0 - 0xB81A7400, // 001E GETNGBL R6 K58 - 0x8C180D9A, // 001F GETMET R6 R6 K154 - 0x7C180200, // 0020 CALL R6 1 - 0x80000000, // 0021 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: find_list_i -********************************************************************/ -be_local_closure(class_Tasmota_find_list_i, /* name */ - be_nested_proto( - 9, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_find_list_i, - &be_const_str_solidified, - ( &(const binstruction[20]) { /* code */ - 0xA40E0E00, // 0000 IMPORT R3 K7 - 0x5810000B, // 0001 LDCONST R4 K11 - 0x8C140774, // 0002 GETMET R5 R3 K116 - 0x5C1C0400, // 0003 MOVE R7 R2 - 0x7C140400, // 0004 CALL R5 2 - 0x6018000C, // 0005 GETGBL R6 G12 - 0x5C1C0200, // 0006 MOVE R7 R1 - 0x7C180200, // 0007 CALL R6 1 - 0x14180806, // 0008 LT R6 R4 R6 - 0x781A0007, // 0009 JMPF R6 #0012 - 0x8C180774, // 000A GETMET R6 R3 K116 - 0x94200204, // 000B GETIDX R8 R1 R4 - 0x7C180400, // 000C CALL R6 2 - 0x1C180C05, // 000D EQ R6 R6 R5 - 0x781A0000, // 000E JMPF R6 #0010 - 0x80040800, // 000F RET 1 R4 - 0x00100931, // 0010 ADD R4 R4 K49 - 0x7001FFF2, // 0011 JMP #0005 - 0x4C180000, // 0012 LDNIL R6 - 0x80040C00, // 0013 RET 1 R6 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: run_deferred -********************************************************************/ -be_local_closure(class_Tasmota_run_deferred, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Tasmota, /* shared constants */ - &be_const_str_run_deferred, - &be_const_str_solidified, - ( &(const binstruction[25]) { /* code */ - 0x88040133, // 0000 GETMBR R1 R0 K51 - 0x78060015, // 0001 JMPF R1 #0018 - 0x5804000B, // 0002 LDCONST R1 K11 - 0x88080133, // 0003 GETMBR R2 R0 K51 - 0x8C08052C, // 0004 GETMET R2 R2 K44 - 0x7C080200, // 0005 CALL R2 1 - 0x14080202, // 0006 LT R2 R1 R2 - 0x780A000F, // 0007 JMPF R2 #0018 - 0x88080133, // 0008 GETMBR R2 R0 K51 - 0x94080401, // 0009 GETIDX R2 R2 R1 - 0x8C0C012F, // 000A GETMET R3 R0 K47 - 0x8814052D, // 000B GETMBR R5 R2 K45 - 0x7C0C0400, // 000C CALL R3 2 - 0x780E0007, // 000D JMPF R3 #0016 - 0x880C0530, // 000E GETMBR R3 R2 K48 - 0x88100133, // 000F GETMBR R4 R0 K51 - 0x8C100925, // 0010 GETMET R4 R4 K37 - 0x5C180200, // 0011 MOVE R6 R1 - 0x7C100400, // 0012 CALL R4 2 - 0x5C100600, // 0013 MOVE R4 R3 - 0x7C100000, // 0014 CALL R4 0 - 0x70020000, // 0015 JMP #0017 - 0x00040331, // 0016 ADD R1 R1 K49 - 0x7001FFEA, // 0017 JMP #0003 - 0x80000000, // 0018 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: Tasmota -********************************************************************/ -be_local_class(Tasmota, - 13, - NULL, - be_nested_map(53, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(run_deferred, -1), be_const_closure(class_Tasmota_run_deferred_closure) }, - { be_const_key(int, 16), be_const_static_closure(class_Tasmota_int_closure) }, - { be_const_key(urlfetch, -1), be_const_closure(class_Tasmota_urlfetch_closure) }, - { be_const_key(find_list_i, 47), be_const_closure(class_Tasmota_find_list_i_closure) }, - { be_const_key(_ccmd, 44), be_const_var(4) }, - { be_const_key(global, -1), be_const_var(9) }, - { be_const_key(wire2, 28), be_const_var(7) }, - { be_const_key(set_light, 33), be_const_closure(class_Tasmota_set_light_closure) }, - { be_const_key(exec_cmd, -1), be_const_closure(class_Tasmota_exec_cmd_closure) }, - { be_const_key(remove_cron, 46), be_const_closure(class_Tasmota_remove_cron_closure) }, - { be_const_key(remove_timer, -1), be_const_closure(class_Tasmota_remove_timer_closure) }, - { be_const_key(next_cron, -1), be_const_closure(class_Tasmota_next_cron_closure) }, - { be_const_key(_drivers, -1), be_const_var(5) }, - { be_const_key(set_timer, 3), be_const_closure(class_Tasmota_set_timer_closure) }, - { be_const_key(wire1, -1), be_const_var(6) }, - { be_const_key(_fl, -1), be_const_var(0) }, - { be_const_key(add_cron, -1), be_const_closure(class_Tasmota_add_cron_closure) }, - { be_const_key(hs2rgb, -1), be_const_closure(class_Tasmota_hs2rgb_closure) }, - { be_const_key(add_fast_loop, 52), be_const_closure(class_Tasmota_add_fast_loop_closure) }, - { be_const_key(_rules, -1), be_const_var(1) }, - { be_const_key(find_op, 30), be_const_closure(class_Tasmota_find_op_closure) }, - { be_const_key(load, 41), be_const_closure(class_Tasmota_load_closure) }, - { be_const_key(exec_rules, -1), be_const_closure(class_Tasmota_exec_rules_closure) }, - { be_const_key(remove_cmd, 8), be_const_closure(class_Tasmota_remove_cmd_closure) }, - { be_const_key(try_rule, -1), be_const_closure(class_Tasmota_try_rule_closure) }, - { be_const_key(fast_loop, -1), be_const_closure(class_Tasmota_fast_loop_closure) }, - { be_const_key(remove_rule, 22), be_const_closure(class_Tasmota_remove_rule_closure) }, - { be_const_key(gen_cb, -1), be_const_closure(class_Tasmota_gen_cb_closure) }, - { be_const_key(time_str, -1), be_const_closure(class_Tasmota_time_str_closure) }, - { be_const_key(add_rule_once, -1), be_const_closure(class_Tasmota_add_rule_once_closure) }, - { be_const_key(wire_scan, -1), be_const_closure(class_Tasmota_wire_scan_closure) }, - { be_const_key(find_key_i, -1), be_const_closure(class_Tasmota_find_key_i_closure) }, - { be_const_key(add_rule, -1), be_const_closure(class_Tasmota_add_rule_closure) }, - { be_const_key(cmd, -1), be_const_closure(class_Tasmota_cmd_closure) }, - { be_const_key(_crons, -1), be_const_var(3) }, - { be_const_key(check_not_method, 43), be_const_closure(class_Tasmota_check_not_method_closure) }, - { be_const_key(add_driver, 0), be_const_closure(class_Tasmota_add_driver_closure) }, - { be_const_key(wd, 20), be_const_var(11) }, - { be_const_key(add_cmd, 32), be_const_closure(class_Tasmota_add_cmd_closure) }, - { be_const_key(_debug_present, -1), be_const_var(12) }, - { be_const_key(compile, 39), be_const_closure(class_Tasmota_compile_closure) }, - { be_const_key(get_light, -1), be_const_closure(class_Tasmota_get_light_closure) }, - { be_const_key(remove_fast_loop, -1), be_const_closure(class_Tasmota_remove_fast_loop_closure) }, - { be_const_key(remove_driver, -1), be_const_closure(class_Tasmota_remove_driver_closure) }, - { be_const_key(settings, 51), be_const_var(10) }, - { be_const_key(_timers, 25), be_const_var(2) }, - { be_const_key(exec_tele, -1), be_const_closure(class_Tasmota_exec_tele_closure) }, - { be_const_key(init, -1), be_const_closure(class_Tasmota_init_closure) }, - { be_const_key(gc, -1), be_const_closure(class_Tasmota_gc_closure) }, - { be_const_key(urlfetch_cmd, -1), be_const_closure(class_Tasmota_urlfetch_cmd_closure) }, - { be_const_key(run_cron, 4), be_const_closure(class_Tasmota_run_cron_closure) }, - { be_const_key(cmd_res, -1), be_const_var(8) }, - { be_const_key(event, -1), be_const_closure(class_Tasmota_event_closure) }, - })), - (bstring*) &be_const_str_Tasmota -); -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_test_crypto.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_test_crypto.h deleted file mode 100644 index 2091c19a4..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_test_crypto.h +++ /dev/null @@ -1,7 +0,0 @@ -/* Solidification of test_crypto.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_trigger_class.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_trigger_class.h deleted file mode 100644 index d22c641a1..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_trigger_class.h +++ /dev/null @@ -1,203 +0,0 @@ -/* Solidification of trigger_class.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -// compact class 'Trigger' ktab size: 8, total: 15 (saved 56 bytes) -static const bvalue be_ktab_class_Trigger[8] = { - /* K0 */ be_nested_str(o), - /* K1 */ be_nested_str(next), - /* K2 */ be_nested_str(trig), - /* K3 */ be_const_int(0), - /* K4 */ be_nested_str(time_reached), - /* K5 */ be_nested_str(f), - /* K6 */ be_nested_str(id), - /* K7 */ be_nested_str(_X3Cinstance_X3A_X20_X25s_X28_X25s_X2C_X20_X25s_X2C_X20_X25s_X29), -}; - - -extern const bclass be_class_Trigger; - -/******************************************************************** -** Solidified function: run_once -********************************************************************/ -be_local_closure(class_Trigger_run_once, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Trigger, /* shared constants */ - &be_const_str_run_once, - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x50080200, // 0001 LDBOOL R2 1 0 - 0x1C040202, // 0002 EQ R1 R1 R2 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: next -********************************************************************/ -be_local_closure(class_Trigger_next, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Trigger, /* shared constants */ - &be_const_str_next, - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x78060003, // 0001 JMPF R1 #0006 - 0x88040100, // 0002 GETMBR R1 R0 K0 - 0x8C040301, // 0003 GETMET R1 R1 K1 - 0x7C040200, // 0004 CALL R1 1 - 0x80040200, // 0005 RET 1 R1 - 0x80000000, // 0006 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: time_reached -********************************************************************/ -be_local_closure(class_Trigger_time_reached, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Trigger, /* shared constants */ - &be_const_str_time_reached, - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x78060007, // 0001 JMPF R1 #000A - 0x88040102, // 0002 GETMBR R1 R0 K2 - 0x24040303, // 0003 GT R1 R1 K3 - 0x78060004, // 0004 JMPF R1 #000A - 0x88040100, // 0005 GETMBR R1 R0 K0 - 0x8C040304, // 0006 GETMET R1 R1 K4 - 0x880C0102, // 0007 GETMBR R3 R0 K2 - 0x7C040400, // 0008 CALL R1 2 - 0x80040200, // 0009 RET 1 R1 - 0x50040000, // 000A LDBOOL R1 0 0 - 0x80040200, // 000B RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_Trigger_init, /* name */ - be_nested_proto( - 5, /* nstack */ - 5, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Trigger, /* shared constants */ - &be_const_str_init, - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x90020401, // 0000 SETMBR R0 K2 R1 - 0x90020A02, // 0001 SETMBR R0 K5 R2 - 0x90020C03, // 0002 SETMBR R0 K6 R3 - 0x90020004, // 0003 SETMBR R0 K0 R4 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: tostring -********************************************************************/ -be_local_closure(class_Trigger_tostring, /* name */ - be_nested_proto( - 8, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_Trigger, /* shared constants */ - &be_const_str_tostring, - &be_const_str_solidified, - ( &(const binstruction[18]) { /* code */ - 0x60040018, // 0000 GETGBL R1 G24 - 0x58080007, // 0001 LDCONST R2 K7 - 0x600C0008, // 0002 GETGBL R3 G8 - 0x60100006, // 0003 GETGBL R4 G6 - 0x5C140000, // 0004 MOVE R5 R0 - 0x7C100200, // 0005 CALL R4 1 - 0x7C0C0200, // 0006 CALL R3 1 - 0x60100008, // 0007 GETGBL R4 G8 - 0x88140102, // 0008 GETMBR R5 R0 K2 - 0x7C100200, // 0009 CALL R4 1 - 0x60140008, // 000A GETGBL R5 G8 - 0x88180105, // 000B GETMBR R6 R0 K5 - 0x7C140200, // 000C CALL R5 1 - 0x60180008, // 000D GETGBL R6 G8 - 0x881C0106, // 000E GETMBR R7 R0 K6 - 0x7C180200, // 000F CALL R6 1 - 0x7C040A00, // 0010 CALL R1 5 - 0x80040200, // 0011 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: Trigger -********************************************************************/ -be_local_class(Trigger, - 4, - NULL, - be_nested_map(9, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(run_once, 3), be_const_closure(class_Trigger_run_once_closure) }, - { be_const_key(o, -1), be_const_var(3) }, - { be_const_key(next, -1), be_const_closure(class_Trigger_next_closure) }, - { be_const_key(trig, -1), be_const_var(0) }, - { be_const_key(init, -1), be_const_closure(class_Trigger_init_closure) }, - { be_const_key(time_reached, -1), be_const_closure(class_Trigger_time_reached_closure) }, - { be_const_key(id, 4), be_const_var(2) }, - { be_const_key(tostring, -1), be_const_closure(class_Trigger_tostring_closure) }, - { be_const_key(f, -1), be_const_var(1) }, - })), - (bstring*) &be_const_str_Trigger -); -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_uuid.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_uuid.h deleted file mode 100644 index 11ad36ff4..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_uuid.h +++ /dev/null @@ -1,76 +0,0 @@ -/* Solidification of uuid.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" - -/******************************************************************** -** Solidified function: _anonymous_ -********************************************************************/ -be_local_closure(_anonymous_, /* name */ - be_nested_proto( - 10, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str(math), - /* K1 */ be_nested_str(_X2508x_X2D_X2504x_X2D_X2504x_X2D_X2504x_X2D_X2504x_X2508x), - /* K2 */ be_nested_str(rand), - }), - &be_const_str__anonymous_, - &be_const_str_solidified, - ( &(const binstruction[29]) { /* code */ - 0xA4020000, // 0000 IMPORT R0 K0 - 0x60040018, // 0001 GETGBL R1 G24 - 0x58080001, // 0002 LDCONST R2 K1 - 0x8C0C0102, // 0003 GETMET R3 R0 K2 - 0x7C0C0200, // 0004 CALL R3 1 - 0x8C100102, // 0005 GETMET R4 R0 K2 - 0x7C100200, // 0006 CALL R4 1 - 0x5416FFFE, // 0007 LDINT R5 65535 - 0x2C100805, // 0008 AND R4 R4 R5 - 0x8C140102, // 0009 GETMET R5 R0 K2 - 0x7C140200, // 000A CALL R5 1 - 0x541A0FFE, // 000B LDINT R6 4095 - 0x2C140A06, // 000C AND R5 R5 R6 - 0x541A3FFF, // 000D LDINT R6 16384 - 0x30140A06, // 000E OR R5 R5 R6 - 0x8C180102, // 000F GETMET R6 R0 K2 - 0x7C180200, // 0010 CALL R6 1 - 0x541E3FFE, // 0011 LDINT R7 16383 - 0x2C180C07, // 0012 AND R6 R6 R7 - 0x541E7FFF, // 0013 LDINT R7 32768 - 0x30180C07, // 0014 OR R6 R6 R7 - 0x8C1C0102, // 0015 GETMET R7 R0 K2 - 0x7C1C0200, // 0016 CALL R7 1 - 0x5422FFFE, // 0017 LDINT R8 65535 - 0x2C1C0E08, // 0018 AND R7 R7 R8 - 0x8C200102, // 0019 GETMET R8 R0 K2 - 0x7C200200, // 001A CALL R8 1 - 0x7C040E00, // 001B CALL R1 7 - 0x80040200, // 001C RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified module: uuid -********************************************************************/ -be_local_module(uuid, - "uuid", - be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(uuid4, -1), be_const_closure(_anonymous__closure) }, - })) -); -BE_EXPORT_VARIABLE be_define_const_native_module(uuid); -/********************************************************************/ -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_webserver_async.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_webserver_async.h deleted file mode 100644 index 5f9a8b2c4..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_webserver_async.h +++ /dev/null @@ -1,1761 +0,0 @@ -/* Solidification of webserver_async.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -// compact class 'webserver_async_cnx' ktab size: 76, total: 141 (saved 520 bytes) -static const bvalue be_ktab_class_webserver_async_cnx[76] = { - /* K0 */ be_nested_str_weak(server), - /* K1 */ be_nested_str_weak(dispatch), - /* K2 */ be_nested_str_weak(req_uri), - /* K3 */ be_nested_str_weak(req_verb), - /* K4 */ be_nested_str_weak(string), - /* K5 */ be_nested_str_weak(fromstring), - /* K6 */ be_nested_str_weak(chunked), - /* K7 */ be_nested_str_weak(p1), - /* K8 */ be_nested_str_weak(clear), - /* K9 */ be_nested_str_weak(append), - /* K10 */ be_nested_str_weak(_X25X_X0D_X0A), - /* K11 */ be_nested_str_weak(_X0D_X0A), - /* K12 */ be_nested_str_weak(_write), - /* K13 */ be_const_int(0), - /* K14 */ be_nested_str_weak(buf_out), - /* K15 */ be_nested_str_weak(resize), - /* K16 */ be_nested_str_weak(setbytes), - /* K17 */ be_nested_str_weak(_send), - /* K18 */ be_nested_str_weak(HTTP_X2F1_X2E1_X20_X25s_X20_X25s_X0D_X0A), - /* K19 */ be_nested_str_weak(CODE_TO_STRING), - /* K20 */ be_nested_str_weak(find), - /* K21 */ be_nested_str_weak(UNKNOWN), - /* K22 */ be_nested_str_weak(send_header), - /* K23 */ be_nested_str_weak(Content_X2DType), - /* K24 */ be_nested_str_weak(text_X2Fhtml), - /* K25 */ be_nested_str_weak(Accept_X2DRanges), - /* K26 */ be_nested_str_weak(none), - /* K27 */ be_nested_str_weak(Transfer_X2DEncoding), - /* K28 */ be_nested_str_weak(cors), - /* K29 */ be_nested_str_weak(Access_X2DControl_X2DAllow_X2DOrigin), - /* K30 */ be_nested_str_weak(_X2A), - /* K31 */ be_nested_str_weak(Access_X2DControl_X2DAllow_X2DMethods), - /* K32 */ be_nested_str_weak(Access_X2DControl_X2DAllow_X2DHeaders), - /* K33 */ be_nested_str_weak(Connection), - /* K34 */ be_nested_str_weak(close), - /* K35 */ be_nested_str_weak(resp_headers), - /* K36 */ be_nested_str_weak(write_raw), - /* K37 */ be_nested_str_weak(write), - /* K38 */ be_nested_str_weak(cnx), - /* K39 */ be_nested_str_weak(buf_in), - /* K40 */ be_nested_str_weak(), - /* K41 */ be_nested_str_weak(buf_in_offset), - /* K42 */ be_nested_str_weak(phase), - /* K43 */ be_nested_str_weak(close_after_send), - /* K44 */ be_nested_str_weak(fastloop_cb), - /* K45 */ be_nested_str_weak(tasmota), - /* K46 */ be_nested_str_weak(add_fast_loop), - /* K47 */ be_nested_str_weak(Host), - /* K48 */ be_nested_str_weak(header_host), - /* K49 */ be_nested_str_weak(_X25s_X3A_X20_X25s_X0D_X0A_X25s), - /* K50 */ be_nested_str_weak(_X25s_X25s_X3A_X20_X25s_X0D_X0A), - /* K51 */ be_nested_str_weak(listening), - /* K52 */ be_nested_str_weak(connected), - /* K53 */ be_nested_str_weak(parse_http_req_line), - /* K54 */ be_const_int(1), - /* K55 */ be_nested_str_weak(parse_http_headers), - /* K56 */ be_const_int(2), - /* K57 */ be_nested_str_weak(parse_http_payload), - /* K58 */ be_nested_str_weak(remove_fast_loop), - /* K59 */ be_nested_str_weak(available), - /* K60 */ be_nested_str_weak(read), - /* K61 */ be_nested_str_weak(parse), - /* K62 */ be_nested_str_weak(global), - /* K63 */ be_nested_str_weak(_re_http_srv_header), - /* K64 */ be_nested_str_weak(match2), - /* K65 */ be_nested_str_weak(event_http_header), - /* K66 */ be_nested_str_weak(_re_http_srv_body), - /* K67 */ be_const_int(2147483647), - /* K68 */ be_nested_str_weak(log), - /* K69 */ be_nested_str_weak(WEB_X3A_X20error_X20header_X20is_X20bigger_X20than_X201KB), - /* K70 */ be_nested_str_weak(_re_http_srv), - /* K71 */ be_nested_str_weak(req_version), - /* K72 */ be_const_int(3), - /* K73 */ be_nested_str_weak(loglevel), - /* K74 */ be_nested_str_weak(WEB_X3A_X20HTTP_X20verb_X3A_X20_X25s_X20URI_X3A_X20_X27_X25s_X27_X20Version_X3A_X25s), - /* K75 */ be_nested_str_weak(WEB_X3A_X20error_X20invalid_X20request), -}; - - -extern const bclass be_class_webserver_async_cnx; - -/******************************************************************** -** Solidified function: parse_http_payload -********************************************************************/ -be_local_closure(class_webserver_async_cnx_parse_http_payload, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async_cnx, /* shared constants */ - be_str_weak(parse_http_payload), - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x5C0C0000, // 0002 MOVE R3 R0 - 0x88100102, // 0003 GETMBR R4 R0 K2 - 0x88140103, // 0004 GETMBR R5 R0 K3 - 0x7C040800, // 0005 CALL R1 4 - 0x80000000, // 0006 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: write -********************************************************************/ -be_local_closure(class_webserver_async_cnx_write, /* name */ - be_nested_proto( - 9, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async_cnx, /* shared constants */ - be_str_weak(write), - &be_const_str_solidified, - ( &(const binstruction[39]) { /* code */ - 0x60080004, // 0000 GETGBL R2 G4 - 0x5C0C0200, // 0001 MOVE R3 R1 - 0x7C080200, // 0002 CALL R2 1 - 0x1C080504, // 0003 EQ R2 R2 K4 - 0x780A0005, // 0004 JMPF R2 #000B - 0x60080015, // 0005 GETGBL R2 G21 - 0x7C080000, // 0006 CALL R2 0 - 0x8C080505, // 0007 GETMET R2 R2 K5 - 0x5C100200, // 0008 MOVE R4 R1 - 0x7C080400, // 0009 CALL R2 2 - 0x5C040400, // 000A MOVE R1 R2 - 0x88080106, // 000B GETMBR R2 R0 K6 - 0x780A0015, // 000C JMPF R2 #0023 - 0x88080100, // 000D GETMBR R2 R0 K0 - 0x88080507, // 000E GETMBR R2 R2 K7 - 0x8C0C0508, // 000F GETMET R3 R2 K8 - 0x7C0C0200, // 0010 CALL R3 1 - 0x8C0C0509, // 0011 GETMET R3 R2 K9 - 0x60140018, // 0012 GETGBL R5 G24 - 0x5818000A, // 0013 LDCONST R6 K10 - 0x601C000C, // 0014 GETGBL R7 G12 - 0x5C200200, // 0015 MOVE R8 R1 - 0x7C1C0200, // 0016 CALL R7 1 - 0x7C140400, // 0017 CALL R5 2 - 0x7C0C0400, // 0018 CALL R3 2 - 0x8C0C0509, // 0019 GETMET R3 R2 K9 - 0x5C140200, // 001A MOVE R5 R1 - 0x7C0C0400, // 001B CALL R3 2 - 0x8C0C0509, // 001C GETMET R3 R2 K9 - 0x5814000B, // 001D LDCONST R5 K11 - 0x7C0C0400, // 001E CALL R3 2 - 0x8C0C010C, // 001F GETMET R3 R0 K12 - 0x5C140400, // 0020 MOVE R5 R2 - 0x7C0C0400, // 0021 CALL R3 2 - 0x70020002, // 0022 JMP #0026 - 0x8C08010C, // 0023 GETMET R2 R0 K12 - 0x5C100200, // 0024 MOVE R4 R1 - 0x7C080400, // 0025 CALL R2 2 - 0x80000000, // 0026 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: _write -********************************************************************/ -be_local_closure(class_webserver_async_cnx__write, /* name */ - be_nested_proto( - 9, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async_cnx, /* shared constants */ - be_str_weak(_write), - &be_const_str_solidified, - ( &(const binstruction[20]) { /* code */ - 0x6008000C, // 0000 GETGBL R2 G12 - 0x5C0C0200, // 0001 MOVE R3 R1 - 0x7C080200, // 0002 CALL R2 1 - 0x1C0C050D, // 0003 EQ R3 R2 K13 - 0x780E0000, // 0004 JMPF R3 #0006 - 0x80000600, // 0005 RET 0 - 0x880C010E, // 0006 GETMBR R3 R0 K14 - 0x6010000C, // 0007 GETGBL R4 G12 - 0x5C140600, // 0008 MOVE R5 R3 - 0x7C100200, // 0009 CALL R4 1 - 0x8C14070F, // 000A GETMET R5 R3 K15 - 0x001C0802, // 000B ADD R7 R4 R2 - 0x7C140400, // 000C CALL R5 2 - 0x8C140710, // 000D GETMET R5 R3 K16 - 0x5C1C0800, // 000E MOVE R7 R4 - 0x5C200200, // 000F MOVE R8 R1 - 0x7C140600, // 0010 CALL R5 3 - 0x8C140111, // 0011 GETMET R5 R0 K17 - 0x7C140200, // 0012 CALL R5 1 - 0x80000000, // 0013 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: send -********************************************************************/ -be_local_closure(class_webserver_async_cnx_send, /* name */ - be_nested_proto( - 11, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async_cnx, /* shared constants */ - be_str_weak(send), - &be_const_str_solidified, - ( &(const binstruction[59]) { /* code */ - 0x60100018, // 0000 GETGBL R4 G24 - 0x58140012, // 0001 LDCONST R5 K18 - 0x5C180200, // 0002 MOVE R6 R1 - 0x881C0113, // 0003 GETMBR R7 R0 K19 - 0x8C1C0F14, // 0004 GETMET R7 R7 K20 - 0x5C240200, // 0005 MOVE R9 R1 - 0x58280015, // 0006 LDCONST R10 K21 - 0x7C1C0600, // 0007 CALL R7 3 - 0x7C100600, // 0008 CALL R4 3 - 0x8C140116, // 0009 GETMET R5 R0 K22 - 0x581C0017, // 000A LDCONST R7 K23 - 0x780A0001, // 000B JMPF R2 #000E - 0x5C200400, // 000C MOVE R8 R2 - 0x70020000, // 000D JMP #000F - 0x58200018, // 000E LDCONST R8 K24 - 0x50240200, // 000F LDBOOL R9 1 0 - 0x7C140800, // 0010 CALL R5 4 - 0x8C140116, // 0011 GETMET R5 R0 K22 - 0x581C0019, // 0012 LDCONST R7 K25 - 0x5820001A, // 0013 LDCONST R8 K26 - 0x7C140600, // 0014 CALL R5 3 - 0x88140106, // 0015 GETMBR R5 R0 K6 - 0x78160003, // 0016 JMPF R5 #001B - 0x8C140116, // 0017 GETMET R5 R0 K22 - 0x581C001B, // 0018 LDCONST R7 K27 - 0x58200006, // 0019 LDCONST R8 K6 - 0x7C140600, // 001A CALL R5 3 - 0x88140100, // 001B GETMBR R5 R0 K0 - 0x88140B1C, // 001C GETMBR R5 R5 K28 - 0x7816000B, // 001D JMPF R5 #002A - 0x8C140116, // 001E GETMET R5 R0 K22 - 0x581C001D, // 001F LDCONST R7 K29 - 0x5820001E, // 0020 LDCONST R8 K30 - 0x7C140600, // 0021 CALL R5 3 - 0x8C140116, // 0022 GETMET R5 R0 K22 - 0x581C001F, // 0023 LDCONST R7 K31 - 0x5820001E, // 0024 LDCONST R8 K30 - 0x7C140600, // 0025 CALL R5 3 - 0x8C140116, // 0026 GETMET R5 R0 K22 - 0x581C0020, // 0027 LDCONST R7 K32 - 0x5820001E, // 0028 LDCONST R8 K30 - 0x7C140600, // 0029 CALL R5 3 - 0x8C140116, // 002A GETMET R5 R0 K22 - 0x581C0021, // 002B LDCONST R7 K33 - 0x58200022, // 002C LDCONST R8 K34 - 0x7C140600, // 002D CALL R5 3 - 0x88140123, // 002E GETMBR R5 R0 K35 - 0x00100805, // 002F ADD R4 R4 R5 - 0x0010090B, // 0030 ADD R4 R4 K11 - 0x4C140000, // 0031 LDNIL R5 - 0x90024605, // 0032 SETMBR R0 K35 R5 - 0x8C140124, // 0033 GETMET R5 R0 K36 - 0x5C1C0800, // 0034 MOVE R7 R4 - 0x7C140400, // 0035 CALL R5 2 - 0x780E0002, // 0036 JMPF R3 #003A - 0x8C140125, // 0037 GETMET R5 R0 K37 - 0x5C1C0600, // 0038 MOVE R7 R3 - 0x7C140400, // 0039 CALL R5 2 - 0x80000000, // 003A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_webserver_async_cnx_init, /* name */ - be_nested_proto( - 6, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 1]) { - be_nested_proto( - 2, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(loop), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0x80000000, // 0003 RET 0 - }) - ), - }), - 1, /* has constants */ - &be_ktab_class_webserver_async_cnx, /* shared constants */ - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[21]) { /* code */ - 0x90020001, // 0000 SETMBR R0 K0 R1 - 0x90024C02, // 0001 SETMBR R0 K38 R2 - 0x90024F28, // 0002 SETMBR R0 K39 K40 - 0x9002530D, // 0003 SETMBR R0 K41 K13 - 0x600C0015, // 0004 GETGBL R3 G21 - 0x7C0C0000, // 0005 CALL R3 0 - 0x90021C03, // 0006 SETMBR R0 K14 R3 - 0x9002550D, // 0007 SETMBR R0 K42 K13 - 0x500C0000, // 0008 LDBOOL R3 0 0 - 0x90025603, // 0009 SETMBR R0 K43 R3 - 0x90024728, // 000A SETMBR R0 K35 K40 - 0x500C0200, // 000B LDBOOL R3 1 0 - 0x90020C03, // 000C SETMBR R0 K6 R3 - 0x840C0000, // 000D CLOSURE R3 P0 - 0x90025803, // 000E SETMBR R0 K44 R3 - 0xB80E5A00, // 000F GETNGBL R3 K45 - 0x8C0C072E, // 0010 GETMET R3 R3 K46 - 0x8814012C, // 0011 GETMBR R5 R0 K44 - 0x7C0C0400, // 0012 CALL R3 2 - 0xA0000000, // 0013 CLOSE R0 - 0x80000000, // 0014 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: event_http_header -********************************************************************/ -be_local_closure(class_webserver_async_cnx_event_http_header, /* name */ - be_nested_proto( - 4, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async_cnx, /* shared constants */ - be_str_weak(event_http_header), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x1C0C032F, // 0000 EQ R3 R1 K47 - 0x780E0000, // 0001 JMPF R3 #0003 - 0x90026002, // 0002 SETMBR R0 K48 R2 - 0x80000000, // 0003 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: close -********************************************************************/ -be_local_closure(class_webserver_async_cnx_close, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async_cnx, /* shared constants */ - be_str_weak(close), - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0x88040126, // 0000 GETMBR R1 R0 K38 - 0x4C080000, // 0001 LDNIL R2 - 0x20040202, // 0002 NE R1 R1 R2 - 0x78060002, // 0003 JMPF R1 #0007 - 0x88040126, // 0004 GETMBR R1 R0 K38 - 0x8C040322, // 0005 GETMET R1 R1 K34 - 0x7C040200, // 0006 CALL R1 1 - 0x4C040000, // 0007 LDNIL R1 - 0x90024C01, // 0008 SETMBR R0 K38 R1 - 0x80000000, // 0009 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: send_header -********************************************************************/ -be_local_closure(class_webserver_async_cnx_send_header, /* name */ - be_nested_proto( - 9, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async_cnx, /* shared constants */ - be_str_weak(send_header), - &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0x780E0007, // 0000 JMPF R3 #0009 - 0x60100018, // 0001 GETGBL R4 G24 - 0x58140031, // 0002 LDCONST R5 K49 - 0x5C180200, // 0003 MOVE R6 R1 - 0x5C1C0400, // 0004 MOVE R7 R2 - 0x88200123, // 0005 GETMBR R8 R0 K35 - 0x7C100800, // 0006 CALL R4 4 - 0x90024604, // 0007 SETMBR R0 K35 R4 - 0x70020006, // 0008 JMP #0010 - 0x60100018, // 0009 GETGBL R4 G24 - 0x58140032, // 000A LDCONST R5 K50 - 0x88180123, // 000B GETMBR R6 R0 K35 - 0x5C1C0200, // 000C MOVE R7 R1 - 0x5C200400, // 000D MOVE R8 R2 - 0x7C100800, // 000E CALL R4 4 - 0x90024604, // 000F SETMBR R0 K35 R4 - 0x80000000, // 0010 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: _send -********************************************************************/ -be_local_closure(class_webserver_async_cnx__send, /* name */ - be_nested_proto( - 9, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async_cnx, /* shared constants */ - be_str_weak(_send), - &be_const_str_solidified, - ( &(const binstruction[47]) { /* code */ - 0x88040126, // 0000 GETMBR R1 R0 K38 - 0x4C080000, // 0001 LDNIL R2 - 0x1C080202, // 0002 EQ R2 R1 R2 - 0x780A0000, // 0003 JMPF R2 #0005 - 0x80000400, // 0004 RET 0 - 0x8808010E, // 0005 GETMBR R2 R0 K14 - 0x600C000C, // 0006 GETGBL R3 G12 - 0x5C100400, // 0007 MOVE R4 R2 - 0x7C0C0200, // 0008 CALL R3 1 - 0x240C070D, // 0009 GT R3 R3 K13 - 0x780E001E, // 000A JMPF R3 #002A - 0x8C0C0333, // 000B GETMET R3 R1 K51 - 0x7C0C0200, // 000C CALL R3 1 - 0x780E001A, // 000D JMPF R3 #0029 - 0x8C0C0325, // 000E GETMET R3 R1 K37 - 0x5C140400, // 000F MOVE R5 R2 - 0x7C0C0400, // 0010 CALL R3 2 - 0x2410070D, // 0011 GT R4 R3 K13 - 0x78120015, // 0012 JMPF R4 #0029 - 0x6010000C, // 0013 GETGBL R4 G12 - 0x5C140400, // 0014 MOVE R5 R2 - 0x7C100200, // 0015 CALL R4 1 - 0x28100604, // 0016 GE R4 R3 R4 - 0x78120003, // 0017 JMPF R4 #001C - 0x8810010E, // 0018 GETMBR R4 R0 K14 - 0x8C100908, // 0019 GETMET R4 R4 K8 - 0x7C100200, // 001A CALL R4 1 - 0x7002000C, // 001B JMP #0029 - 0x8810010E, // 001C GETMBR R4 R0 K14 - 0x8C100910, // 001D GETMET R4 R4 K16 - 0x5818000D, // 001E LDCONST R6 K13 - 0x5C1C0400, // 001F MOVE R7 R2 - 0x5C200600, // 0020 MOVE R8 R3 - 0x7C100800, // 0021 CALL R4 4 - 0x8810010E, // 0022 GETMBR R4 R0 K14 - 0x8C10090F, // 0023 GETMET R4 R4 K15 - 0x6018000C, // 0024 GETGBL R6 G12 - 0x5C1C0400, // 0025 MOVE R7 R2 - 0x7C180200, // 0026 CALL R6 1 - 0x04180C03, // 0027 SUB R6 R6 R3 - 0x7C100400, // 0028 CALL R4 2 - 0x70020003, // 0029 JMP #002E - 0x880C012B, // 002A GETMBR R3 R0 K43 - 0x780E0001, // 002B JMPF R3 #002E - 0x8C0C0122, // 002C GETMET R3 R0 K34 - 0x7C0C0200, // 002D CALL R3 1 - 0x80000000, // 002E RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: connected -********************************************************************/ -be_local_closure(class_webserver_async_cnx_connected, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async_cnx, /* shared constants */ - be_str_weak(connected), - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x88040126, // 0000 GETMBR R1 R0 K38 - 0x78060003, // 0001 JMPF R1 #0006 - 0x88040126, // 0002 GETMBR R1 R0 K38 - 0x8C040334, // 0003 GETMET R1 R1 K52 - 0x7C040200, // 0004 CALL R1 1 - 0x70020000, // 0005 JMP #0007 - 0x50040000, // 0006 LDBOOL R1 0 0 - 0x80040200, // 0007 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: parse -********************************************************************/ -be_local_closure(class_webserver_async_cnx_parse, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async_cnx, /* shared constants */ - be_str_weak(parse), - &be_const_str_solidified, - ( &(const binstruction[18]) { /* code */ - 0x8804012A, // 0000 GETMBR R1 R0 K42 - 0x1C04030D, // 0001 EQ R1 R1 K13 - 0x78060002, // 0002 JMPF R1 #0006 - 0x8C040135, // 0003 GETMET R1 R0 K53 - 0x7C040200, // 0004 CALL R1 1 - 0x7002000A, // 0005 JMP #0011 - 0x8804012A, // 0006 GETMBR R1 R0 K42 - 0x1C040336, // 0007 EQ R1 R1 K54 - 0x78060002, // 0008 JMPF R1 #000C - 0x8C040137, // 0009 GETMET R1 R0 K55 - 0x7C040200, // 000A CALL R1 1 - 0x70020004, // 000B JMP #0011 - 0x8804012A, // 000C GETMBR R1 R0 K42 - 0x1C040338, // 000D EQ R1 R1 K56 - 0x78060001, // 000E JMPF R1 #0011 - 0x8C040139, // 000F GETMET R1 R0 K57 - 0x7C040200, // 0010 CALL R1 1 - 0x80000000, // 0011 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: loop -********************************************************************/ -be_local_closure(class_webserver_async_cnx_loop, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async_cnx, /* shared constants */ - be_str_weak(loop), - &be_const_str_solidified, - ( &(const binstruction[36]) { /* code */ - 0x88040126, // 0000 GETMBR R1 R0 K38 - 0x4C080000, // 0001 LDNIL R2 - 0x1C040202, // 0002 EQ R1 R1 R2 - 0x78060006, // 0003 JMPF R1 #000B - 0xB8065A00, // 0004 GETNGBL R1 K45 - 0x8C04033A, // 0005 GETMET R1 R1 K58 - 0x880C012C, // 0006 GETMBR R3 R0 K44 - 0x7C040400, // 0007 CALL R1 2 - 0x4C040000, // 0008 LDNIL R1 - 0x90025801, // 0009 SETMBR R0 K44 R1 - 0x80000200, // 000A RET 0 - 0x8C040111, // 000B GETMET R1 R0 K17 - 0x7C040200, // 000C CALL R1 1 - 0x88040126, // 000D GETMBR R1 R0 K38 - 0x4C080000, // 000E LDNIL R2 - 0x1C080202, // 000F EQ R2 R1 R2 - 0x780A0000, // 0010 JMPF R2 #0012 - 0x80000400, // 0011 RET 0 - 0x8C08033B, // 0012 GETMET R2 R1 K59 - 0x7C080200, // 0013 CALL R2 1 - 0x2408050D, // 0014 GT R2 R2 K13 - 0x780A0008, // 0015 JMPF R2 #001F - 0x8C08033C, // 0016 GETMET R2 R1 K60 - 0x7C080200, // 0017 CALL R2 1 - 0x880C0127, // 0018 GETMBR R3 R0 K39 - 0x740E0001, // 0019 JMPT R3 #001C - 0x90024E02, // 001A SETMBR R0 K39 R2 - 0x70020002, // 001B JMP #001F - 0x880C0127, // 001C GETMBR R3 R0 K39 - 0x000C0602, // 001D ADD R3 R3 R2 - 0x90024E03, // 001E SETMBR R0 K39 R3 - 0x88080127, // 001F GETMBR R2 R0 K39 - 0x780A0001, // 0020 JMPF R2 #0023 - 0x8C08013D, // 0021 GETMET R2 R0 K61 - 0x7C080200, // 0022 CALL R2 1 - 0x80000000, // 0023 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: buf_out_empty -********************************************************************/ -be_local_closure(class_webserver_async_cnx_buf_out_empty, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async_cnx, /* shared constants */ - be_str_weak(buf_out_empty), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x6004000C, // 0000 GETGBL R1 G12 - 0x8808010E, // 0001 GETMBR R2 R0 K14 - 0x7C040200, // 0002 CALL R1 1 - 0x1C04030D, // 0003 EQ R1 R1 K13 - 0x80040200, // 0004 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_chunked -********************************************************************/ -be_local_closure(class_webserver_async_cnx_set_chunked, /* name */ - be_nested_proto( - 4, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async_cnx, /* shared constants */ - be_str_weak(set_chunked), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x60080017, // 0000 GETGBL R2 G23 - 0x5C0C0200, // 0001 MOVE R3 R1 - 0x7C080200, // 0002 CALL R2 1 - 0x90020C02, // 0003 SETMBR R0 K6 R2 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: parse_http_headers -********************************************************************/ -be_local_closure(class_webserver_async_cnx_parse_http_headers, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async_cnx, /* shared constants */ - be_str_weak(parse_http_headers), - &be_const_str_solidified, - ( &(const binstruction[52]) { /* code */ - 0x50040200, // 0000 LDBOOL R1 1 0 - 0x78060030, // 0001 JMPF R1 #0033 - 0xB8067C00, // 0002 GETNGBL R1 K62 - 0x8804033F, // 0003 GETMBR R1 R1 K63 - 0x8C040340, // 0004 GETMET R1 R1 K64 - 0x880C0127, // 0005 GETMBR R3 R0 K39 - 0x88100129, // 0006 GETMBR R4 R0 K41 - 0x7C040600, // 0007 CALL R1 3 - 0x78060008, // 0008 JMPF R1 #0012 - 0x8C080141, // 0009 GETMET R2 R0 K65 - 0x94100336, // 000A GETIDX R4 R1 K54 - 0x94140338, // 000B GETIDX R5 R1 K56 - 0x7C080600, // 000C CALL R2 3 - 0x88080129, // 000D GETMBR R2 R0 K41 - 0x940C030D, // 000E GETIDX R3 R1 K13 - 0x00080403, // 000F ADD R2 R2 R3 - 0x90025202, // 0010 SETMBR R0 K41 R2 - 0x7002001F, // 0011 JMP #0032 - 0xB80A7C00, // 0012 GETNGBL R2 K62 - 0x88080542, // 0013 GETMBR R2 R2 K66 - 0x8C080540, // 0014 GETMET R2 R2 K64 - 0x88100127, // 0015 GETMBR R4 R0 K39 - 0x88140129, // 0016 GETMBR R5 R0 K41 - 0x7C080600, // 0017 CALL R2 3 - 0x780A000A, // 0018 JMPF R2 #0024 - 0x880C0129, // 0019 GETMBR R3 R0 K41 - 0x9410050D, // 001A GETIDX R4 R2 K13 - 0x000C0604, // 001B ADD R3 R3 R4 - 0x400C0743, // 001C CONNECT R3 R3 K67 - 0x88100127, // 001D GETMBR R4 R0 K39 - 0x940C0803, // 001E GETIDX R3 R4 R3 - 0x90024E03, // 001F SETMBR R0 K39 R3 - 0x9002530D, // 0020 SETMBR R0 K41 K13 - 0x90025538, // 0021 SETMBR R0 K42 K56 - 0x8C0C0139, // 0022 GETMET R3 R0 K57 - 0x7C0C0200, // 0023 CALL R3 1 - 0x600C000C, // 0024 GETGBL R3 G12 - 0x88100127, // 0025 GETMBR R4 R0 K39 - 0x7C0C0200, // 0026 CALL R3 1 - 0x541203FF, // 0027 LDINT R4 1024 - 0x240C0604, // 0028 GT R3 R3 R4 - 0x780E0006, // 0029 JMPF R3 #0031 - 0xB80E8800, // 002A GETNGBL R3 K68 - 0x58100045, // 002B LDCONST R4 K69 - 0x54160003, // 002C LDINT R5 4 - 0x7C0C0400, // 002D CALL R3 2 - 0x8C0C0122, // 002E GETMET R3 R0 K34 - 0x7C0C0200, // 002F CALL R3 1 - 0x90024F28, // 0030 SETMBR R0 K39 K40 - 0x80000600, // 0031 RET 0 - 0x7001FFCC, // 0032 JMP #0000 - 0x80000000, // 0033 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: write_raw -********************************************************************/ -be_local_closure(class_webserver_async_cnx_write_raw, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async_cnx, /* shared constants */ - be_str_weak(write_raw), - &be_const_str_solidified, - ( &(const binstruction[21]) { /* code */ - 0x6008000C, // 0000 GETGBL R2 G12 - 0x5C0C0200, // 0001 MOVE R3 R1 - 0x7C080200, // 0002 CALL R2 1 - 0x1C08050D, // 0003 EQ R2 R2 K13 - 0x780A0000, // 0004 JMPF R2 #0006 - 0x80000400, // 0005 RET 0 - 0x60080004, // 0006 GETGBL R2 G4 - 0x5C0C0200, // 0007 MOVE R3 R1 - 0x7C080200, // 0008 CALL R2 1 - 0x1C080504, // 0009 EQ R2 R2 K4 - 0x780A0005, // 000A JMPF R2 #0011 - 0x60080015, // 000B GETGBL R2 G21 - 0x7C080000, // 000C CALL R2 0 - 0x8C080505, // 000D GETMET R2 R2 K5 - 0x5C100200, // 000E MOVE R4 R1 - 0x7C080400, // 000F CALL R2 2 - 0x5C040400, // 0010 MOVE R1 R2 - 0x8C08010C, // 0011 GETMET R2 R0 K12 - 0x5C100200, // 0012 MOVE R4 R1 - 0x7C080400, // 0013 CALL R2 2 - 0x80000000, // 0014 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: content_stop -********************************************************************/ -be_local_closure(class_webserver_async_cnx_content_stop, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async_cnx, /* shared constants */ - be_str_weak(content_stop), - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x8C040125, // 0000 GETMET R1 R0 K37 - 0x580C0028, // 0001 LDCONST R3 K40 - 0x7C040400, // 0002 CALL R1 2 - 0x50040200, // 0003 LDBOOL R1 1 0 - 0x90025601, // 0004 SETMBR R0 K43 R1 - 0x80000000, // 0005 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: parse_http_req_line -********************************************************************/ -be_local_closure(class_webserver_async_cnx_parse_http_req_line, /* name */ - be_nested_proto( - 9, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async_cnx, /* shared constants */ - be_str_weak(parse_http_req_line), - &be_const_str_solidified, - ( &(const binstruction[50]) { /* code */ - 0xB8067C00, // 0000 GETNGBL R1 K62 - 0x88040346, // 0001 GETMBR R1 R1 K70 - 0x8C040340, // 0002 GETMET R1 R1 K64 - 0x880C0127, // 0003 GETMBR R3 R0 K39 - 0x88100129, // 0004 GETMBR R4 R0 K41 - 0x7C040600, // 0005 CALL R1 3 - 0x7806001C, // 0006 JMPF R1 #0024 - 0x9408030D, // 0007 GETIDX R2 R1 K13 - 0x940C0336, // 0008 GETIDX R3 R1 K54 - 0x90020603, // 0009 SETMBR R0 K3 R3 - 0x940C0338, // 000A GETIDX R3 R1 K56 - 0x90020403, // 000B SETMBR R0 K2 R3 - 0x940C0348, // 000C GETIDX R3 R1 K72 - 0x90028E03, // 000D SETMBR R0 K71 R3 - 0x90025536, // 000E SETMBR R0 K42 K54 - 0x400C0543, // 000F CONNECT R3 R2 K67 - 0x88100127, // 0010 GETMBR R4 R0 K39 - 0x940C0803, // 0011 GETIDX R3 R4 R3 - 0x90024E03, // 0012 SETMBR R0 K39 R3 - 0xB80E5A00, // 0013 GETNGBL R3 K45 - 0x8C0C0749, // 0014 GETMET R3 R3 K73 - 0x54160003, // 0015 LDINT R5 4 - 0x7C0C0400, // 0016 CALL R3 2 - 0x780E0008, // 0017 JMPF R3 #0021 - 0xB80E8800, // 0018 GETNGBL R3 K68 - 0x60100018, // 0019 GETGBL R4 G24 - 0x5814004A, // 001A LDCONST R5 K74 - 0x88180103, // 001B GETMBR R6 R0 K3 - 0x881C0102, // 001C GETMBR R7 R0 K2 - 0x88200147, // 001D GETMBR R8 R0 K71 - 0x7C100800, // 001E CALL R4 4 - 0x54160003, // 001F LDINT R5 4 - 0x7C0C0400, // 0020 CALL R3 2 - 0x8C0C0137, // 0021 GETMET R3 R0 K55 - 0x7C0C0200, // 0022 CALL R3 1 - 0x7002000C, // 0023 JMP #0031 - 0x6008000C, // 0024 GETGBL R2 G12 - 0x880C0127, // 0025 GETMBR R3 R0 K39 - 0x7C080200, // 0026 CALL R2 1 - 0x540E0063, // 0027 LDINT R3 100 - 0x24080403, // 0028 GT R2 R2 R3 - 0x780A0006, // 0029 JMPF R2 #0031 - 0xB80A8800, // 002A GETNGBL R2 K68 - 0x580C004B, // 002B LDCONST R3 K75 - 0x54120003, // 002C LDINT R4 4 - 0x7C080400, // 002D CALL R2 2 - 0x8C080122, // 002E GETMET R2 R0 K34 - 0x7C080200, // 002F CALL R2 1 - 0x90024F28, // 0030 SETMBR R0 K39 K40 - 0x80000000, // 0031 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: webserver_async_cnx -********************************************************************/ -be_local_class(webserver_async_cnx, - 14, - NULL, - be_nested_map(33, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(chunked, 20), be_const_var(13) }, - { be_const_key_weak(parse_http_payload, 31), be_const_closure(class_webserver_async_cnx_parse_http_payload_closure) }, - { be_const_key_weak(write, 5), be_const_closure(class_webserver_async_cnx_write_closure) }, - { be_const_key_weak(phase, 32), be_const_var(7) }, - { be_const_key_weak(_write, -1), be_const_closure(class_webserver_async_cnx__write_closure) }, - { be_const_key_weak(parse_http_req_line, 25), be_const_closure(class_webserver_async_cnx_parse_http_req_line_closure) }, - { be_const_key_weak(server, -1), be_const_var(0) }, - { be_const_key_weak(send, 27), be_const_closure(class_webserver_async_cnx_send_closure) }, - { be_const_key_weak(content_stop, -1), be_const_closure(class_webserver_async_cnx_content_stop_closure) }, - { be_const_key_weak(init, -1), be_const_closure(class_webserver_async_cnx_init_closure) }, - { be_const_key_weak(_send, -1), be_const_closure(class_webserver_async_cnx__send_closure) }, - { be_const_key_weak(event_http_header, -1), be_const_closure(class_webserver_async_cnx_event_http_header_closure) }, - { be_const_key_weak(close, -1), be_const_closure(class_webserver_async_cnx_close_closure) }, - { be_const_key_weak(req_uri, 21), be_const_var(9) }, - { be_const_key_weak(buf_in, -1), be_const_var(4) }, - { be_const_key_weak(req_version, 22), be_const_var(10) }, - { be_const_key_weak(resp_headers, -1), be_const_var(12) }, - { be_const_key_weak(close_after_send, 14), be_const_var(2) }, - { be_const_key_weak(cnx, -1), be_const_var(1) }, - { be_const_key_weak(parse, 8), be_const_closure(class_webserver_async_cnx_parse_closure) }, - { be_const_key_weak(CODE_TO_STRING, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { - be_const_map( * be_nested_map(4, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_int(200, 2), be_nested_str_weak(OK) }, - { be_const_key_int(301, -1), be_nested_str_weak(Moved_X20Permanently) }, - { be_const_key_int(404, 3), be_nested_str_weak(Not_X20Found) }, - { be_const_key_int(500, -1), be_nested_str_weak(Internal_X20Server_X20Error) }, - })) ) } )) }, - { be_const_key_weak(buf_out_empty, 10), be_const_closure(class_webserver_async_cnx_buf_out_empty_closure) }, - { be_const_key_weak(loop, -1), be_const_closure(class_webserver_async_cnx_loop_closure) }, - { be_const_key_weak(buf_out, -1), be_const_var(6) }, - { be_const_key_weak(req_verb, 18), be_const_var(8) }, - { be_const_key_weak(buf_in_offset, -1), be_const_var(5) }, - { be_const_key_weak(set_chunked, -1), be_const_closure(class_webserver_async_cnx_set_chunked_closure) }, - { be_const_key_weak(connected, -1), be_const_closure(class_webserver_async_cnx_connected_closure) }, - { be_const_key_weak(parse_http_headers, -1), be_const_closure(class_webserver_async_cnx_parse_http_headers_closure) }, - { be_const_key_weak(fastloop_cb, 13), be_const_var(3) }, - { be_const_key_weak(write_raw, -1), be_const_closure(class_webserver_async_cnx_write_raw_closure) }, - { be_const_key_weak(send_header, -1), be_const_closure(class_webserver_async_cnx_send_header_closure) }, - { be_const_key_weak(header_host, -1), be_const_var(11) }, - })), - be_str_weak(webserver_async_cnx) -); -// compact class 'webserver_async_dispatcher' ktab size: 7, total: 11 (saved 32 bytes) -static const bvalue be_ktab_class_webserver_async_dispatcher[7] = { - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(find), - /* K2 */ be_nested_str_weak(uri_prefix), - /* K3 */ be_const_int(0), - /* K4 */ be_nested_str_weak(verb), - /* K5 */ be_nested_str_weak(cb_obj), - /* K6 */ be_nested_str_weak(cb_mth), -}; - - -extern const bclass be_class_webserver_async_dispatcher; - -/******************************************************************** -** Solidified function: dispatch -********************************************************************/ -be_local_closure(class_webserver_async_dispatcher_dispatch, /* name */ - be_nested_proto( - 13, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async_dispatcher, /* shared constants */ - be_str_weak(dispatch), - &be_const_str_solidified, - ( &(const binstruction[35]) { /* code */ - 0xA4120000, // 0000 IMPORT R4 K0 - 0x8C140901, // 0001 GETMET R5 R4 K1 - 0x5C1C0400, // 0002 MOVE R7 R2 - 0x88200102, // 0003 GETMBR R8 R0 K2 - 0x7C140600, // 0004 CALL R5 3 - 0x1C140B03, // 0005 EQ R5 R5 K3 - 0x78160019, // 0006 JMPF R5 #0021 - 0x50140000, // 0007 LDBOOL R5 0 0 - 0x88180104, // 0008 GETMBR R6 R0 K4 - 0x4C1C0000, // 0009 LDNIL R7 - 0x1C180C07, // 000A EQ R6 R6 R7 - 0x741A0002, // 000B JMPT R6 #000F - 0x88180104, // 000C GETMBR R6 R0 K4 - 0x1C180C03, // 000D EQ R6 R6 R3 - 0x781A0011, // 000E JMPF R6 #0021 - 0x88180105, // 000F GETMBR R6 R0 K5 - 0x4C1C0000, // 0010 LDNIL R7 - 0x201C0C07, // 0011 NE R7 R6 R7 - 0x781E0006, // 0012 JMPF R7 #001A - 0x8C1C0106, // 0013 GETMET R7 R0 K6 - 0x88240105, // 0014 GETMBR R9 R0 K5 - 0x5C280200, // 0015 MOVE R10 R1 - 0x5C2C0400, // 0016 MOVE R11 R2 - 0x5C300600, // 0017 MOVE R12 R3 - 0x7C1C0A00, // 0018 CALL R7 5 - 0x70020004, // 0019 JMP #001F - 0x8C1C0106, // 001A GETMET R7 R0 K6 - 0x5C240200, // 001B MOVE R9 R1 - 0x5C280400, // 001C MOVE R10 R2 - 0x5C2C0600, // 001D MOVE R11 R3 - 0x7C1C0800, // 001E CALL R7 4 - 0x501C0200, // 001F LDBOOL R7 1 0 - 0x80040E00, // 0020 RET 1 R7 - 0x50140000, // 0021 LDBOOL R5 0 0 - 0x80040A00, // 0022 RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_webserver_async_dispatcher_init, /* name */ - be_nested_proto( - 5, /* nstack */ - 5, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async_dispatcher, /* shared constants */ - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x90020401, // 0000 SETMBR R0 K2 R1 - 0x90020A02, // 0001 SETMBR R0 K5 R2 - 0x90020C03, // 0002 SETMBR R0 K6 R3 - 0x90020804, // 0003 SETMBR R0 K4 R4 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: webserver_async_dispatcher -********************************************************************/ -be_local_class(webserver_async_dispatcher, - 4, - NULL, - be_nested_map(6, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(verb, 4), be_const_var(1) }, - { be_const_key_weak(init, -1), be_const_closure(class_webserver_async_dispatcher_init_closure) }, - { be_const_key_weak(uri_prefix, -1), be_const_var(0) }, - { be_const_key_weak(dispatch, 1), be_const_closure(class_webserver_async_dispatcher_dispatch_closure) }, - { be_const_key_weak(cb_obj, 5), be_const_var(2) }, - { be_const_key_weak(cb_mth, -1), be_const_var(3) }, - })), - be_str_weak(webserver_async_dispatcher) -); -extern const bclass be_class_webserver_async; -// compact class 'webserver_async' ktab size: 48, total: 71 (saved 184 bytes) -static const bvalue be_ktab_class_webserver_async[48] = { - /* K0 */ be_nested_str_weak(chunked), - /* K1 */ be_nested_str_weak(re), - /* K2 */ be_nested_str_weak(global), - /* K3 */ be_nested_str_weak(contains), - /* K4 */ be_nested_str_weak(_re_http_srv), - /* K5 */ be_nested_str_weak(compile), - /* K6 */ be_nested_str_weak(_X5E_X28_X5Cw_X2B_X29_X20_X28_X5CS_X2B_X29_X20HTTP_X5C_X2F_X28_X5Cd_X5C_X2E_X5Cd_X29_X0D_X0A), - /* K7 */ be_nested_str_weak(_re_http_srv_header), - /* K8 */ be_nested_str_weak(_X28_X5BA_X2DZa_X2Dz0_X2D9_X2D_X5D_X2B_X29_X3A_X20_X28_X2E_X2A_X3F_X29_X0D_X0A), - /* K9 */ be_nested_str_weak(_re_http_srv_body), - /* K10 */ be_nested_str_weak(_X0D_X0A), - /* K11 */ be_nested_str_weak(cors), - /* K12 */ be_nested_str_weak(clean_connections), - /* K13 */ be_nested_str_weak(server), - /* K14 */ be_nested_str_weak(hasclient), - /* K15 */ be_nested_str_weak(webserver_async_cnx), - /* K16 */ be_nested_str_weak(acceptasync), - /* K17 */ be_nested_str_weak(set_chunked), - /* K18 */ be_nested_str_weak(connections), - /* K19 */ be_nested_str_weak(push), - /* K20 */ be_nested_str_weak(tasmota), - /* K21 */ be_nested_str_weak(remove_driver), - /* K22 */ be_nested_str_weak(remove_fast_loop), - /* K23 */ be_nested_str_weak(fastloop_cb), - /* K24 */ be_nested_str_weak(close), - /* K25 */ be_nested_str_weak(stop_iteration), - /* K26 */ be_const_class(be_class_webserver_async), - /* K27 */ be_nested_str_weak(clear), - /* K28 */ be_const_int(0), - /* K29 */ be_nested_str_weak(resize), - /* K30 */ be_const_int(1), - /* K31 */ be_nested_str_weak(reverse), - /* K32 */ be_nested_str_weak(dispatchers), - /* K33 */ be_nested_str_weak(tcpserver), - /* K34 */ be_nested_str_weak(p1), - /* K35 */ be_nested_str_weak(compile_re), - /* K36 */ be_nested_str_weak(add_driver), - /* K37 */ be_nested_str_weak(add_fast_loop), - /* K38 */ be_nested_str_weak(connected), - /* K39 */ be_nested_str_weak(remove), - /* K40 */ be_nested_str_weak(append), - /* K41 */ be_nested_str_weak(webserver_async_dispatcher), - /* K42 */ be_nested_str_weak(dispatch), - /* K43 */ be_nested_str_weak(send), - /* K44 */ be_nested_str_weak(text_X2Fplain), - /* K45 */ be_nested_str_weak(write), - /* K46 */ be_nested_str_weak(Unsupported), - /* K47 */ be_nested_str_weak(content_stop), -}; - - -extern const bclass be_class_webserver_async; - -/******************************************************************** -** Solidified function: set_chunked -********************************************************************/ -be_local_closure(class_webserver_async_set_chunked, /* name */ - be_nested_proto( - 4, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async, /* shared constants */ - be_str_weak(set_chunked), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x60080017, // 0000 GETGBL R2 G23 - 0x5C0C0200, // 0001 MOVE R3 R1 - 0x7C080200, // 0002 CALL R2 1 - 0x90020002, // 0003 SETMBR R0 K0 R2 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: compile_re -********************************************************************/ -be_local_closure(class_webserver_async_compile_re, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async, /* shared constants */ - be_str_weak(compile_re), - &be_const_str_solidified, - ( &(const binstruction[22]) { /* code */ - 0xA4060200, // 0000 IMPORT R1 K1 - 0xB80A0400, // 0001 GETNGBL R2 K2 - 0x8C080503, // 0002 GETMET R2 R2 K3 - 0x58100004, // 0003 LDCONST R4 K4 - 0x7C080400, // 0004 CALL R2 2 - 0x740A000E, // 0005 JMPT R2 #0015 - 0xB80A0400, // 0006 GETNGBL R2 K2 - 0x8C0C0305, // 0007 GETMET R3 R1 K5 - 0x58140006, // 0008 LDCONST R5 K6 - 0x7C0C0400, // 0009 CALL R3 2 - 0x900A0803, // 000A SETMBR R2 K4 R3 - 0xB80A0400, // 000B GETNGBL R2 K2 - 0x8C0C0305, // 000C GETMET R3 R1 K5 - 0x58140008, // 000D LDCONST R5 K8 - 0x7C0C0400, // 000E CALL R3 2 - 0x900A0E03, // 000F SETMBR R2 K7 R3 - 0xB80A0400, // 0010 GETNGBL R2 K2 - 0x8C0C0305, // 0011 GETMET R3 R1 K5 - 0x5814000A, // 0012 LDCONST R5 K10 - 0x7C0C0400, // 0013 CALL R3 2 - 0x900A1203, // 0014 SETMBR R2 K9 R3 - 0x80000000, // 0015 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_cors -********************************************************************/ -be_local_closure(class_webserver_async_set_cors, /* name */ - be_nested_proto( - 4, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async, /* shared constants */ - be_str_weak(set_cors), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x60080017, // 0000 GETGBL R2 G23 - 0x5C0C0200, // 0001 MOVE R3 R1 - 0x7C080200, // 0002 CALL R2 1 - 0x90021602, // 0003 SETMBR R0 K11 R2 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: loop -********************************************************************/ -be_local_closure(class_webserver_async_loop, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async, /* shared constants */ - be_str_weak(loop), - &be_const_str_solidified, - ( &(const binstruction[21]) { /* code */ - 0x8C04010C, // 0000 GETMET R1 R0 K12 - 0x7C040200, // 0001 CALL R1 1 - 0x8804010D, // 0002 GETMBR R1 R0 K13 - 0x8C04030E, // 0003 GETMET R1 R1 K14 - 0x7C040200, // 0004 CALL R1 1 - 0x7806000D, // 0005 JMPF R1 #0014 - 0x8C04010F, // 0006 GETMET R1 R0 K15 - 0x5C0C0000, // 0007 MOVE R3 R0 - 0x8810010D, // 0008 GETMBR R4 R0 K13 - 0x8C100910, // 0009 GETMET R4 R4 K16 - 0x7C100200, // 000A CALL R4 1 - 0x7C040600, // 000B CALL R1 3 - 0x8C080311, // 000C GETMET R2 R1 K17 - 0x88100100, // 000D GETMBR R4 R0 K0 - 0x7C080400, // 000E CALL R2 2 - 0x88080112, // 000F GETMBR R2 R0 K18 - 0x8C080513, // 0010 GETMET R2 R2 K19 - 0x5C100200, // 0011 MOVE R4 R1 - 0x7C080400, // 0012 CALL R2 2 - 0x7001FFED, // 0013 JMP #0002 - 0x80000000, // 0014 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: close -********************************************************************/ -be_local_closure(class_webserver_async_close, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async, /* shared constants */ - be_str_weak(close), - &be_const_str_solidified, - ( &(const binstruction[28]) { /* code */ - 0xB8062800, // 0000 GETNGBL R1 K20 - 0x8C040315, // 0001 GETMET R1 R1 K21 - 0x5C0C0000, // 0002 MOVE R3 R0 - 0x7C040400, // 0003 CALL R1 2 - 0xB8062800, // 0004 GETNGBL R1 K20 - 0x8C040316, // 0005 GETMET R1 R1 K22 - 0x880C0117, // 0006 GETMBR R3 R0 K23 - 0x7C040400, // 0007 CALL R1 2 - 0x4C040000, // 0008 LDNIL R1 - 0x90022E01, // 0009 SETMBR R0 K23 R1 - 0x8804010D, // 000A GETMBR R1 R0 K13 - 0x8C040318, // 000B GETMET R1 R1 K24 - 0x7C040200, // 000C CALL R1 1 - 0x60040010, // 000D GETGBL R1 G16 - 0x88080112, // 000E GETMBR R2 R0 K18 - 0x7C040200, // 000F CALL R1 1 - 0xA8020004, // 0010 EXBLK 0 #0016 - 0x5C080200, // 0011 MOVE R2 R1 - 0x7C080000, // 0012 CALL R2 0 - 0x8C0C0518, // 0013 GETMET R3 R2 K24 - 0x7C0C0200, // 0014 CALL R3 1 - 0x7001FFFA, // 0015 JMP #0011 - 0x58040019, // 0016 LDCONST R1 K25 - 0xAC040200, // 0017 CATCH R1 1 0 - 0xB0080000, // 0018 RAISE 2 R0 R0 - 0x4C040000, // 0019 LDNIL R1 - 0x90022401, // 001A SETMBR R0 K18 R1 - 0x80000000, // 001B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: bytes_format_hex -********************************************************************/ -be_local_closure(class_webserver_async_bytes_format_hex, /* name */ - be_nested_proto( - 8, /* nstack */ - 3, /* argc */ - 12, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async, /* shared constants */ - be_str_weak(bytes_format_hex), - &be_const_str_solidified, - ( &(const binstruction[50]) { /* code */ - 0x580C001A, // 0000 LDCONST R3 K26 - 0x8C10011B, // 0001 GETMET R4 R0 K27 - 0x7C100200, // 0002 CALL R4 1 - 0x4C100000, // 0003 LDNIL R4 - 0x1C100204, // 0004 EQ R4 R1 R4 - 0x78120001, // 0005 JMPF R4 #0008 - 0x40100002, // 0006 CONNECT R4 R0 R2 - 0x80000800, // 0007 RET 0 - 0x1410031C, // 0008 LT R4 R1 K28 - 0x78120000, // 0009 JMPF R4 #000B - 0x44040200, // 000A NEG R1 R1 - 0x1410031C, // 000B LT R4 R1 K28 - 0x78120000, // 000C JMPF R4 #000E - 0x80000800, // 000D RET 0 - 0x1C10031C, // 000E EQ R4 R1 K28 - 0x78120005, // 000F JMPF R4 #0016 - 0x8C10011D, // 0010 GETMET R4 R0 K29 - 0x5818001E, // 0011 LDCONST R6 K30 - 0x7C100400, // 0012 CALL R4 2 - 0x5412002F, // 0013 LDINT R4 48 - 0x98023804, // 0014 SETIDX R0 K28 R4 - 0x80000800, // 0015 RET 0 - 0x8C10011D, // 0016 GETMET R4 R0 K29 - 0x541A0007, // 0017 LDINT R6 8 - 0x7C100400, // 0018 CALL R4 2 - 0x5810001C, // 0019 LDCONST R4 K28 - 0x2414031C, // 001A GT R5 R1 K28 - 0x7816000F, // 001B JMPF R5 #002C - 0x5416000E, // 001C LDINT R5 15 - 0x2C140205, // 001D AND R5 R1 R5 - 0x541A0009, // 001E LDINT R6 10 - 0x14180A06, // 001F LT R6 R5 R6 - 0x781A0003, // 0020 JMPF R6 #0025 - 0x541A002F, // 0021 LDINT R6 48 - 0x00180C05, // 0022 ADD R6 R6 R5 - 0x98000806, // 0023 SETIDX R0 R4 R6 - 0x70020002, // 0024 JMP #0028 - 0x541A0036, // 0025 LDINT R6 55 - 0x00180C05, // 0026 ADD R6 R6 R5 - 0x98000806, // 0027 SETIDX R0 R4 R6 - 0x0010091E, // 0028 ADD R4 R4 K30 - 0x541A0003, // 0029 LDINT R6 4 - 0x3C040206, // 002A SHR R1 R1 R6 - 0x7001FFED, // 002B JMP #001A - 0x8C14011D, // 002C GETMET R5 R0 K29 - 0x5C1C0800, // 002D MOVE R7 R4 - 0x7C140400, // 002E CALL R5 2 - 0x8C14011F, // 002F GETMET R5 R0 K31 - 0x7C140200, // 0030 CALL R5 1 - 0x80000000, // 0031 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_webserver_async_init, /* name */ - be_nested_proto( - 6, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 1]) { - be_nested_proto( - 2, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(loop), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0x80000000, // 0003 RET 0 - }) - ), - }), - 1, /* has constants */ - &be_ktab_class_webserver_async, /* shared constants */ - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[32]) { /* code */ - 0x600C0012, // 0000 GETGBL R3 G18 - 0x7C0C0000, // 0001 CALL R3 0 - 0x90022403, // 0002 SETMBR R0 K18 R3 - 0x600C0012, // 0003 GETGBL R3 G18 - 0x7C0C0000, // 0004 CALL R3 0 - 0x90024003, // 0005 SETMBR R0 K32 R3 - 0xB80E4200, // 0006 GETNGBL R3 K33 - 0x5C100200, // 0007 MOVE R4 R1 - 0x7C0C0200, // 0008 CALL R3 1 - 0x90021A03, // 0009 SETMBR R0 K13 R3 - 0x500C0200, // 000A LDBOOL R3 1 0 - 0x90020003, // 000B SETMBR R0 K0 R3 - 0x500C0000, // 000C LDBOOL R3 0 0 - 0x90021603, // 000D SETMBR R0 K11 R3 - 0x600C0015, // 000E GETGBL R3 G21 - 0x54120063, // 000F LDINT R4 100 - 0x7C0C0200, // 0010 CALL R3 1 - 0x90024403, // 0011 SETMBR R0 K34 R3 - 0x8C0C0123, // 0012 GETMET R3 R0 K35 - 0x7C0C0200, // 0013 CALL R3 1 - 0xB80E2800, // 0014 GETNGBL R3 K20 - 0x8C0C0724, // 0015 GETMET R3 R3 K36 - 0x5C140000, // 0016 MOVE R5 R0 - 0x7C0C0400, // 0017 CALL R3 2 - 0x840C0000, // 0018 CLOSURE R3 P0 - 0x90022E03, // 0019 SETMBR R0 K23 R3 - 0xB80E2800, // 001A GETNGBL R3 K20 - 0x8C0C0725, // 001B GETMET R3 R3 K37 - 0x88140117, // 001C GETMBR R5 R0 K23 - 0x7C0C0400, // 001D CALL R3 2 - 0xA0000000, // 001E CLOSE R0 - 0x80000000, // 001F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: clean_connections -********************************************************************/ -be_local_closure(class_webserver_async_clean_connections, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async, /* shared constants */ - be_str_weak(clean_connections), - &be_const_str_solidified, - ( &(const binstruction[21]) { /* code */ - 0x5804001C, // 0000 LDCONST R1 K28 - 0x6008000C, // 0001 GETGBL R2 G12 - 0x880C0112, // 0002 GETMBR R3 R0 K18 - 0x7C080200, // 0003 CALL R2 1 - 0x14080202, // 0004 LT R2 R1 R2 - 0x780A000D, // 0005 JMPF R2 #0014 - 0x88080112, // 0006 GETMBR R2 R0 K18 - 0x94080401, // 0007 GETIDX R2 R2 R1 - 0x8C0C0526, // 0008 GETMET R3 R2 K38 - 0x7C0C0200, // 0009 CALL R3 1 - 0x740E0006, // 000A JMPT R3 #0012 - 0x8C0C0518, // 000B GETMET R3 R2 K24 - 0x7C0C0200, // 000C CALL R3 1 - 0x880C0112, // 000D GETMBR R3 R0 K18 - 0x8C0C0727, // 000E GETMET R3 R3 K39 - 0x5C140200, // 000F MOVE R5 R1 - 0x7C0C0400, // 0010 CALL R3 2 - 0x70020000, // 0011 JMP #0013 - 0x0004031E, // 0012 ADD R1 R1 K30 - 0x7001FFEC, // 0013 JMP #0001 - 0x80000000, // 0014 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: bytes_append_int -********************************************************************/ -be_local_closure(class_webserver_async_bytes_append_int, /* name */ - be_nested_proto( - 11, /* nstack */ - 3, /* argc */ - 12, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async, /* shared constants */ - be_str_weak(bytes_append_int), - &be_const_str_solidified, - ( &(const binstruction[53]) { /* code */ - 0x580C001A, // 0000 LDCONST R3 K26 - 0x6010000C, // 0001 GETGBL R4 G12 - 0x5C140000, // 0002 MOVE R5 R0 - 0x7C100200, // 0003 CALL R4 1 - 0x1C14031C, // 0004 EQ R5 R1 K28 - 0x78160005, // 0005 JMPF R5 #000C - 0x8C14011D, // 0006 GETMET R5 R0 K29 - 0x001C091E, // 0007 ADD R7 R4 K30 - 0x7C140400, // 0008 CALL R5 2 - 0x5416002F, // 0009 LDINT R5 48 - 0x98000805, // 000A SETIDX R0 R4 R5 - 0x70020027, // 000B JMP #0034 - 0x4C140000, // 000C LDNIL R5 - 0x20140205, // 000D NE R5 R1 R5 - 0x78160021, // 000E JMPF R5 #0031 - 0x50140000, // 000F LDBOOL R5 0 0 - 0x1418031C, // 0010 LT R6 R1 K28 - 0x781A0001, // 0011 JMPF R6 #0014 - 0x44040200, // 0012 NEG R1 R1 - 0x50140200, // 0013 LDBOOL R5 1 0 - 0x1418031C, // 0014 LT R6 R1 K28 - 0x781A0000, // 0015 JMPF R6 #0017 - 0x80040000, // 0016 RET 1 R0 - 0x78160005, // 0017 JMPF R5 #001E - 0x8C18011D, // 0018 GETMET R6 R0 K29 - 0x0020091E, // 0019 ADD R8 R4 K30 - 0x7C180400, // 001A CALL R6 2 - 0x541A002C, // 001B LDINT R6 45 - 0x98000806, // 001C SETIDX R0 R4 R6 - 0x0010091E, // 001D ADD R4 R4 K30 - 0x5C180800, // 001E MOVE R6 R4 - 0x241C031C, // 001F GT R7 R1 K28 - 0x781E000B, // 0020 JMPF R7 #002D - 0x541E0009, // 0021 LDINT R7 10 - 0x101C0207, // 0022 MOD R7 R1 R7 - 0x8C20011D, // 0023 GETMET R8 R0 K29 - 0x0028091E, // 0024 ADD R10 R4 K30 - 0x7C200400, // 0025 CALL R8 2 - 0x5422002F, // 0026 LDINT R8 48 - 0x00201007, // 0027 ADD R8 R8 R7 - 0x98000808, // 0028 SETIDX R0 R4 R8 - 0x0010091E, // 0029 ADD R4 R4 K30 - 0x54220009, // 002A LDINT R8 10 - 0x0C040208, // 002B DIV R1 R1 R8 - 0x7001FFF1, // 002C JMP #001F - 0x8C1C011F, // 002D GETMET R7 R0 K31 - 0x5C240C00, // 002E MOVE R9 R6 - 0x7C1C0400, // 002F CALL R7 2 - 0x70020002, // 0030 JMP #0034 - 0x8C140128, // 0031 GETMET R5 R0 K40 - 0x5C1C0400, // 0032 MOVE R7 R2 - 0x7C140400, // 0033 CALL R5 2 - 0x80040000, // 0034 RET 1 R0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: on -********************************************************************/ -be_local_closure(class_webserver_async_on, /* name */ - be_nested_proto( - 11, /* nstack */ - 5, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async, /* shared constants */ - be_str_weak(on), - &be_const_str_solidified, - ( &(const binstruction[11]) { /* code */ - 0x8C140129, // 0000 GETMET R5 R0 K41 - 0x5C1C0200, // 0001 MOVE R7 R1 - 0x5C200400, // 0002 MOVE R8 R2 - 0x5C240600, // 0003 MOVE R9 R3 - 0x5C280800, // 0004 MOVE R10 R4 - 0x7C140A00, // 0005 CALL R5 5 - 0x88180120, // 0006 GETMBR R6 R0 K32 - 0x8C180D13, // 0007 GETMET R6 R6 K19 - 0x5C200A00, // 0008 MOVE R8 R5 - 0x7C180400, // 0009 CALL R6 2 - 0x80000000, // 000A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: dispatch -********************************************************************/ -be_local_closure(class_webserver_async_dispatch, /* name */ - be_nested_proto( - 10, /* nstack */ - 4, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_webserver_async, /* shared constants */ - be_str_weak(dispatch), - &be_const_str_solidified, - ( &(const binstruction[27]) { /* code */ - 0x5810001C, // 0000 LDCONST R4 K28 - 0x6014000C, // 0001 GETGBL R5 G12 - 0x88180120, // 0002 GETMBR R6 R0 K32 - 0x7C140200, // 0003 CALL R5 1 - 0x14140805, // 0004 LT R5 R4 R5 - 0x7816000A, // 0005 JMPF R5 #0011 - 0x88140120, // 0006 GETMBR R5 R0 K32 - 0x94140A04, // 0007 GETIDX R5 R5 R4 - 0x8C140B2A, // 0008 GETMET R5 R5 K42 - 0x5C1C0200, // 0009 MOVE R7 R1 - 0x5C200400, // 000A MOVE R8 R2 - 0x5C240600, // 000B MOVE R9 R3 - 0x7C140800, // 000C CALL R5 4 - 0x78160000, // 000D JMPF R5 #000F - 0x80000A00, // 000E RET 0 - 0x0010091E, // 000F ADD R4 R4 K30 - 0x7001FFEF, // 0010 JMP #0001 - 0x8C14032B, // 0011 GETMET R5 R1 K43 - 0x541E01F3, // 0012 LDINT R7 500 - 0x5820002C, // 0013 LDCONST R8 K44 - 0x7C140600, // 0014 CALL R5 3 - 0x8C14032D, // 0015 GETMET R5 R1 K45 - 0x581C002E, // 0016 LDCONST R7 K46 - 0x7C140400, // 0017 CALL R5 2 - 0x8C14032F, // 0018 GETMET R5 R1 K47 - 0x7C140200, // 0019 CALL R5 1 - 0x80000000, // 001A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: webserver_async -********************************************************************/ -be_local_class(webserver_async, - 8, - NULL, - be_nested_map(21, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(local_port, -1), be_const_var(0) }, - { be_const_key_weak(dispatchers, 11), be_const_var(4) }, - { be_const_key_weak(set_chunked, 10), be_const_closure(class_webserver_async_set_chunked_closure) }, - { be_const_key_weak(webserver_async_cnx, 20), be_const_class(be_class_webserver_async_cnx) }, - { be_const_key_weak(webserver_async_dispatcher, -1), be_const_class(be_class_webserver_async_dispatcher) }, - { be_const_key_weak(compile_re, -1), be_const_closure(class_webserver_async_compile_re_closure) }, - { be_const_key_weak(dispatch, 7), be_const_closure(class_webserver_async_dispatch_closure) }, - { be_const_key_weak(cors, 16), be_const_var(6) }, - { be_const_key_weak(connections, -1), be_const_var(3) }, - { be_const_key_weak(set_cors, 1), be_const_closure(class_webserver_async_set_cors_closure) }, - { be_const_key_weak(on, -1), be_const_closure(class_webserver_async_on_closure) }, - { be_const_key_weak(bytes_append_int, 18), be_const_static_closure(class_webserver_async_bytes_append_int_closure) }, - { be_const_key_weak(init, -1), be_const_closure(class_webserver_async_init_closure) }, - { be_const_key_weak(p1, -1), be_const_var(7) }, - { be_const_key_weak(fastloop_cb, -1), be_const_var(2) }, - { be_const_key_weak(server, 6), be_const_var(1) }, - { be_const_key_weak(clean_connections, 17), be_const_closure(class_webserver_async_clean_connections_closure) }, - { be_const_key_weak(bytes_format_hex, -1), be_const_static_closure(class_webserver_async_bytes_format_hex_closure) }, - { be_const_key_weak(close, 19), be_const_closure(class_webserver_async_close_closure) }, - { be_const_key_weak(loop, -1), be_const_closure(class_webserver_async_loop_closure) }, - { be_const_key_weak(chunked, -1), be_const_var(5) }, - })), - be_str_weak(webserver_async) -); -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_zigbee.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_zigbee.h deleted file mode 100644 index 8f504d019..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_zigbee.h +++ /dev/null @@ -1,61 +0,0 @@ -/* Solidification of zigbee.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" - -/******************************************************************** -** Solidified function: tostring -********************************************************************/ -be_local_closure(class_zb_device_tostring, /* name */ - be_nested_proto( - 12, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ - /* K0 */ be_nested_str_weak(json), - /* K1 */ be_nested_str_weak(longaddr), - /* K2 */ be_nested_str_weak(_X3Cinstance_X3A_X20_X25s_X280x_X2504X_X2C_X200x_X2508X_X2508X_X2C_X20name_X3A_X27_X25s_X27_X2C_X20model_X3A_X27_X25s_X27_X2C_X20manufacturer_X3A_X27_X25s_X27_X29_X3E), - /* K3 */ be_nested_str_weak(shortaddr), - /* K4 */ be_nested_str_weak(get), - /* K5 */ be_const_int(0), - /* K6 */ be_nested_str_weak(name), - /* K7 */ be_nested_str_weak(model), - /* K8 */ be_nested_str_weak(manufacturer), - }), - be_str_weak(tostring), - &be_const_str_solidified, - ( &(const binstruction[21]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x88080101, // 0001 GETMBR R2 R0 K1 - 0x600C0018, // 0002 GETGBL R3 G24 - 0x58100002, // 0003 LDCONST R4 K2 - 0x60140005, // 0004 GETGBL R5 G5 - 0x5C180000, // 0005 MOVE R6 R0 - 0x7C140200, // 0006 CALL R5 1 - 0x88180103, // 0007 GETMBR R6 R0 K3 - 0x8C1C0504, // 0008 GETMET R7 R2 K4 - 0x54260003, // 0009 LDINT R9 4 - 0x542A0003, // 000A LDINT R10 4 - 0x7C1C0600, // 000B CALL R7 3 - 0x8C200504, // 000C GETMET R8 R2 K4 - 0x58280005, // 000D LDCONST R10 K5 - 0x542E0003, // 000E LDINT R11 4 - 0x7C200600, // 000F CALL R8 3 - 0x88240106, // 0010 GETMBR R9 R0 K6 - 0x88280107, // 0011 GETMBR R10 R0 K7 - 0x882C0108, // 0012 GETMBR R11 R0 K8 - 0x7C0C1000, // 0013 CALL R3 8 - 0x80040600, // 0014 RET 1 R3 - }) - ) -); -/*******************************************************************/ - -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_zigbee_zb_coord.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_zigbee_zb_coord.h deleted file mode 100644 index 95dbf423b..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_zigbee_zb_coord.h +++ /dev/null @@ -1,259 +0,0 @@ -/* Solidification of zigbee_zb_coord.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -// compact class 'zb_coord' ktab size: 21, total: 24 (saved 24 bytes) -static const bvalue be_ktab_class_zb_coord[21] = { - /* K0 */ be_nested_str_weak(init), - /* K1 */ be_nested_str_weak(instance), - /* K2 */ be_nested_str_weak(value_error), - /* K3 */ be_nested_str_weak(instance_X20required), - /* K4 */ be_nested_str_weak(_handlers), - /* K5 */ be_nested_str_weak(find), - /* K6 */ be_nested_str_weak(push), - /* K7 */ be_nested_str_weak(introspect), - /* K8 */ be_nested_str_weak(toptr), - /* K9 */ be_const_int(0), - /* K10 */ be_nested_str_weak(zcl_frame), - /* K11 */ be_nested_str_weak(zcl_attribute_list), - /* K12 */ be_nested_str_weak(get), - /* K13 */ be_nested_str_weak(function), - /* K14 */ be_nested_str_weak(BRY_X3A_X20Exception_X3E_X20_X27_X25s_X27_X20_X2D_X20_X25s), - /* K15 */ be_nested_str_weak(tasmota), - /* K16 */ be_nested_str_weak(_debug_present), - /* K17 */ be_nested_str_weak(debug), - /* K18 */ be_nested_str_weak(traceback), - /* K19 */ be_const_int(1), - /* K20 */ be_nested_str_weak(remove), -}; - - -extern const bclass be_class_zb_coord; - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_zb_coord_init, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_zb_coord, /* shared constants */ - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x60040003, // 0000 GETGBL R1 G3 - 0x5C080000, // 0001 MOVE R2 R0 - 0x7C040200, // 0002 CALL R1 1 - 0x8C040300, // 0003 GETMET R1 R1 K0 - 0x7C040200, // 0004 CALL R1 1 - 0x80000000, // 0005 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: add_handler -********************************************************************/ -be_local_closure(class_zb_coord_add_handler, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_zb_coord, /* shared constants */ - be_str_weak(add_handler), - &be_const_str_solidified, - ( &(const binstruction[25]) { /* code */ - 0x60080004, // 0000 GETGBL R2 G4 - 0x5C0C0200, // 0001 MOVE R3 R1 - 0x7C080200, // 0002 CALL R2 1 - 0x20080501, // 0003 NE R2 R2 K1 - 0x780A0000, // 0004 JMPF R2 #0006 - 0xB0060503, // 0005 RAISE 1 K2 K3 - 0x88080104, // 0006 GETMBR R2 R0 K4 - 0x780A000B, // 0007 JMPF R2 #0014 - 0x88080104, // 0008 GETMBR R2 R0 K4 - 0x8C080505, // 0009 GETMET R2 R2 K5 - 0x5C100200, // 000A MOVE R4 R1 - 0x7C080400, // 000B CALL R2 2 - 0x4C0C0000, // 000C LDNIL R3 - 0x1C080403, // 000D EQ R2 R2 R3 - 0x780A0003, // 000E JMPF R2 #0013 - 0x88080104, // 000F GETMBR R2 R0 K4 - 0x8C080506, // 0010 GETMET R2 R2 K6 - 0x5C100200, // 0011 MOVE R4 R1 - 0x7C080400, // 0012 CALL R2 2 - 0x70020003, // 0013 JMP #0018 - 0x60080012, // 0014 GETGBL R2 G18 - 0x7C080000, // 0015 CALL R2 0 - 0x400C0401, // 0016 CONNECT R3 R2 R1 - 0x90020802, // 0017 SETMBR R0 K4 R2 - 0x80000000, // 0018 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: dispatch -********************************************************************/ -be_local_closure(class_zb_coord_dispatch, /* name */ - be_nested_proto( - 19, /* nstack */ - 5, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_zb_coord, /* shared constants */ - be_str_weak(dispatch), - &be_const_str_solidified, - ( &(const binstruction[70]) { /* code */ - 0x88140104, // 0000 GETMBR R5 R0 K4 - 0x4C180000, // 0001 LDNIL R6 - 0x1C140A06, // 0002 EQ R5 R5 R6 - 0x78160000, // 0003 JMPF R5 #0005 - 0x80000A00, // 0004 RET 0 - 0xA4160E00, // 0005 IMPORT R5 K7 - 0x4C180000, // 0006 LDNIL R6 - 0x4C1C0000, // 0007 LDNIL R7 - 0x8C200B08, // 0008 GETMET R8 R5 K8 - 0x58280009, // 0009 LDCONST R10 K9 - 0x7C200400, // 000A CALL R8 2 - 0x20240408, // 000B NE R9 R2 R8 - 0x78260003, // 000C JMPF R9 #0011 - 0x8C24010A, // 000D GETMET R9 R0 K10 - 0x5C2C0400, // 000E MOVE R11 R2 - 0x7C240400, // 000F CALL R9 2 - 0x5C181200, // 0010 MOVE R6 R9 - 0x20240608, // 0011 NE R9 R3 R8 - 0x78260003, // 0012 JMPF R9 #0017 - 0x8C24010B, // 0013 GETMET R9 R0 K11 - 0x5C2C0600, // 0014 MOVE R11 R3 - 0x7C240400, // 0015 CALL R9 2 - 0x5C1C1200, // 0016 MOVE R7 R9 - 0x58240009, // 0017 LDCONST R9 K9 - 0x6028000C, // 0018 GETGBL R10 G12 - 0x882C0104, // 0019 GETMBR R11 R0 K4 - 0x7C280200, // 001A CALL R10 1 - 0x1428120A, // 001B LT R10 R9 R10 - 0x782A0027, // 001C JMPF R10 #0045 - 0x88280104, // 001D GETMBR R10 R0 K4 - 0x94281409, // 001E GETIDX R10 R10 R9 - 0x8C2C0B0C, // 001F GETMET R11 R5 K12 - 0x5C341400, // 0020 MOVE R13 R10 - 0x5C380200, // 0021 MOVE R14 R1 - 0x7C2C0600, // 0022 CALL R11 3 - 0x60300004, // 0023 GETGBL R12 G4 - 0x5C341600, // 0024 MOVE R13 R11 - 0x7C300200, // 0025 CALL R12 1 - 0x1C30190D, // 0026 EQ R12 R12 K13 - 0x7832001A, // 0027 JMPF R12 #0043 - 0xA8020008, // 0028 EXBLK 0 #0032 - 0x5C301600, // 0029 MOVE R12 R11 - 0x5C341400, // 002A MOVE R13 R10 - 0x5C380200, // 002B MOVE R14 R1 - 0x5C3C0C00, // 002C MOVE R15 R6 - 0x5C400E00, // 002D MOVE R16 R7 - 0x5C440800, // 002E MOVE R17 R4 - 0x7C300A00, // 002F CALL R12 5 - 0xA8040001, // 0030 EXBLK 1 1 - 0x70020010, // 0031 JMP #0043 - 0xAC300002, // 0032 CATCH R12 0 2 - 0x7002000D, // 0033 JMP #0042 - 0x60380001, // 0034 GETGBL R14 G1 - 0x603C0018, // 0035 GETGBL R15 G24 - 0x5840000E, // 0036 LDCONST R16 K14 - 0x5C441800, // 0037 MOVE R17 R12 - 0x5C481A00, // 0038 MOVE R18 R13 - 0x7C3C0600, // 0039 CALL R15 3 - 0x7C380200, // 003A CALL R14 1 - 0xB83A1E00, // 003B GETNGBL R14 K15 - 0x88381D10, // 003C GETMBR R14 R14 K16 - 0x783A0002, // 003D JMPF R14 #0041 - 0xA43A2200, // 003E IMPORT R14 K17 - 0x8C3C1D12, // 003F GETMET R15 R14 K18 - 0x7C3C0200, // 0040 CALL R15 1 - 0x70020000, // 0041 JMP #0043 - 0xB0080000, // 0042 RAISE 2 R0 R0 - 0x00241313, // 0043 ADD R9 R9 K19 - 0x7001FFD2, // 0044 JMP #0018 - 0x80000000, // 0045 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: remove_handler -********************************************************************/ -be_local_closure(class_zb_coord_remove_handler, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_zb_coord, /* shared constants */ - be_str_weak(remove_handler), - &be_const_str_solidified, - ( &(const binstruction[14]) { /* code */ - 0x88080104, // 0000 GETMBR R2 R0 K4 - 0x780A000A, // 0001 JMPF R2 #000D - 0x88080104, // 0002 GETMBR R2 R0 K4 - 0x8C080505, // 0003 GETMET R2 R2 K5 - 0x5C100200, // 0004 MOVE R4 R1 - 0x7C080400, // 0005 CALL R2 2 - 0x4C0C0000, // 0006 LDNIL R3 - 0x200C0403, // 0007 NE R3 R2 R3 - 0x780E0003, // 0008 JMPF R3 #000D - 0x880C0104, // 0009 GETMBR R3 R0 K4 - 0x8C0C0714, // 000A GETMET R3 R3 K20 - 0x5C140400, // 000B MOVE R5 R2 - 0x7C0C0400, // 000C CALL R3 2 - 0x80000000, // 000D RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: zb_coord -********************************************************************/ -extern const bclass be_class_zb_coord_ntv; -be_local_class(zb_coord, - 1, - &be_class_zb_coord_ntv, - be_nested_map(5, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(init, -1), be_const_closure(class_zb_coord_init_closure) }, - { be_const_key_weak(remove_handler, 2), be_const_closure(class_zb_coord_remove_handler_closure) }, - { be_const_key_weak(add_handler, -1), be_const_closure(class_zb_coord_add_handler_closure) }, - { be_const_key_weak(dispatch, -1), be_const_closure(class_zb_coord_dispatch_closure) }, - { be_const_key_weak(_handlers, 1), be_const_var(0) }, - })), - be_str_weak(zb_coord) -); -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_zigbee_zcl_attribute.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_zigbee_zcl_attribute.h deleted file mode 100644 index 841ad2c36..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_zigbee_zcl_attribute.h +++ /dev/null @@ -1,859 +0,0 @@ -/* Solidification of zigbee_zcl_attribute.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -// compact class 'zcl_attribute' ktab size: 43, total: 70 (saved 216 bytes) -static const bvalue be_ktab_class_zcl_attribute[43] = { - /* K0 */ be_nested_str_weak(tomap), - /* K1 */ be_nested_str_weak(cluster), - /* K2 */ be_nested_str_weak(attr_id), - /* K3 */ be_nested_str_weak(cmd), - /* K4 */ be_nested_str_weak(direction), - /* K5 */ be_nested_str_weak(key), - /* K6 */ be_nested_str_weak(val), - /* K7 */ be_nested_str_weak(_X3Cundefined_X3E), - /* K8 */ be_nested_str_weak(key_suffix), - /* K9 */ be_const_int(1), - /* K10 */ be_nested_str_weak(_X2504X_X2F_X2504X), - /* K11 */ be_nested_str_weak(_X2B), - /* K12 */ be_nested_str_weak(_X2504X_X25s_X2502X), - /* K13 */ be_nested_str_weak(_X3F), - /* K14 */ be_nested_str_weak(_X21), - /* K15 */ be_nested_str_weak(_cluster), - /* K16 */ be_nested_str_weak(_attr_id), - /* K17 */ be_nested_str_weak(_iscmd), - /* K18 */ be_const_int(0), - /* K19 */ be_nested_str_weak(_cmd), - /* K20 */ be_nested_str_weak(_direction), - /* K21 */ be_nested_str_weak(_set_val), - /* K22 */ be_nested_str_weak(_set_key), - /* K23 */ be_nested_str_weak(setmember), - /* K24 */ be_nested_str_weak(introspect), - /* K25 */ be_nested_str_weak(json), - /* K26 */ be_nested_str_weak(dump), - /* K27 */ be_nested_str_weak(key_tostring), - /* K28 */ be_nested_str_weak(_X3A), - /* K29 */ be_nested_str_weak(get), - /* K30 */ be_nested_str_weak(tojson), - /* K31 */ be_nested_str_weak(_X28_X25s_X29), - /* K32 */ be_nested_str_weak(_X2C_X25s_X3A_X22_X2504X_X2F_X2504X_X22), - /* K33 */ be_nested_str_weak(init), - /* K34 */ be_nested_str_weak(_init), - /* K35 */ be_nested_str_weak(ismapped), - /* K36 */ be_nested_str_weak(_deinit), - /* K37 */ be_nested_str_weak(cmd_general), - /* K38 */ be_nested_str_weak(_cmd_general), - /* K39 */ be_nested_str_weak(_get_val), - /* K40 */ be_nested_str_weak(tohex), - /* K41 */ be_nested_str_weak(_get_key), - /* K42 */ be_nested_str_weak(member), -}; - - -extern const bclass be_class_zcl_attribute; - -/******************************************************************** -** Solidified function: tomap -********************************************************************/ -be_local_closure(class_zcl_attribute_tomap, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_zcl_attribute, /* shared constants */ - be_str_weak(tomap), - &be_const_str_solidified, - ( &(const binstruction[18]) { /* code */ - 0x60040003, // 0000 GETGBL R1 G3 - 0x5C080000, // 0001 MOVE R2 R0 - 0x7C040200, // 0002 CALL R1 1 - 0x8C040300, // 0003 GETMET R1 R1 K0 - 0x7C040200, // 0004 CALL R1 1 - 0x88080101, // 0005 GETMBR R2 R0 K1 - 0x98060202, // 0006 SETIDX R1 K1 R2 - 0x88080102, // 0007 GETMBR R2 R0 K2 - 0x98060402, // 0008 SETIDX R1 K2 R2 - 0x88080103, // 0009 GETMBR R2 R0 K3 - 0x98060602, // 000A SETIDX R1 K3 R2 - 0x88080104, // 000B GETMBR R2 R0 K4 - 0x98060802, // 000C SETIDX R1 K4 R2 - 0x88080105, // 000D GETMBR R2 R0 K5 - 0x98060A02, // 000E SETIDX R1 K5 R2 - 0x88080106, // 000F GETMBR R2 R0 K6 - 0x98060C02, // 0010 SETIDX R1 K6 R2 - 0x80040200, // 0011 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: key_tostring -********************************************************************/ -be_local_closure(class_zcl_attribute_key_tostring, /* name */ - be_nested_proto( - 8, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_zcl_attribute, /* shared constants */ - be_str_weak(key_tostring), - &be_const_str_solidified, - ( &(const binstruction[69]) { /* code */ - 0x58040007, // 0000 LDCONST R1 K7 - 0x88080105, // 0001 GETMBR R2 R0 K5 - 0x4C0C0000, // 0002 LDNIL R3 - 0x200C0403, // 0003 NE R3 R2 R3 - 0x780E0008, // 0004 JMPF R3 #000E - 0x5C040400, // 0005 MOVE R1 R2 - 0x880C0108, // 0006 GETMBR R3 R0 K8 - 0x240C0709, // 0007 GT R3 R3 K9 - 0x780E0003, // 0008 JMPF R3 #000D - 0x600C0008, // 0009 GETGBL R3 G8 - 0x88100108, // 000A GETMBR R4 R0 K8 - 0x7C0C0200, // 000B CALL R3 1 - 0x00040203, // 000C ADD R1 R1 R3 - 0x70020035, // 000D JMP #0044 - 0x880C0101, // 000E GETMBR R3 R0 K1 - 0x4C100000, // 000F LDNIL R4 - 0x200C0604, // 0010 NE R3 R3 R4 - 0x780E0012, // 0011 JMPF R3 #0025 - 0x880C0102, // 0012 GETMBR R3 R0 K2 - 0x4C100000, // 0013 LDNIL R4 - 0x200C0604, // 0014 NE R3 R3 R4 - 0x780E000E, // 0015 JMPF R3 #0025 - 0x600C0018, // 0016 GETGBL R3 G24 - 0x5810000A, // 0017 LDCONST R4 K10 - 0x88140101, // 0018 GETMBR R5 R0 K1 - 0x88180102, // 0019 GETMBR R6 R0 K2 - 0x7C0C0600, // 001A CALL R3 3 - 0x5C040600, // 001B MOVE R1 R3 - 0x880C0108, // 001C GETMBR R3 R0 K8 - 0x240C0709, // 001D GT R3 R3 K9 - 0x780E0004, // 001E JMPF R3 #0024 - 0x600C0008, // 001F GETGBL R3 G8 - 0x88100108, // 0020 GETMBR R4 R0 K8 - 0x7C0C0200, // 0021 CALL R3 1 - 0x000E1603, // 0022 ADD R3 K11 R3 - 0x00040203, // 0023 ADD R1 R1 R3 - 0x7002001E, // 0024 JMP #0044 - 0x880C0101, // 0025 GETMBR R3 R0 K1 - 0x4C100000, // 0026 LDNIL R4 - 0x200C0604, // 0027 NE R3 R3 R4 - 0x780E001A, // 0028 JMPF R3 #0044 - 0x880C0103, // 0029 GETMBR R3 R0 K3 - 0x4C100000, // 002A LDNIL R4 - 0x200C0604, // 002B NE R3 R3 R4 - 0x780E0016, // 002C JMPF R3 #0044 - 0x880C0104, // 002D GETMBR R3 R0 K4 - 0x4C100000, // 002E LDNIL R4 - 0x200C0604, // 002F NE R3 R3 R4 - 0x780E0012, // 0030 JMPF R3 #0044 - 0x600C0018, // 0031 GETGBL R3 G24 - 0x5810000C, // 0032 LDCONST R4 K12 - 0x88140101, // 0033 GETMBR R5 R0 K1 - 0x88180104, // 0034 GETMBR R6 R0 K4 - 0x781A0001, // 0035 JMPF R6 #0038 - 0x5818000D, // 0036 LDCONST R6 K13 - 0x70020000, // 0037 JMP #0039 - 0x5818000E, // 0038 LDCONST R6 K14 - 0x881C0103, // 0039 GETMBR R7 R0 K3 - 0x7C0C0800, // 003A CALL R3 4 - 0x5C040600, // 003B MOVE R1 R3 - 0x880C0108, // 003C GETMBR R3 R0 K8 - 0x240C0709, // 003D GT R3 R3 K9 - 0x780E0004, // 003E JMPF R3 #0044 - 0x600C0008, // 003F GETGBL R3 G8 - 0x88100108, // 0040 GETMBR R4 R0 K8 - 0x7C0C0200, // 0041 CALL R3 1 - 0x000E1603, // 0042 ADD R3 K11 R3 - 0x00040203, // 0043 ADD R1 R1 R3 - 0x80040200, // 0044 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: setmember -********************************************************************/ -be_local_closure(class_zcl_attribute_setmember, /* name */ - be_nested_proto( - 7, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_zcl_attribute, /* shared constants */ - be_str_weak(setmember), - &be_const_str_solidified, - ( &(const binstruction[66]) { /* code */ - 0x1C0C0301, // 0000 EQ R3 R1 K1 - 0x780E0007, // 0001 JMPF R3 #000A - 0x4C0C0000, // 0002 LDNIL R3 - 0x1C0C0403, // 0003 EQ R3 R2 R3 - 0x780E0002, // 0004 JMPF R3 #0008 - 0x540EFFFE, // 0005 LDINT R3 65535 - 0x90021E03, // 0006 SETMBR R0 K15 R3 - 0x70020000, // 0007 JMP #0009 - 0x90021E02, // 0008 SETMBR R0 K15 R2 - 0x70020036, // 0009 JMP #0041 - 0x1C0C0302, // 000A EQ R3 R1 K2 - 0x780E0008, // 000B JMPF R3 #0015 - 0x4C0C0000, // 000C LDNIL R3 - 0x1C0C0403, // 000D EQ R3 R2 R3 - 0x780E0002, // 000E JMPF R3 #0012 - 0x540EFFFE, // 000F LDINT R3 65535 - 0x90022003, // 0010 SETMBR R0 K16 R3 - 0x70020001, // 0011 JMP #0014 - 0x90022002, // 0012 SETMBR R0 K16 R2 - 0x90022312, // 0013 SETMBR R0 K17 K18 - 0x7002002B, // 0014 JMP #0041 - 0x1C0C0303, // 0015 EQ R3 R1 K3 - 0x780E0008, // 0016 JMPF R3 #0020 - 0x4C0C0000, // 0017 LDNIL R3 - 0x1C0C0403, // 0018 EQ R3 R2 R3 - 0x780E0002, // 0019 JMPF R3 #001D - 0x540E00FE, // 001A LDINT R3 255 - 0x90022603, // 001B SETMBR R0 K19 R3 - 0x70020001, // 001C JMP #001F - 0x90022602, // 001D SETMBR R0 K19 R2 - 0x90022309, // 001E SETMBR R0 K17 K9 - 0x70020020, // 001F JMP #0041 - 0x1C0C0304, // 0020 EQ R3 R1 K4 - 0x780E000B, // 0021 JMPF R3 #002E - 0x4C0C0000, // 0022 LDNIL R3 - 0x1C0C0403, // 0023 EQ R3 R2 R3 - 0x780E0001, // 0024 JMPF R3 #0027 - 0x90022912, // 0025 SETMBR R0 K20 K18 - 0x70020005, // 0026 JMP #002D - 0x780A0001, // 0027 JMPF R2 #002A - 0x580C0009, // 0028 LDCONST R3 K9 - 0x70020000, // 0029 JMP #002B - 0x580C0012, // 002A LDCONST R3 K18 - 0x90022803, // 002B SETMBR R0 K20 R3 - 0x90022309, // 002C SETMBR R0 K17 K9 - 0x70020012, // 002D JMP #0041 - 0x1C0C0306, // 002E EQ R3 R1 K6 - 0x780E0003, // 002F JMPF R3 #0034 - 0x8C0C0115, // 0030 GETMET R3 R0 K21 - 0x5C140400, // 0031 MOVE R5 R2 - 0x7C0C0400, // 0032 CALL R3 2 - 0x7002000C, // 0033 JMP #0041 - 0x1C0C0305, // 0034 EQ R3 R1 K5 - 0x780E0003, // 0035 JMPF R3 #003A - 0x8C0C0116, // 0036 GETMET R3 R0 K22 - 0x5C140400, // 0037 MOVE R5 R2 - 0x7C0C0400, // 0038 CALL R3 2 - 0x70020006, // 0039 JMP #0041 - 0x600C0003, // 003A GETGBL R3 G3 - 0x5C100000, // 003B MOVE R4 R0 - 0x7C0C0200, // 003C CALL R3 1 - 0x8C0C0717, // 003D GETMET R3 R3 K23 - 0x5C140200, // 003E MOVE R5 R1 - 0x5C180400, // 003F MOVE R6 R2 - 0x7C0C0600, // 0040 CALL R3 3 - 0x80000000, // 0041 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: tostring -********************************************************************/ -be_local_closure(class_zcl_attribute_tostring, /* name */ - be_nested_proto( - 10, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_zcl_attribute, /* shared constants */ - be_str_weak(tostring), - &be_const_str_solidified, - ( &(const binstruction[50]) { /* code */ - 0xA4063000, // 0000 IMPORT R1 K24 - 0xA40A3200, // 0001 IMPORT R2 K25 - 0x8C0C051A, // 0002 GETMET R3 R2 K26 - 0x8C14011B, // 0003 GETMET R5 R0 K27 - 0x7C140200, // 0004 CALL R5 1 - 0x7C0C0400, // 0005 CALL R3 2 - 0x000C071C, // 0006 ADD R3 R3 K28 - 0x8C10031D, // 0007 GETMET R4 R1 K29 - 0x88180106, // 0008 GETMBR R6 R0 K6 - 0x581C001E, // 0009 LDCONST R7 K30 - 0x7C100600, // 000A CALL R4 3 - 0x4C140000, // 000B LDNIL R5 - 0x20100805, // 000C NE R4 R4 R5 - 0x78120004, // 000D JMPF R4 #0013 - 0x88100106, // 000E GETMBR R4 R0 K6 - 0x8C10091E, // 000F GETMET R4 R4 K30 - 0x7C100200, // 0010 CALL R4 1 - 0x000C0604, // 0011 ADD R3 R3 R4 - 0x70020003, // 0012 JMP #0017 - 0x8C10051A, // 0013 GETMET R4 R2 K26 - 0x88180106, // 0014 GETMBR R6 R0 K6 - 0x7C100400, // 0015 CALL R4 2 - 0x000C0604, // 0016 ADD R3 R3 R4 - 0x88100101, // 0017 GETMBR R4 R0 K1 - 0x4C140000, // 0018 LDNIL R5 - 0x20100805, // 0019 NE R4 R4 R5 - 0x78120015, // 001A JMPF R4 #0031 - 0x88100102, // 001B GETMBR R4 R0 K2 - 0x4C140000, // 001C LDNIL R5 - 0x20100805, // 001D NE R4 R4 R5 - 0x78120011, // 001E JMPF R4 #0031 - 0x88100105, // 001F GETMBR R4 R0 K5 - 0x4C140000, // 0020 LDNIL R5 - 0x20100805, // 0021 NE R4 R4 R5 - 0x7812000D, // 0022 JMPF R4 #0031 - 0x60100018, // 0023 GETGBL R4 G24 - 0x5814001F, // 0024 LDCONST R5 K31 - 0x8C18011B, // 0025 GETMET R6 R0 K27 - 0x7C180200, // 0026 CALL R6 1 - 0x7C100400, // 0027 CALL R4 2 - 0x60140018, // 0028 GETGBL R5 G24 - 0x58180020, // 0029 LDCONST R6 K32 - 0x8C1C051A, // 002A GETMET R7 R2 K26 - 0x5C240800, // 002B MOVE R9 R4 - 0x7C1C0400, // 002C CALL R7 2 - 0x88200101, // 002D GETMBR R8 R0 K1 - 0x88240102, // 002E GETMBR R9 R0 K2 - 0x7C140800, // 002F CALL R5 4 - 0x000C0605, // 0030 ADD R3 R3 R5 - 0x80040600, // 0031 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_zcl_attribute_init, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_zcl_attribute, /* shared constants */ - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x60080003, // 0000 GETGBL R2 G3 - 0x5C0C0000, // 0001 MOVE R3 R0 - 0x7C080200, // 0002 CALL R2 1 - 0x8C080521, // 0003 GETMET R2 R2 K33 - 0x5C100200, // 0004 MOVE R4 R1 - 0x7C080400, // 0005 CALL R2 2 - 0x4C080000, // 0006 LDNIL R2 - 0x1C080202, // 0007 EQ R2 R1 R2 - 0x780A0001, // 0008 JMPF R2 #000B - 0x8C080122, // 0009 GETMET R2 R0 K34 - 0x7C080200, // 000A CALL R2 1 - 0x80000000, // 000B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: deinit -********************************************************************/ -be_local_closure(class_zcl_attribute_deinit, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_zcl_attribute, /* shared constants */ - be_str_weak(deinit), - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x8C040123, // 0000 GETMET R1 R0 K35 - 0x7C040200, // 0001 CALL R1 1 - 0x74060001, // 0002 JMPT R1 #0005 - 0x8C040124, // 0003 GETMET R1 R0 K36 - 0x7C040200, // 0004 CALL R1 1 - 0x80000000, // 0005 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: member -********************************************************************/ -be_local_closure(class_zcl_attribute_member, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_zcl_attribute, /* shared constants */ - be_str_weak(member), - &be_const_str_solidified, - ( &(const binstruction[75]) { /* code */ - 0x1C080301, // 0000 EQ R2 R1 K1 - 0x780A0008, // 0001 JMPF R2 #000B - 0x8808010F, // 0002 GETMBR R2 R0 K15 - 0x540EFFFE, // 0003 LDINT R3 65535 - 0x200C0403, // 0004 NE R3 R2 R3 - 0x780E0001, // 0005 JMPF R3 #0008 - 0x5C0C0400, // 0006 MOVE R3 R2 - 0x70020000, // 0007 JMP #0009 - 0x4C0C0000, // 0008 LDNIL R3 - 0x80040600, // 0009 RET 1 R3 - 0x7002003E, // 000A JMP #004A - 0x1C080302, // 000B EQ R2 R1 K2 - 0x780A000A, // 000C JMPF R2 #0018 - 0x88080110, // 000D GETMBR R2 R0 K16 - 0x540EFFFE, // 000E LDINT R3 65535 - 0x200C0403, // 000F NE R3 R2 R3 - 0x780E0003, // 0010 JMPF R3 #0015 - 0x880C0111, // 0011 GETMBR R3 R0 K17 - 0x740E0001, // 0012 JMPT R3 #0015 - 0x5C0C0400, // 0013 MOVE R3 R2 - 0x70020000, // 0014 JMP #0016 - 0x4C0C0000, // 0015 LDNIL R3 - 0x80040600, // 0016 RET 1 R3 - 0x70020031, // 0017 JMP #004A - 0x1C080303, // 0018 EQ R2 R1 K3 - 0x780A000A, // 0019 JMPF R2 #0025 - 0x88080113, // 001A GETMBR R2 R0 K19 - 0x540E00FE, // 001B LDINT R3 255 - 0x200C0403, // 001C NE R3 R2 R3 - 0x780E0003, // 001D JMPF R3 #0022 - 0x880C0111, // 001E GETMBR R3 R0 K17 - 0x780E0001, // 001F JMPF R3 #0022 - 0x5C0C0400, // 0020 MOVE R3 R2 - 0x70020000, // 0021 JMP #0023 - 0x4C0C0000, // 0022 LDNIL R3 - 0x80040600, // 0023 RET 1 R3 - 0x70020024, // 0024 JMP #004A - 0x1C080304, // 0025 EQ R2 R1 K4 - 0x780A0002, // 0026 JMPF R2 #002A - 0x88080114, // 0027 GETMBR R2 R0 K20 - 0x80040400, // 0028 RET 1 R2 - 0x7002001F, // 0029 JMP #004A - 0x1C080325, // 002A EQ R2 R1 K37 - 0x780A0002, // 002B JMPF R2 #002F - 0x88080126, // 002C GETMBR R2 R0 K38 - 0x80040400, // 002D RET 1 R2 - 0x7002001A, // 002E JMP #004A - 0x1C080306, // 002F EQ R2 R1 K6 - 0x780A000B, // 0030 JMPF R2 #003D - 0x8C080127, // 0031 GETMET R2 R0 K39 - 0x7C080200, // 0032 CALL R2 1 - 0x600C000F, // 0033 GETGBL R3 G15 - 0x5C100400, // 0034 MOVE R4 R2 - 0x60140015, // 0035 GETGBL R5 G21 - 0x7C0C0400, // 0036 CALL R3 2 - 0x780E0002, // 0037 JMPF R3 #003B - 0x8C0C0528, // 0038 GETMET R3 R2 K40 - 0x7C0C0200, // 0039 CALL R3 1 - 0x5C080600, // 003A MOVE R2 R3 - 0x80040400, // 003B RET 1 R2 - 0x7002000C, // 003C JMP #004A - 0x1C080305, // 003D EQ R2 R1 K5 - 0x780A0003, // 003E JMPF R2 #0043 - 0x8C080129, // 003F GETMET R2 R0 K41 - 0x7C080200, // 0040 CALL R2 1 - 0x80040400, // 0041 RET 1 R2 - 0x70020006, // 0042 JMP #004A - 0x60080003, // 0043 GETGBL R2 G3 - 0x5C0C0000, // 0044 MOVE R3 R0 - 0x7C080200, // 0045 CALL R2 1 - 0x8C08052A, // 0046 GETMET R2 R2 K42 - 0x5C100200, // 0047 MOVE R4 R1 - 0x7C080400, // 0048 CALL R2 2 - 0x80040400, // 0049 RET 1 R2 - 0x80000000, // 004A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: zcl_attribute -********************************************************************/ -extern const bclass be_class_zcl_attribute_ntv; -be_local_class(zcl_attribute, - 0, - &be_class_zcl_attribute_ntv, - be_nested_map(7, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(tomap, -1), be_const_closure(class_zcl_attribute_tomap_closure) }, - { be_const_key_weak(key_tostring, -1), be_const_closure(class_zcl_attribute_key_tostring_closure) }, - { be_const_key_weak(init, -1), be_const_closure(class_zcl_attribute_init_closure) }, - { be_const_key_weak(tostring, -1), be_const_closure(class_zcl_attribute_tostring_closure) }, - { be_const_key_weak(deinit, 2), be_const_closure(class_zcl_attribute_deinit_closure) }, - { be_const_key_weak(setmember, 4), be_const_closure(class_zcl_attribute_setmember_closure) }, - { be_const_key_weak(member, -1), be_const_closure(class_zcl_attribute_member_closure) }, - })), - be_str_weak(zcl_attribute) -); -// compact class 'zcl_attribute_list' ktab size: 27, total: 36 (saved 72 bytes) -static const bvalue be_ktab_class_zcl_attribute_list[27] = { - /* K0 */ be_nested_str_weak(groupaddr), - /* K1 */ be_nested_str_weak(_groupaddr), - /* K2 */ be_nested_str_weak(src_ep), - /* K3 */ be_nested_str_weak(_src_ep), - /* K4 */ be_nested_str_weak(lqi), - /* K5 */ be_nested_str_weak(_lqi), - /* K6 */ be_nested_str_weak(member), - /* K7 */ be_nested_str_weak(setmember), - /* K8 */ be_nested_str_weak(init), - /* K9 */ be_nested_str_weak(_init), - /* K10 */ be_nested_str_weak(ismapped), - /* K11 */ be_nested_str_weak(_deinit), - /* K12 */ be_nested_str_weak(json), - /* K13 */ be_nested_str_weak(shortaddr), - /* K14 */ be_nested_str_weak(push), - /* K15 */ be_nested_str_weak(_X22Device_X22_X3A_X220x_X2504X_X22), - /* K16 */ be_nested_str_weak(_X22Group_X22_X3A_X220x_X2504X_X22), - /* K17 */ be_const_int(0), - /* K18 */ be_nested_str_weak(size), - /* K19 */ be_nested_str_weak(tostring), - /* K20 */ be_const_int(1), - /* K21 */ be_nested_str_weak(_X22Endpoint_X22_X3A_X25s), - /* K22 */ be_nested_str_weak(_X22LinkQuality_X22_X3A_X25s), - /* K23 */ be_nested_str_weak(_X7B), - /* K24 */ be_nested_str_weak(concat), - /* K25 */ be_nested_str_weak(_X2C), - /* K26 */ be_nested_str_weak(_X7D), -}; - - -extern const bclass be_class_zcl_attribute_list; - -/******************************************************************** -** Solidified function: member -********************************************************************/ -be_local_closure(class_zcl_attribute_list_member, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_zcl_attribute_list, /* shared constants */ - be_str_weak(member), - &be_const_str_solidified, - ( &(const binstruction[41]) { /* code */ - 0x1C080300, // 0000 EQ R2 R1 K0 - 0x780A0008, // 0001 JMPF R2 #000B - 0x88080101, // 0002 GETMBR R2 R0 K1 - 0x540EFFFE, // 0003 LDINT R3 65535 - 0x200C0403, // 0004 NE R3 R2 R3 - 0x780E0001, // 0005 JMPF R3 #0008 - 0x5C0C0400, // 0006 MOVE R3 R2 - 0x70020000, // 0007 JMP #0009 - 0x4C0C0000, // 0008 LDNIL R3 - 0x80040600, // 0009 RET 1 R3 - 0x7002001C, // 000A JMP #0028 - 0x1C080302, // 000B EQ R2 R1 K2 - 0x780A0008, // 000C JMPF R2 #0016 - 0x88080103, // 000D GETMBR R2 R0 K3 - 0x540E00FE, // 000E LDINT R3 255 - 0x200C0403, // 000F NE R3 R2 R3 - 0x780E0001, // 0010 JMPF R3 #0013 - 0x5C0C0400, // 0011 MOVE R3 R2 - 0x70020000, // 0012 JMP #0014 - 0x4C0C0000, // 0013 LDNIL R3 - 0x80040600, // 0014 RET 1 R3 - 0x70020011, // 0015 JMP #0028 - 0x1C080304, // 0016 EQ R2 R1 K4 - 0x780A0008, // 0017 JMPF R2 #0021 - 0x88080105, // 0018 GETMBR R2 R0 K5 - 0x540E00FE, // 0019 LDINT R3 255 - 0x200C0403, // 001A NE R3 R2 R3 - 0x780E0001, // 001B JMPF R3 #001E - 0x5C0C0400, // 001C MOVE R3 R2 - 0x70020000, // 001D JMP #001F - 0x4C0C0000, // 001E LDNIL R3 - 0x80040600, // 001F RET 1 R3 - 0x70020006, // 0020 JMP #0028 - 0x60080003, // 0021 GETGBL R2 G3 - 0x5C0C0000, // 0022 MOVE R3 R0 - 0x7C080200, // 0023 CALL R2 1 - 0x8C080506, // 0024 GETMET R2 R2 K6 - 0x5C100200, // 0025 MOVE R4 R1 - 0x7C080400, // 0026 CALL R2 2 - 0x80040400, // 0027 RET 1 R2 - 0x80000000, // 0028 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: setmember -********************************************************************/ -be_local_closure(class_zcl_attribute_list_setmember, /* name */ - be_nested_proto( - 7, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_zcl_attribute_list, /* shared constants */ - be_str_weak(setmember), - &be_const_str_solidified, - ( &(const binstruction[38]) { /* code */ - 0x1C0C0300, // 0000 EQ R3 R1 K0 - 0x780E0007, // 0001 JMPF R3 #000A - 0x4C0C0000, // 0002 LDNIL R3 - 0x200C0403, // 0003 NE R3 R2 R3 - 0x780E0001, // 0004 JMPF R3 #0007 - 0x5C0C0400, // 0005 MOVE R3 R2 - 0x70020000, // 0006 JMP #0008 - 0x540EFFFE, // 0007 LDINT R3 65535 - 0x90020203, // 0008 SETMBR R0 K1 R3 - 0x7002001A, // 0009 JMP #0025 - 0x1C0C0302, // 000A EQ R3 R1 K2 - 0x780E0007, // 000B JMPF R3 #0014 - 0x4C0C0000, // 000C LDNIL R3 - 0x200C0403, // 000D NE R3 R2 R3 - 0x780E0001, // 000E JMPF R3 #0011 - 0x5C0C0400, // 000F MOVE R3 R2 - 0x70020000, // 0010 JMP #0012 - 0x540E00FE, // 0011 LDINT R3 255 - 0x90020603, // 0012 SETMBR R0 K3 R3 - 0x70020010, // 0013 JMP #0025 - 0x1C0C0304, // 0014 EQ R3 R1 K4 - 0x780E0007, // 0015 JMPF R3 #001E - 0x4C0C0000, // 0016 LDNIL R3 - 0x200C0403, // 0017 NE R3 R2 R3 - 0x780E0001, // 0018 JMPF R3 #001B - 0x5C0C0400, // 0019 MOVE R3 R2 - 0x70020000, // 001A JMP #001C - 0x540E00FE, // 001B LDINT R3 255 - 0x90020A03, // 001C SETMBR R0 K5 R3 - 0x70020006, // 001D JMP #0025 - 0x600C0003, // 001E GETGBL R3 G3 - 0x5C100000, // 001F MOVE R4 R0 - 0x7C0C0200, // 0020 CALL R3 1 - 0x8C0C0707, // 0021 GETMET R3 R3 K7 - 0x5C140200, // 0022 MOVE R5 R1 - 0x5C180400, // 0023 MOVE R6 R2 - 0x7C0C0600, // 0024 CALL R3 3 - 0x80000000, // 0025 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_zcl_attribute_list_init, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_zcl_attribute_list, /* shared constants */ - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x60080003, // 0000 GETGBL R2 G3 - 0x5C0C0000, // 0001 MOVE R3 R0 - 0x7C080200, // 0002 CALL R2 1 - 0x8C080508, // 0003 GETMET R2 R2 K8 - 0x5C100200, // 0004 MOVE R4 R1 - 0x7C080400, // 0005 CALL R2 2 - 0x4C080000, // 0006 LDNIL R2 - 0x1C080202, // 0007 EQ R2 R1 R2 - 0x780A0001, // 0008 JMPF R2 #000B - 0x8C080109, // 0009 GETMET R2 R0 K9 - 0x7C080200, // 000A CALL R2 1 - 0x80000000, // 000B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: deinit -********************************************************************/ -be_local_closure(class_zcl_attribute_list_deinit, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_zcl_attribute_list, /* shared constants */ - be_str_weak(deinit), - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x8C04010A, // 0000 GETMET R1 R0 K10 - 0x7C040200, // 0001 CALL R1 1 - 0x74060001, // 0002 JMPT R1 #0005 - 0x8C04010B, // 0003 GETMET R1 R0 K11 - 0x7C040200, // 0004 CALL R1 1 - 0x80000000, // 0005 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: tostring -********************************************************************/ -be_local_closure(class_zcl_attribute_list_tostring, /* name */ - be_nested_proto( - 11, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_zcl_attribute_list, /* shared constants */ - be_str_weak(tostring), - &be_const_str_solidified, - ( &(const binstruction[62]) { /* code */ - 0xA4061800, // 0000 IMPORT R1 K12 - 0x60080012, // 0001 GETGBL R2 G18 - 0x7C080000, // 0002 CALL R2 0 - 0x4C0C0000, // 0003 LDNIL R3 - 0x880C010D, // 0004 GETMBR R3 R0 K13 - 0x4C100000, // 0005 LDNIL R4 - 0x20100604, // 0006 NE R4 R3 R4 - 0x78120005, // 0007 JMPF R4 #000E - 0x8C10050E, // 0008 GETMET R4 R2 K14 - 0x60180018, // 0009 GETGBL R6 G24 - 0x581C000F, // 000A LDCONST R7 K15 - 0x5C200600, // 000B MOVE R8 R3 - 0x7C180400, // 000C CALL R6 2 - 0x7C100400, // 000D CALL R4 2 - 0x880C0100, // 000E GETMBR R3 R0 K0 - 0x4C100000, // 000F LDNIL R4 - 0x20100604, // 0010 NE R4 R3 R4 - 0x78120005, // 0011 JMPF R4 #0018 - 0x8C10050E, // 0012 GETMET R4 R2 K14 - 0x60180018, // 0013 GETGBL R6 G24 - 0x581C0010, // 0014 LDCONST R7 K16 - 0x5C200600, // 0015 MOVE R8 R3 - 0x7C180400, // 0016 CALL R6 2 - 0x7C100400, // 0017 CALL R4 2 - 0x58100011, // 0018 LDCONST R4 K17 - 0x8C140112, // 0019 GETMET R5 R0 K18 - 0x7C140200, // 001A CALL R5 1 - 0x14180805, // 001B LT R6 R4 R5 - 0x781A0006, // 001C JMPF R6 #0024 - 0x8C18050E, // 001D GETMET R6 R2 K14 - 0x94200004, // 001E GETIDX R8 R0 R4 - 0x8C201113, // 001F GETMET R8 R8 K19 - 0x7C200200, // 0020 CALL R8 1 - 0x7C180400, // 0021 CALL R6 2 - 0x00100914, // 0022 ADD R4 R4 K20 - 0x7001FFF6, // 0023 JMP #001B - 0x880C0102, // 0024 GETMBR R3 R0 K2 - 0x4C180000, // 0025 LDNIL R6 - 0x20180606, // 0026 NE R6 R3 R6 - 0x781A0005, // 0027 JMPF R6 #002E - 0x8C18050E, // 0028 GETMET R6 R2 K14 - 0x60200018, // 0029 GETGBL R8 G24 - 0x58240015, // 002A LDCONST R9 K21 - 0x5C280600, // 002B MOVE R10 R3 - 0x7C200400, // 002C CALL R8 2 - 0x7C180400, // 002D CALL R6 2 - 0x880C0104, // 002E GETMBR R3 R0 K4 - 0x4C180000, // 002F LDNIL R6 - 0x20180606, // 0030 NE R6 R3 R6 - 0x781A0005, // 0031 JMPF R6 #0038 - 0x8C18050E, // 0032 GETMET R6 R2 K14 - 0x60200018, // 0033 GETGBL R8 G24 - 0x58240016, // 0034 LDCONST R9 K22 - 0x5C280600, // 0035 MOVE R10 R3 - 0x7C200400, // 0036 CALL R8 2 - 0x7C180400, // 0037 CALL R6 2 - 0x8C180518, // 0038 GETMET R6 R2 K24 - 0x58200019, // 0039 LDCONST R8 K25 - 0x7C180400, // 003A CALL R6 2 - 0x001A2E06, // 003B ADD R6 K23 R6 - 0x00180D1A, // 003C ADD R6 R6 K26 - 0x80040C00, // 003D RET 1 R6 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: zcl_attribute_list -********************************************************************/ -extern const bclass be_class_zcl_attribute_list_ntv; -be_local_class(zcl_attribute_list, - 1, - &be_class_zcl_attribute_list_ntv, - be_nested_map(6, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(shortaddr, -1), be_const_var(0) }, - { be_const_key_weak(member, 2), be_const_closure(class_zcl_attribute_list_member_closure) }, - { be_const_key_weak(tostring, 5), be_const_closure(class_zcl_attribute_list_tostring_closure) }, - { be_const_key_weak(init, -1), be_const_closure(class_zcl_attribute_list_init_closure) }, - { be_const_key_weak(deinit, -1), be_const_closure(class_zcl_attribute_list_deinit_closure) }, - { be_const_key_weak(setmember, -1), be_const_closure(class_zcl_attribute_list_setmember_closure) }, - })), - be_str_weak(zcl_attribute_list) -); -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_zigbee_zcl_frame.h b/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_zigbee_zcl_frame.h deleted file mode 100644 index a6d64dc00..000000000 --- a/lib/libesp32/berry_tasmota/src/solidify/berry_tasmota/solidified_zigbee_zcl_frame.h +++ /dev/null @@ -1,220 +0,0 @@ -/* Solidification of zigbee_zcl_frame.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" -// compact class 'zcl_frame' ktab size: 12, total: 16 (saved 32 bytes) -static const bvalue be_ktab_class_zcl_frame[12] = { - /* K0 */ be_nested_str_weak(payload), - /* K1 */ be_nested_str_weak(_get_bytes), - /* K2 */ be_nested_str_weak(payload_ptr), - /* K3 */ be_nested_str_weak(member), - /* K4 */ be_nested_str_weak(_set_bytes), - /* K5 */ be_nested_str_weak(setmember), - /* K6 */ be_nested_str_weak(init), - /* K7 */ be_nested_str_weak(no_bytes), - /* K8 */ be_nested_str_weak(tomap), - /* K9 */ be_nested_str_weak(shortaddr_hex), - /* K10 */ be_nested_str_weak(0x_X2504X), - /* K11 */ be_nested_str_weak(shortaddr), -}; - - -extern const bclass be_class_zcl_frame; - -/******************************************************************** -** Solidified function: member -********************************************************************/ -be_local_closure(class_zcl_frame_member, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_zcl_frame, /* shared constants */ - be_str_weak(member), - &be_const_str_solidified, - ( &(const binstruction[15]) { /* code */ - 0x1C080300, // 0000 EQ R2 R1 K0 - 0x780A0004, // 0001 JMPF R2 #0007 - 0x8C080101, // 0002 GETMET R2 R0 K1 - 0x88100102, // 0003 GETMBR R4 R0 K2 - 0x7C080400, // 0004 CALL R2 2 - 0x80040400, // 0005 RET 1 R2 - 0x70020006, // 0006 JMP #000E - 0x60080003, // 0007 GETGBL R2 G3 - 0x5C0C0000, // 0008 MOVE R3 R0 - 0x7C080200, // 0009 CALL R2 1 - 0x8C080503, // 000A GETMET R2 R2 K3 - 0x5C100200, // 000B MOVE R4 R1 - 0x7C080400, // 000C CALL R2 2 - 0x80040400, // 000D RET 1 R2 - 0x80000000, // 000E RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: setmember -********************************************************************/ -be_local_closure(class_zcl_frame_setmember, /* name */ - be_nested_proto( - 7, /* nstack */ - 3, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_zcl_frame, /* shared constants */ - be_str_weak(setmember), - &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0x1C0C0300, // 0000 EQ R3 R1 K0 - 0x780E0005, // 0001 JMPF R3 #0008 - 0x8C0C0104, // 0002 GETMET R3 R0 K4 - 0x88140102, // 0003 GETMBR R5 R0 K2 - 0x5C180400, // 0004 MOVE R6 R2 - 0x7C0C0600, // 0005 CALL R3 3 - 0x80040600, // 0006 RET 1 R3 - 0x70020007, // 0007 JMP #0010 - 0x600C0003, // 0008 GETGBL R3 G3 - 0x5C100000, // 0009 MOVE R4 R0 - 0x7C0C0200, // 000A CALL R3 1 - 0x8C0C0705, // 000B GETMET R3 R3 K5 - 0x5C140200, // 000C MOVE R5 R1 - 0x5C180400, // 000D MOVE R6 R2 - 0x7C0C0600, // 000E CALL R3 3 - 0x80040600, // 000F RET 1 R3 - 0x80000000, // 0010 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(class_zcl_frame_init, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_zcl_frame, /* shared constants */ - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0x60080003, // 0000 GETGBL R2 G3 - 0x5C0C0000, // 0001 MOVE R3 R0 - 0x7C080200, // 0002 CALL R2 1 - 0x8C080506, // 0003 GETMET R2 R2 K6 - 0x5C100200, // 0004 MOVE R4 R1 - 0x7C080400, // 0005 CALL R2 2 - 0x60080015, // 0006 GETGBL R2 G21 - 0x7C080000, // 0007 CALL R2 0 - 0x90020E02, // 0008 SETMBR R0 K7 R2 - 0x80000000, // 0009 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: tomap -********************************************************************/ -be_local_closure(class_zcl_frame_tomap, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_zcl_frame, /* shared constants */ - be_str_weak(tomap), - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0x60040003, // 0000 GETGBL R1 G3 - 0x5C080000, // 0001 MOVE R2 R0 - 0x7C040200, // 0002 CALL R1 1 - 0x8C040308, // 0003 GETMET R1 R1 K8 - 0x7C040200, // 0004 CALL R1 1 - 0x60080018, // 0005 GETGBL R2 G24 - 0x580C000A, // 0006 LDCONST R3 K10 - 0x8810010B, // 0007 GETMBR R4 R0 K11 - 0x7C080400, // 0008 CALL R2 2 - 0x98061202, // 0009 SETIDX R1 K9 R2 - 0x88080100, // 000A GETMBR R2 R0 K0 - 0x98060002, // 000B SETIDX R1 K0 R2 - 0x80040200, // 000C RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: tostring -********************************************************************/ -be_local_closure(class_zcl_frame_tostring, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 10, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - &be_ktab_class_zcl_frame, /* shared constants */ - be_str_weak(tostring), - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x8C040108, // 0000 GETMET R1 R0 K8 - 0x7C040200, // 0001 CALL R1 1 - 0x60080008, // 0002 GETGBL R2 G8 - 0x5C0C0200, // 0003 MOVE R3 R1 - 0x7C080200, // 0004 CALL R2 1 - 0x80040400, // 0005 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: zcl_frame -********************************************************************/ -extern const bclass be_class_zcl_frame_ntv; -be_local_class(zcl_frame, - 1, - &be_class_zcl_frame_ntv, - be_nested_map(6, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(no_bytes, -1), be_const_var(0) }, - { be_const_key_weak(member, 2), be_const_closure(class_zcl_frame_member_closure) }, - { be_const_key_weak(tostring, 5), be_const_closure(class_zcl_frame_tostring_closure) }, - { be_const_key_weak(init, -1), be_const_closure(class_zcl_frame_init_closure) }, - { be_const_key_weak(tomap, -1), be_const_closure(class_zcl_frame_tomap_closure) }, - { be_const_key_weak(setmember, -1), be_const_closure(class_zcl_frame_setmember_closure) }, - })), - be_str_weak(zcl_frame) -); -/********************************************************************/ -/* End of solidification */