Hello everybody
I try to get a correct result from the truth table of the XOR logic function, but I fail. Please help.
Thank you in advance !
test XOR
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: test XOR
Hello,
What are you trying to do. It looks like your loop is trying to maybe do a single bit at a time but each time around the loop the data3 will be loaded with the exact same value.
The loop and the shift can maybe be gotten rid of and just use this one calculation line to do the XOR.
data3 = data1 XOR data2
What are you trying to do. It looks like your loop is trying to maybe do a single bit at a time but each time around the loop the data3 will be loaded with the exact same value.
The loop and the shift can maybe be gotten rid of and just use this one calculation line to do the XOR.
data3 = data1 XOR data2
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel