Changes for page 2 Script
Last modified by Devin Chen on 2025/06/06 14:03
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -461,6 +461,23 @@ 461 461 end 462 462 {{/code}} 463 463 464 +== **1.10 Read 64bits Unsigned Value** == 465 + 466 +In our built-in function library doesn't have the function for reading 64-bit unsigned format value, so the following function is for solve this. But if the number is greater 2^53, the precision will be lost. So the final result will be a little bit different from the original value. 467 + 468 +{{code language="lua"}} 469 +function addr_getquatra(address) 470 + local highAddress = addr_newnoaddr(address,2) 471 + local low32 = addr_getdword(address) 472 + local high32 = addr_getdword(highAddress) 473 + --print("the low number is "..low32) 474 + --print("the high number is "..high32) 475 + local formatVal = string.format("%64.0f",2^32*high32+low32) 476 + print("the format value is ".. formatVal) 477 + return formatVal 478 +end 479 +{{/code}} 480 + 464 464 = **2 V-Box connect with third part server** = 465 465 466 466 V-Box have two mode.One is for V-Net,User need to use WECON server to store data.We call this V-NET platform.