Further:
Code: Select all
Option TargetDevice ZX24x
Sub Main()
dim i as integer, sum as long = 0
for i= 1 to ubound(OLED_RighTimeSplash)
sum = sum + clng(OLED_RighTimeSplash(i))
next
debug.print cstr(ubound(OLED_RighTimeSplash)) &" "& cstr(sum)
End Sub
Public OLED_RighTimeSplash as new bytevectordata({
&h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00,
&h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h80, &h00, &h40, &h40, &h00,
&h20, &h20, &h20, &h00, &h10, &h10, &h10, &h08, &h08, &h08, &h08, &h0C, &h04, &h04, &h04, &h04,
&h04, &h06, &h06, &h06, &h06, &h06, &h06, &h06, &h06, &h06, &h06, &h0E, &h0E, &h0E, &h0E, &h1E,
&h1E, &h1E, &h3E, &h7E, &h7E, &h7C, &h7C, &h7C, &h78, &h78, &h70, &h60, &h00, &h00, &h00, &h00,
&h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00,
&h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00,
&h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00,
&h00, &h00, &hE0, &hFE, &hFE, &hFE, &hFE, &hFE, &h8E, &h8E, &h8E, &h8E, &hDE, &hFE, &hFE, &hFC,
&h7C, &h3C, &h18, &h80, &hE0, &hEE, &hEE, &hEE, &h6E, &h06, &h00, &h80, &hC0, &hE0, &hE0, &hE0,
&hE0, &h60, &h60, &h60, &h60, &hE0, &hC0, &hE0, &hE0, &hE0, &hE0, &h20, &h00, &h00, &hF0, &hFE,
&hFE, &hFE, &hFE, &hCE, &h40, &h60, &h60, &h60, &hE0, &hE0, &hE0, &hE0, &hE0, &h0E, &h0E, &h0E,
&h8E, &hFE, &hFE, &hFE, &hFE, &hFE, &h3E, &h0E, &h0E, &h0E, &h0E, &h8E, &hE0, &hEE, &hEE, &hEE,
&hEE, &h06, &h00, &hC0, &hE0, &hE0, &hE0, &hE0, &hE0, &h40, &h60, &h60, &h60, &hE0, &hE0, &hE0,
&hE0, &hC0, &hC0, &h60, &h60, &h60, &h60, &hE0, &hE0, &hE0, &hE0, &hC0, &h00, &h00, &h80, &hC0,
&hC0, &hE0, &hE0, &h60, &h60, &h60, &h60, &h60, &hE0, &hE0, &hE0, &hC0, &h80, &h00, &h00, &h00,
&h00, &h1E, &h1F, &h1F, &h1F, &h1F, &h8F, &h81, &h83, &h87, &h9F, &h9F, &h1F, &h1E, &h1C, &h18,
&h10, &h00, &h18, &h1F, &h1F, &h1F, &h1F, &h0F, &h00, &h00, &hCF, &hDF, &hDF, &hDF, &hDF, &h9F,
&h99, &h98, &h98, &h98, &hC8, &hFE, &hFF, &hFF, &h7F, &h3F, &h01, &h00, &h10, &h1E, &h1F, &h1F,
&h1F, &h0F, &h01, &h00, &h00, &h00, &h00, &h1C, &h1F, &h1F, &h9F, &h1F, &h07, &h00, &h00, &h10,
&h1F, &h1F, &h1F, &h1F, &h1F, &h03, &h00, &h00, &h00, &h00, &h1C, &h1F, &h1F, &h1F, &h1F, &h0F,
&h00, &h00, &h1C, &h1F, &h1F, &h1F, &h1F, &h03, &h00, &h00, &h00, &h00, &h1E, &h1F, &h1F, &h1F,
&h1F, &h01, &h00, &h00, &h00, &h10, &h1F, &h1F, &h1F, &h1F, &h1F, &h01, &h00, &h0F, &h1F, &h1F,
&h1F, &h1F, &h3B, &h33, &h33, &h33, &h1B, &h1B, &h1B, &h1B, &h0B, &h03, &h03, &h70, &h10, &h00,
&h00, &h00, &h00, &h00, &h00, &h03, &h0F, &h1F, &h3F, &h3F, &h7F, &h7F, &h7F, &hFE, &hFC, &hF8,
&hF0, &hF0, &hF0, &hE0, &hE0, &hE0, &hE0, &hC0, &hC0, &hC0, &hC0, &hC0, &hC1, &hC1, &hC1, &hC1,
&hC1, &hC1, &h41, &h41, &h41, &h60, &h60, &h20, &h20, &h20, &h20, &h10, &h10, &h10, &h00, &h08,
&h08, &h08, &h00, &h04, &h04, &h00, &h02, &h00, &h01, &h00, &h00, &h00, &h00, &h00, &h00, &h00,
&h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00,
&h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00,
&h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00,
&h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00
})
Result:
514 33485
Code: Select all
Option TargetDevice ZX24x
Sub Main()
dim i as integer, sum as long = 0
for i= 1 to ubound(OLED_RighTimeSplash)
sum = sum + clng(OLED_RighTimeSplash(i))
next
debug.print cstr(ubound(OLED_RighTimeSplash)) &" "& cstr(sum)
End Sub
Public OLED_RighTimeSplash as new bytevectordata({
&h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00,
&h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h80, &h00, &h40, &h40, &h00,
&h20, &h20, &h20, &h00, &h10, &h10, &h10, &h08, &h08, &h08, &h08, &h0C, &h04, &h04, &h04, &h04,
&h04, &h06, &h06, &h06, &h06, &h06, &h06, &h06, &h06, &h06, &h06, &h0E, &h0E, &h0E, &h0E, &h1E,
&h1E, &h1E, &h3E, &h7E, &h7E, &h7C, &h7C, &h7C, &h78, &h78, &h70, &h60, &h00, &h00, &h00, &h00,
&h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00,
&h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00,
&h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00,
&h00, &h00, &hE0, &hFE, &hFE, &hFE, &hFE, &hFE, &h8E, &h8E, &h8E, &h8E, &hDE, &hFE, &hFE, &hFC,
&h7C, &h3C, &h18, &h80, &hE0, &hEE, &hEE, &hEE, &h6E, &h06, &h00, &h80, &hC0, &hE0, &hE0, &hE0,
&hE0, &h60, &h60, &h60, &h60, &hE0, &hC0, &hE0, &hE0, &hE0, &hE0, &h20, &h00, &h00, &hF0, &hFE,
&hFE, &hFE, &hFE, &hCE, &h40, &h60, &h60, &h60, &hE0, &hE0, &hE0, &hE0, &hE0, &h0E, &h0E, &h0E,
&h8E, &hFE, &hFE, &hFE, &hFE, &hFE, &h3E, &h0E, &h0E, &h0E, &h0E, &h8E, &hE0, &hEE, &hEE, &hEE,
&hEE, &h06, &h00, &hC0, &hE0, &hE0, &hE0, &hE0, &hE0, &h40, &h60, &h60, &h60, &hE0, &hE0, &hE0,
&hE0, &hC0, &hC0, &h60, &h60, &h60, &h60, &hE0, &hE0, &hE0, &hE0, &hC0, &h00, &h00, &h80, &hC0,
&hC0, &hE0, &hE0, &h60, &h60, &h60, &h60, &h60, &hE0, &hE0, &hE0, &hC0, &h80, &h00, &h00, &h00,
&h00, &h1E, &h1F, &h1F, &h1F, &h1F, &h8F, &h81, &h83, &h87, &h9F, &h9F, &h1F, &h1E, &h1C, &h18,
&h10, &h00, &h18, &h1F, &h1F, &h1F, &h1F, &h0F, &h00, &h00, &hCF, &hDF, &hDF, &hDF, &hDF, &h9F,
&h99, &h98, &h98, &h98, &hC8, &hFE, &hFF, &hFF, &h7F, &h3F, &h01, &h00, &h10, &h1E, &h1F, &h1F,
&h1F, &h0F, &h01, &h00, &h00, &h00, &h00, &h1C, &h1F, &h1F, &h9F, &h1F, &h07, &h00, &h00, &h10,
&h1F, &h1F, &h1F, &h1F, &h1F, &h03, &h00, &h00, &h00, &h00, &h1C, &h1F, &h1F, &h1F, &h1F, &h0F,
&h00, &h00, &h1C, &h1F, &h1F, &h1F, &h1F, &h03, &h00, &h00, &h00, &h00, &h1E, &h1F, &h1F, &h1F,
&h1F, &h01, &h00, &h00, &h00, &h10, &h1F, &h1F, &h1F, &h1F, &h1F, &h01, &h00, &h0F, &h1F, &h1F,
&h1F, &h1F, &h3B, &h33, &h33, &h33, &h1B, &h1B, &h1B, &h1B, &h0B, &h03, &h03, &h70, &h10, &h00,
&h00, &h00, &h00, &h00, &h00, &h03, &h0F, &h1F, &h3F, &h3F, &h7F, &h7F, &h7F, &hFE, &hFC, &hF8,
&hF0, &hF0, &hF0, &hE0, &hE0, &hE0, &hE0, &hC0, &hC0, &hC0, &hC0, &hC0, &hC1, &hC1, &hC1, &hC1,
&hC1, &hC1, &h41, &h41, &h41, &h60, &h60, &h20, &h20, &h20, &h20, &h10, &h10, &h10, &h00, &h08,
&h08, &h08, &h00, &h04, &h04, &h00, &h02, &h00, &h01, &h00, &h00, &h00, &h00, &h00, &h00, &h00,
&h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00,
&h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00,
&h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00,
&h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00, &h00
})
Result:
512 33695
Only difference is spacing. Compiler v4.1.7.