Move16
Result = Move16(DestValue, MergeValue)
 
Parameters:

    DestValue = The value the bits are to be merged with
    MergeValue = The value that the 16 bit value will be copied from
Returns:

    Result
 

      The Move16 copies the lower word of MergeValue parameter to the lower word of DestValue and returns the result. The higher word is not affected.

      Move16 is a short cut of Result =(DestValue and $ffff0000) or (MergeValue and $ffff)



Mini Tutorial:


     Showing the use of the functions Move16 and Move8

  
; assign values to variables a and b
  a=$11223344
  b=$0000aabb
  
; Show original State of A & B Variables
  Print Hex$(a)
  Print Hex$(b)
  
; Show the result of the functions
  Print Hex$(Move8(a,b))
  Print Hex$(Move16(a,b))
  
; Display the output and wait for key.
  Sync
  WaitKey
  



This example would output.

  
  $11223344
  $0000AABB
  $112233BB
  $1122AABB
  

 
Related Info: And | CopyBits | Move8 | Or | Xor :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com