22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SETB Instruction<br />

| ISDEC<br />

| Format: Function-invocation<br />

| Operands: Character<br />

| Output: ISDEC('cexpr') determines the validity of cexpr, a string of 1 to 10<br />

| characters, as the nominal value of a decimal self-defining term usable in a<br />

| SETA expression. If valid, ISDEC returns 1; otherwise, it returns zero. The<br />

| argument string may not be null.<br />

| Example<br />

| ISDEC('12345678') returns 1<br />

| ISDEC('+25') returns (non-decimal character)<br />

| ISDEC('2147483648') returns (value too large)<br />

| ISDEC('5') returns (too many characters)<br />

| ISDEC('') indicates an error condition<br />

| ISHEX<br />

| Format: Function-invocation<br />

| Operands: Character<br />

| Output: ISHEX('cexpr') determines the validity of cexpr, a string of 1 to 8<br />

| characters, as the nominal value of a hexadecimal self-defining term usable in<br />

| a SETA expression. If valid, ISHEX returns 1; otherwise, it returns zero. The<br />

| argument string may not be null.<br />

| Example<br />

| ISHEX('ab34CD9F') returns 1<br />

| ISHEX('abcdEFGH') returns (non-hexadecimal digits)<br />

| ISHEX('123456789') returns (too many characters)<br />

| ISHEX('') indicates an error condition<br />

| ISSYM<br />

| Format: Function-invocation<br />

| Operands: Character<br />

| Output: ISSYM('cexpr') determines the validity of cexpr, a string of 1 to 63<br />

| characters, for use as an ordinary symbol. If valid, ISSYM returns 1;<br />

| otherwise, it returns zero. The argument string may not be null.<br />

| Examples<br />

| ISSYM('Abcd_1234') returns 1<br />

| ISSYM('_Abcd1234') returns 1<br />

| ISSYM('##@$_') returns 1<br />

| ISSYM('1234_Abcd') returns (invalid initial character)<br />

| ISSYM('') indicates an error condition<br />

NOT<br />

OR<br />

Format:<br />

Logical-expression, function-invocation<br />

Operands: Binary<br />

Output: NOT(bexp) inverts the value of the logical expression.<br />

Format: Logical-expression<br />

Operands: Binary<br />

366 <strong>HLASM</strong> V1R5 <strong>Language</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!