why is in TRSE : XOR , NOT
Posted: Wed Dec 25, 2019 1:08 pm
hello good day.
why is in trse NOT , XOR ??
AND is & , Or is in the trse.
thanks
greeting.
why is in trse NOT , XOR ??
AND is & , Or is in the trse.
thanks
greeting.
The Commodore Vic 20 Forum
https://www.sleepingelephant.com/~sleeping/ipw-web/bulletin/bb/
https://www.sleepingelephant.com/~sleeping/ipw-web/bulletin/bb/viewtopic.php?t=9551
Several possible answers:funkheld wrote:why is in trse NOT , XOR ?? [...] AND is & , Or is in the trse. [...] nobody knows how it works with the trse ????
... from what I've gathered, AND and OR are also present. Together with NOT, these three operators are most probably intended for use in Boolean expressions, within IF conditions. "|" (bitwise or) and "&" (bitwise and) are there for working with 8-bit values, XOR is the corresponding exclusive-or operator (don't know about "^" as I thought it ought to be in the other thread). You'll have to check for yourself, whether NOT doubles as bitwise NOT operand, or "!" is used instead.why is in trse NOT , XOR ??
Code: Select all
addbreakpoint();
// XOR
x := %11110000;
y := %11001100;
k := x xor y;
// logical NOT
k := x xor 255;