Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide

_BITDEF
A-18
109759Distributed Systems Network Management (DSNM) Subsystem Interface
Development Guide
DSNM Library Services
_BITDEF
_BITDEF defines a bit within a specified range of bits. A compile error is generated if
int falls outside of the range min-bit to max-bit, inclusive.
int input
the bit position to be defined within the range min-bit to max-bit, inclusive.
max-bit input
the leftmost bit position within the word that is now considered bit position 0. The
default is %100000.
min-bit input
the rightmost bit position within the range. The default is 1.
Examples
The following example assigns the value of bit position 2 within the range of bit
positions 3 and 7 in a word to evtb:
LITERAL maxval = _BITDEF (3); ! maxval = %10000
LITERAL minval = _BITDEF (7); ! minval = %400
LITERAL evtb = _BITDEF (2, maxval, minval); ! evtb = %2000
This is the same as:
LITERAL evtb = _BITDEF (2, %10000, %400); ! evtb = %2000
_BITDEF ( int [,max-bit ] [,min-bit ] )
401
0123 456 7 8 9 10 11 12 13 14 15
Bit position 2 within range _BITDEF(3) and _BITDEF(7)
1
_BITDEF (3)
_BITDEF (7)
Range
0 1234