[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cset seems to override the next byte
From: |
Bernd Paysan |
Subject: |
Re: cset seems to override the next byte |
Date: |
Mon, 28 Dec 2020 19:36:21 +0100 |
Am Montag, 28. Dezember 2020, 14:08:06 CET schrieb Anton Ertl:
> We use CSET internally, so we may add a word with its current
> functionality, but a different name. The convention would be to call
> it SET, but I don't want to waste this name on a little-used word;
> maybe MASK-SET or OR! would be appropriate names.
I'm for this set:
: or! ( x addr -- ) >r r@ @ or r> ! ;
: xor! ( x addr -- ) >r r@ @ xor r> ! ;
: and! ( x addr -- ) >r r@ @ and r> ! ;
: xorc! ( x c-addr -- ) >r r@ c@ xor r> c! ;
: andc! ( x c-addr -- ) >r r@ c@ and r> c! ;
: orc! ( x c-addr -- ) >r r@ c@ or r> c! ;
--
Bernd Paysan
"If you want it done right, you have to do it yourself"
net2o id: kQusJzA;7*?t=uy@X}1GWr!+0qqp_Cn176t4(dQ*
https://net2o.de/
signature.asc
Description: This is a digitally signed message part.