Move8
Result = Move8(DestValue, MergeValue)
 
Parameters:

    DestValue = The value the bits are copied to
    MergeValue = A 8 bit value that will be copied
Returns:

    Result
 

      The Move8 command copies the low byte in the MergeValue into the low byte of DestValue and returns the result. The other bits are not affected.

      Move8 is a short cut of Result =(DestValue and $ffffff00) or (MergeValue and $ff)




Mini Tutorial:


      howing 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 | Move16 | Operators | Or | Xor :
 


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