hello good day.
why is in trse NOT , XOR ??
AND is & , Or is in the trse.
thanks
greeting.
why is in TRSE : XOR , NOT
Moderator: Moderators
why is in TRSE : XOR , NOT
Last edited by funkheld on Thu Dec 26, 2019 3:11 pm, edited 2 times in total.
Re: why is in TRSE : XOR , NOT
nobody knows how it works with the trse ????
why is in trse NOT , XOR ??
Thank you.
greeting
why is in trse NOT , XOR ??
Thank you.
greeting
- Mike
- Herr VC
- Posts: 5134
- Joined: Wed Dec 01, 2004 1:57 pm
- Location: Munich, Germany
- Occupation: electrical engineer
Re: why is in TRSE : XOR , NOT
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 ????
1. Us Denial fellows quite likely were celebrating Xmas, hence the (relative) silence over the last three days,
2. Number of TRSE users is still small to those who prefer to program the VIC-20 on itself or use more established cross-developing setups (DASM, cc65, ca65, ACME, etc.) and don't feel the need to change to TRSE. Or, for that matter, would go and install TRSE just to understand what your problem is.
3. As I already wrote in another thread: the maintainers/developers of TRSE are unlikely to stumble across your question here in Denial. Asking in the relevant FB group or on github is much more likely to get their view upon design decisions.
But anyhow ...
... 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 ??
Re: why is in TRSE : XOR , NOT
hello, thanks for the held.
how is that written in asm please : NOT , XOR ??
then I tinker it with asm
greeting.
how is that written in asm please : NOT , XOR ??
then I tinker it with asm
greeting.
- AndyH
- Vic 20 Afficionado
- Posts: 442
- Joined: Thu Jun 17, 2004 5:51 am
- Website: https://www.hewco.uk
- Location: UK
- Occupation: Developer
Re: why is in TRSE : XOR , NOT
Hi, and Merry Christmas. (I've been mostly away for a few days).
You can do this, check out the ASM produced, it just does EOR:
You can do this, check out the ASM produced, it just does EOR:
Code: Select all
addbreakpoint();
// XOR
x := %11110000;
y := %11001100;
k := x xor y;
// logical NOT
k := x xor 255;
Re: why is in TRSE : XOR , NOT
hello thanks.
greeting.
greeting.