mclr mset mtst
mclr ( c addr -- )
Specific Flash Forth
Clear bits in addr register with mask c.
If the word mclr
does not exist on your version of the FORTH language, here is how to define it:
: mclr ( c addr --) dup >r c@ swap invert and r> c! ;
mset ( c addr -- )
Specific Flash Forth
Set bits in file register with mask c.
If the word mset
does not exist on your version of the FORTH language, here is how to define it:
: mset ( mask addr -- ) dup >r c@ swap or r> c! ;
mtst ( c addr -- x )
Specific Flash Forth
AND file register byte with mask c.
If the word mtst
does not exist on your version of the FORTH language, here is how to define it:
: mtst ( c addr -- x) c@ and ;