Guest User

Untitled

a guest
Jun 16th, 2018
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. ushort2BytesLow;
  4. ushort2BytesHigh;
  5.  
  6.   If HiByte And &H80 Then
  7.     2BytesLow = ((HiByte1 * 0x100&) + LoByte1) Or 0xFFFF0000
  8.   Else
  9.     2BytesLow = (HiByte1 * 0x100) + LoByte1
  10.   End If
  11.   If HiByte And &H80 Then
  12.     2BytesHigh = ((HiByte2 * 0x100&) + LoByte2) Or 0xFFFF0000
  13.   Else
  14.     2BytesHigh = (HiByte2 * 0x100) + LoByte2
  15.   End If
  16.  
  17. uint32 4bytes = (2BytesHigh * 0x10000) + (2BytesLow And 0xFFFF)
Add Comment
Please, Sign In to add comment