Please enable JavaScript to view this site.

Function to set one or more bits in an integer-type data according to the occurrence of a condition.

Syntax

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

data

Unit on which you want to set

bitMsk

Mask of the bits to be set

cond

Condition upon the occurrence of which the bits will be set

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