mset  ( c addr -- )

published: 30 January 2023 / updated 30 January 2023

Lire cette page en français

 

Set bits in file register with mask c.

Example:

$24 constant DDRB       \ Port B Data Direction Register  
$25 constant PORTB      \ Port B Data Register  
 
: slave.deselect ( mSSx -- )   \ unselect slave  
    dup DDRB  mset      \ SS as output  
        PORTB mset      \ deselect  
  ;