test XOR

Moderator: Benj

Post Reply
0101
Posts: 50
Joined: Thu Dec 12, 2019 3:36 pm
Contact:

test XOR

Post by 0101 »

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 !
Attachments
test xor.fcf
(8 KiB) Downloaded 8 times

User avatar
Benj
Matrix Staff
Posts: 15147
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: test XOR

Post by Benj »

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

0101
Posts: 50
Joined: Thu Dec 12, 2019 3:36 pm
Contact:

Re: test XOR

Post by 0101 »

Hi Ben,
Thanks a lot Ben for the answer, I will review the flowchart.

Post Reply