From f59c1675ebf9ec70bbc03ccfac6b368c4ebe7c47 Mon Sep 17 00:00:00 2001 From: s-hadinger Date: Sat, 21 Dec 2024 17:37:36 +0000 Subject: [PATCH] Solidified Code updated --- .../src/solidify/solidified_leds.h | 1114 +++++++++++------ 1 file changed, 700 insertions(+), 414 deletions(-) diff --git a/lib/libesp32/berry_tasmota/src/solidify/solidified_leds.h b/lib/libesp32/berry_tasmota/src/solidify/solidified_leds.h index 2e476a976..9e992fe4b 100644 --- a/lib/libesp32/berry_tasmota/src/solidify/solidified_leds.h +++ b/lib/libesp32/berry_tasmota/src/solidify/solidified_leds.h @@ -468,228 +468,45 @@ be_local_class(Leds_segment, })), (bstring*) &be_const_str_Leds_segment ); -// compact class 'Leds_matrix' ktab size: 24, total: 62 (saved 304 bytes) -static const bvalue be_ktab_class_Leds_matrix[24] = { +// 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(bri), - /* K2 */ be_nested_str(call_native), - /* K3 */ be_nested_str(to_gamma), - /* K4 */ be_nested_str(offset), - /* K5 */ be_nested_str(w), - /* K6 */ be_nested_str(h), - /* K7 */ be_const_int(0), - /* K8 */ be_nested_str(leds), - /* K9 */ be_nested_str(show), - /* K10 */ be_nested_str(pix_buffer), - /* K11 */ be_nested_str(pixels_buffer), - /* K12 */ be_nested_str(pix_size), - /* K13 */ be_nested_str(alternate), - /* K14 */ be_nested_str(pixel_size), - /* K15 */ be_nested_str(set_pixel_color), - /* K16 */ be_nested_str(dirty), - /* K17 */ be_const_int(1), - /* K18 */ be_nested_str(is_dirty), - /* K19 */ be_nested_str(can_show), - /* K20 */ be_nested_str(setbytes), - /* K21 */ be_nested_str(get_pixel_color), - /* K22 */ be_nested_str(offseta), + /* 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: clear_to +** Solidified function: is_dirty ********************************************************************/ -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 - 0x88080701, // 0004 GETMBR R2 R3 K1 - 0x880C0100, // 0005 GETMBR R3 R0 K0 - 0x8C0C0702, // 0006 GETMET R3 R3 K2 - 0x54160008, // 0007 LDINT R5 9 - 0x88180100, // 0008 GETMBR R6 R0 K0 - 0x8C180D03, // 0009 GETMET R6 R6 K3 - 0x5C200200, // 000A MOVE R8 R1 - 0x5C240400, // 000B MOVE R9 R2 - 0x7C180600, // 000C CALL R6 3 - 0x881C0104, // 000D GETMBR R7 R0 K4 - 0x88200105, // 000E GETMBR R8 R0 K5 - 0x88240106, // 000F GETMBR R9 R0 K6 - 0x08201009, // 0010 MUL R8 R8 R9 - 0x7C0C0A00, // 0011 CALL R3 5 - 0x80000000, // 0012 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 - 0x88080104, // 0004 GETMBR R2 R0 K4 - 0x1C080507, // 0005 EQ R2 R2 K7 - 0x780A000E, // 0006 JMPF R2 #0016 - 0x88080105, // 0007 GETMBR R2 R0 K5 - 0x880C0106, // 0008 GETMBR R3 R0 K6 - 0x08080403, // 0009 MUL R2 R2 R3 - 0x880C0100, // 000A GETMBR R3 R0 K0 - 0x880C0708, // 000B GETMBR R3 R3 K8 - 0x1C080403, // 000C EQ R2 R2 R3 - 0x780A0007, // 000D JMPF R2 #0016 - 0x88080100, // 000E GETMBR R2 R0 K0 - 0x8C080509, // 000F GETMET R2 R2 K9 - 0x7C080200, // 0010 CALL R2 1 - 0x88080100, // 0011 GETMBR R2 R0 K0 - 0x8C08050B, // 0012 GETMET R2 R2 K11 - 0x8810010A, // 0013 GETMBR R4 R0 K10 - 0x7C080400, // 0014 CALL R2 2 - 0x90021402, // 0015 SETMBR R0 K10 R2 - 0x80000000, // 0016 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** 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 */ - 0x8804010C, // 0000 GETMBR R1 R0 K12 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** 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 - 0x90020804, // 0001 SETMBR R0 K4 R4 - 0x90020C03, // 0002 SETMBR R0 K6 R3 - 0x90020A02, // 0003 SETMBR R0 K5 R2 - 0x50140000, // 0004 LDBOOL R5 0 0 - 0x90021A05, // 0005 SETMBR R0 K13 R5 - 0x88140100, // 0006 GETMBR R5 R0 K0 - 0x8C140B0B, // 0007 GETMET R5 R5 K11 - 0x7C140200, // 0008 CALL R5 1 - 0x90021405, // 0009 SETMBR R0 K10 R5 - 0x88140100, // 000A GETMBR R5 R0 K0 - 0x8C140B0E, // 000B GETMET R5 R5 K14 - 0x7C140200, // 000C CALL R5 1 - 0x90021805, // 000D SETMBR R0 K12 R5 - 0x80000000, // 000E RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** 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 - 0x880C0901, // 0004 GETMBR R3 R4 K1 - 0x88100100, // 0005 GETMBR R4 R0 K0 - 0x8C10090F, // 0006 GETMET R4 R4 K15 - 0x88180104, // 0007 GETMBR R6 R0 K4 - 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_local_closure(class_Leds_matrix_is_dirty, /* name */ be_nested_proto( 3, /* nstack */ 1, /* argc */ @@ -700,11 +517,11 @@ be_local_closure(class_Leds_matrix_pixels_buffer, /* name */ NULL, /* no sub protos */ 1, /* has constants */ &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_pixels_buffer, + &be_const_str_is_dirty, &be_const_str_solidified, ( &(const binstruction[ 4]) { /* code */ 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C04030B, // 0001 GETMET R1 R1 K11 + 0x8C040301, // 0001 GETMET R1 R1 K1 0x7C040200, // 0002 CALL R1 1 0x80040200, // 0003 RET 1 R1 }) @@ -731,7 +548,7 @@ be_local_closure(class_Leds_matrix_dirty, /* name */ &be_const_str_solidified, ( &(const binstruction[ 4]) { /* code */ 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040310, // 0001 GETMET R1 R1 K16 + 0x8C040302, // 0001 GETMET R1 R1 K2 0x7C040200, // 0002 CALL R1 1 0x80000000, // 0003 RET 0 }) @@ -761,31 +578,31 @@ be_local_closure(class_Leds_matrix_set_matrix_pixel_color, /* name */ 0x1C140805, // 0001 EQ R5 R4 R5 0x78160001, // 0002 JMPF R5 #0005 0x88140100, // 0003 GETMBR R5 R0 K0 - 0x88100B01, // 0004 GETMBR R4 R5 K1 - 0x8814010D, // 0005 GETMBR R5 R0 K13 + 0x88100B03, // 0004 GETMBR R4 R5 K3 + 0x88140104, // 0005 GETMBR R5 R0 K4 0x7816000F, // 0006 JMPF R5 #0017 - 0x2C140511, // 0007 AND R5 R2 K17 + 0x2C140505, // 0007 AND R5 R2 K5 0x7816000D, // 0008 JMPF R5 #0017 0x88140100, // 0009 GETMBR R5 R0 K0 - 0x8C140B0F, // 000A GETMET R5 R5 K15 - 0x881C0105, // 000B GETMBR R7 R0 K5 + 0x8C140B06, // 000A GETMET R5 R5 K6 + 0x881C0107, // 000B GETMBR R7 R0 K7 0x081C0207, // 000C MUL R7 R1 R7 - 0x88200106, // 000D GETMBR R8 R0 K6 + 0x88200108, // 000D GETMBR R8 R0 K8 0x001C0E08, // 000E ADD R7 R7 R8 0x041C0E02, // 000F SUB R7 R7 R2 - 0x041C0F11, // 0010 SUB R7 R7 K17 - 0x88200104, // 0011 GETMBR R8 R0 K4 + 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 - 0x8C140B0F, // 0018 GETMET R5 R5 K15 - 0x881C0105, // 0019 GETMBR R7 R0 K5 + 0x8C140B06, // 0018 GETMET R5 R5 K6 + 0x881C0107, // 0019 GETMBR R7 R0 K7 0x081C0207, // 001A MUL R7 R1 R7 0x001C0E02, // 001B ADD R7 R7 R2 - 0x88200104, // 001C GETMBR R8 R0 K4 + 0x88200109, // 001C GETMBR R8 R0 K9 0x001C0E08, // 001D ADD R7 R7 R8 0x5C200600, // 001E MOVE R8 R3 0x5C240800, // 001F MOVE R9 R4 @@ -798,9 +615,9 @@ be_local_closure(class_Leds_matrix_set_matrix_pixel_color, /* name */ /******************************************************************** -** Solidified function: is_dirty +** Solidified function: can_show ********************************************************************/ -be_local_closure(class_Leds_matrix_is_dirty, /* name */ +be_local_closure(class_Leds_matrix_can_show, /* name */ be_nested_proto( 3, /* nstack */ 1, /* argc */ @@ -811,11 +628,11 @@ be_local_closure(class_Leds_matrix_is_dirty, /* name */ NULL, /* no sub protos */ 1, /* has constants */ &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_is_dirty, + &be_const_str_can_show, &be_const_str_solidified, ( &(const binstruction[ 4]) { /* code */ 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040312, // 0001 GETMET R1 R1 K18 + 0x8C04030A, // 0001 GETMET R1 R1 K10 0x7C040200, // 0002 CALL R1 1 0x80040200, // 0003 RET 1 R1 }) @@ -825,11 +642,51 @@ be_local_closure(class_Leds_matrix_is_dirty, /* name */ /******************************************************************** -** Solidified function: set_alternate +** Solidified function: set_bytes ********************************************************************/ -be_local_closure(class_Leds_matrix_set_alternate, /* name */ +be_local_closure(class_Leds_matrix_set_bytes, /* name */ be_nested_proto( - 2, /* nstack */ + 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 */ @@ -838,11 +695,178 @@ be_local_closure(class_Leds_matrix_set_alternate, /* name */ NULL, /* no sub protos */ 1, /* has constants */ &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_set_alternate, + &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 */ - 0x90021A01, // 0000 SETMBR R0 K13 R1 - 0x80000000, // 0001 RET 0 + 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 }) ) ); @@ -874,155 +898,11 @@ be_local_closure(class_Leds_matrix_begin, /* name */ /******************************************************************** -** Solidified function: pixel_count +** Solidified function: set_alternate ********************************************************************/ -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 */ - 0x88040105, // 0000 GETMBR R1 R0 K5 - 0x88080106, // 0001 GETMBR R2 R0 K6 - 0x08040202, // 0002 MUL R1 R1 R2 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_alternate -********************************************************************/ -be_local_closure(class_Leds_matrix_get_alternate, /* name */ +be_local_closure(class_Leds_matrix_set_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 */ - 0x8804010D, // 0000 GETMBR R1 R0 K13 - 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 */ - 0x88040104, // 0000 GETMBR R1 R0 K4 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** 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 - 0x8C040313, // 0001 GETMET R1 R1 K19 - 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 */ - 0x88140106, // 0000 GETMBR R5 R0 K6 - 0x8818010C, // 0001 GETMBR R6 R0 K12 - 0x08140A06, // 0002 MUL R5 R5 R6 - 0x24180805, // 0003 GT R6 R4 R5 - 0x781A0000, // 0004 JMPF R6 #0006 - 0x5C100A00, // 0005 MOVE R4 R5 - 0x88180104, // 0006 GETMBR R6 R0 K4 - 0x00180C01, // 0007 ADD R6 R6 R1 - 0x08180C05, // 0008 MUL R6 R6 R5 - 0x881C010A, // 0009 GETMBR R7 R0 K10 - 0x8C1C0F14, // 000A GETMET R7 R7 K20 - 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: 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 */ @@ -1031,15 +911,49 @@ be_local_closure(class_Leds_matrix_get_pixel_color, /* name */ NULL, /* no sub protos */ 1, /* has constants */ &be_ktab_class_Leds_matrix, /* shared constants */ - &be_const_str_get_pixel_color, + &be_const_str_set_alternate, &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080515, // 0001 GETMET R2 R2 K21 - 0x88100116, // 0002 GETMBR R4 R0 K22 - 0x00100204, // 0003 ADD R4 R1 R4 - 0x7C080400, // 0004 CALL R2 2 - 0x80040400, // 0005 RET 1 R2 + ( &(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 }) ) ); @@ -1064,9 +978,9 @@ be_local_closure(class_Leds_matrix_clear, /* name */ &be_const_str_solidified, ( &(const binstruction[ 6]) { /* code */ 0x8C040117, // 0000 GETMET R1 R0 K23 - 0x580C0007, // 0001 LDCONST R3 K7 + 0x580C000E, // 0001 LDCONST R3 K14 0x7C040400, // 0002 CALL R1 2 - 0x8C040109, // 0003 GETMET R1 R0 K9 + 0x8C040110, // 0003 GETMET R1 R0 K16 0x7C040200, // 0004 CALL R1 1 0x80000000, // 0005 RET 0 }) @@ -1075,39 +989,411 @@ be_local_closure(class_Leds_matrix_clear, /* name */ /*******************************************************************/ +/******************************************************************** +** 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(25, + be_nested_map(26, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key(init, -1), be_const_closure(class_Leds_matrix_init_closure) }, + { 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(get_pixel_color, 14), be_const_closure(class_Leds_matrix_get_pixel_color_closure) }, - { be_const_key(is_dirty, -1), be_const_closure(class_Leds_matrix_is_dirty_closure) }, - { be_const_key(clear_to, 0), be_const_closure(class_Leds_matrix_clear_to_closure) }, { be_const_key(set_pixel_color, -1), be_const_closure(class_Leds_matrix_set_pixel_color_closure) }, - { be_const_key(pixels_buffer, -1), be_const_closure(class_Leds_matrix_pixels_buffer_closure) }, - { be_const_key(dirty, -1), be_const_closure(class_Leds_matrix_dirty_closure) }, - { be_const_key(can_show, 21), be_const_closure(class_Leds_matrix_can_show_closure) }, - { be_const_key(pixel_size, 4), be_const_closure(class_Leds_matrix_pixel_size_closure) }, - { be_const_key(w, -1), be_const_var(3) }, - { be_const_key(set_matrix_pixel_color, 9), be_const_closure(class_Leds_matrix_set_matrix_pixel_color_closure) }, - { be_const_key(offset, -1), be_const_var(1) }, - { be_const_key(strip, -1), be_const_var(0) }, - { be_const_key(begin, -1), be_const_closure(class_Leds_matrix_begin_closure) }, - { be_const_key(h, -1), be_const_var(2) }, - { be_const_key(pix_size, -1), be_const_var(6) }, { be_const_key(pixel_count, -1), be_const_closure(class_Leds_matrix_pixel_count_closure) }, - { be_const_key(get_alternate, -1), be_const_closure(class_Leds_matrix_get_alternate_closure) }, - { be_const_key(pixel_offset, -1), be_const_closure(class_Leds_matrix_pixel_offset_closure) }, - { be_const_key(set_alternate, -1), be_const_closure(class_Leds_matrix_set_alternate_closure) }, - { be_const_key(set_bytes, -1), be_const_closure(class_Leds_matrix_set_bytes_closure) }, - { be_const_key(pix_buffer, 3), be_const_var(5) }, + { 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 );