HIGHW
From MCS Wiki AVR
(Difference between revisions)
Admin (Talk | contribs)
(Created page with "= <span class="f_Header">Action</span> = Retrieves the most significant word of a long variable. <span style="font-family: Arial;"> </span> <span style="font-family: A...")
(Created page with "= <span class="f_Header">Action</span> = Retrieves the most significant word of a long variable. <span style="font-family: Arial;"> </span> <span style="font-family: A...")
Latest revision as of 20:16, 11 February 2013
Contents |
Action
Retrieves the most significant word of a long variable.
Syntax
var = HIGHW( s )
Remarks
Var |
The variable that is assigned with the MS word of var S. |
S |
The source variable to get the MSB from. |
There is no LowW() function. This because when you assign a Long to a word or integer, only the lower part is assigned. For this reason you do not need a Loww() function. W=L will do the same.
See also
Example
Dim X As Word , L As Long L = &H12345678 X = Highw(l) Print Hex(x)
Languages | English • Deutsch |
---|