Posted: Sun Nov 13, 2016 12:11 pm Post subject: XOR function not working ?
Hi,
I was just playing with bascom, using the following statements:
Dim A5 As Byte
Dim B5 As Byte
Dim C5 As Byte
A5 = 03
B5 = 55
C5 = A5 Or &HFF
C5 = A5 And &H01
C5 = Not C5
C5 = Not A5
C5 = Xor B5
C5 = Xor &H55
So: trying the AND, OR, NOT and XOR functions.
It works. however, the last two statements result in an error:
Error 10: wrong type [BIT, BYTE, INTEGER etc....]
Any idea what I am doing wrong ?
Rob
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum