Changes for page 08 Macro Script
Last modified by xingzhi lin on 2025/09/24 10:14
From version 2.1
edited by xingzhi lin
on 2025/09/24 10:08
on 2025/09/24 10:08
Change comment:
There is no comment for this version
To version 3.1
edited by xingzhi lin
on 2025/09/24 10:14
on 2025/09/24 10:14
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -2328,10 +2328,10 @@ 2328 2328 2329 2329 a = InStr ("Hello", "o") ' calculate the position of"o"in"hello". 2330 2330 2331 - float2d ("@W_HDW0",a)' Returned value is 4.(start with 0)2331 +@W_HDW0=a ' Returned value is 4.(start with 0) 2332 2332 {{/code}} 2333 2333 2334 -**Result:** HDW0=4 2334 +**Result:** HDW0="4" 2335 2335 2336 2336 == **Int2D** == 2337 2337 ... ... @@ -3471,9 +3471,9 @@ 3471 3471 3472 3472 a = SignedInt32("@W_HDW0") 'read signed even integer from HDW0, then assign this value to a. 3473 3473 3474 -@W_HDW2=a 'assign the value of a to HDW2 3474 +@W_HDW2=a & 0xffff 'assign the value of a to HDW2 3475 3475 3476 -@W_HDW3=a>>16 3476 +@W_HDW3=a>>16 & 0xffff 3477 3477 {{/code}} 3478 3478 3479 3479 **Input: **@W_HDW0=-2