Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide

_EXTRACT
A-46
109759Distributed Systems Network Management (DSNM) Subsystem Interface
Development Guide
DSNM Library Services
_EXTRACT
_EXTRACT returns the value of those bits of bit-mask that are on in int-exp.
_EXTRACT performs a function similar to the TAL bit-extraction operation, except the
extracted bits need not be contiguous, nor are they shifted to the right.
int-exp input
INT:value
is an INT expression from which bits are extracted, according to the one-bits in
bit-mask.
bit-mask input
INT:value
is an INT expression, the one-bits of which identify the bits in int-exp to extract.
Example
LITERAL error^bits = %B1101;
INT sense^code, errors;
!Suppose sense^code = %B111000
errors := _EXTRACT (sense^code, error^bits); !errors = %B1000
_EXTRACT ( int-exp , bit-mask );