How would you translate something like this from vb6 to b4a:
Sub CRCCalculation(nAA As Integer, nLCRC As Integer, nHCRC As Integer)
Dim nBB As Integer
Dim nDD As Integer
Dim nEE As Integer
nBB = nLCRC
nDD = (((nAA Xor nHCRC) * 2) And 254) Xor (nAA Xor nHCRC)
nEE = Int(nDD / 4) Or (nDD And 3) * 64
nDD = nEE Xor nDD
nLCRC = (nEE And 63) Xor (((Int(nDD / 16) Or (nDD Mod 16) * 16) Xor nDD) And 192)
nHCRC = nEE And 192 Xor (Int(nLCRC / 128)) Xor nBB
End Sub
Later,
Clint
Sub CRCCalculation(nAA As Integer, nLCRC As Integer, nHCRC As Integer)
Dim nBB As Integer
Dim nDD As Integer
Dim nEE As Integer
nBB = nLCRC
nDD = (((nAA Xor nHCRC) * 2) And 254) Xor (nAA Xor nHCRC)
nEE = Int(nDD / 4) Or (nDD And 3) * 64
nDD = nEE Xor nDD
nLCRC = (nEE And 63) Xor (((Int(nDD / 16) Or (nDD Mod 16) * 16) Xor nDD) And 192)
nHCRC = nEE And 192 Xor (Int(nLCRC / 128)) Xor nBB
End Sub
Later,
Clint