Please enable JavaScript to view this site.

Function to set one or more bits in an integer-type data if the condition is TRUE and to reset one or more bits in an integer-type data if the condition is FALSE.

Syntax

i32 wbit (i32 data, i32 bitMsk, bool cond)

data

Unit to which the write is desired

bitMsk

Mask of the bits to be written

cond

Condition upon the occurrence of which the bits will be set/reset

Result

Returns:

Value

Meaning

1

The condition is verified

0

Otherwise

Validity

Rule, Task

Note


 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC