HLASM Language Reference
HLASM Language Reference HLASM Language Reference
| B2C('111111') has value '3' | B2C('111111111') has value '1' | B2C('') has value 'n' (EBCDIC null character) | B2C('111') has value 'nj' | B2C('') has value 'nn' (two EBCDIC nulls) | B2C('') has value '' (null string) | B2D | Format: Function-invocation | Operands: Character | Output: B2D('bitstring') converts a bit-string argument of at most 32 '' | and '1' characters to one to ten decimal characters preceded by a plus or | minus sign, representing the value of the argument. Null arguments return | '+'. | Examples | B2D('') has value '+' | B2D('111') has value '+145' | B2D('11111') has value '+241' | B2D('1111111111111111111111111111111') has value '+2147483647' | B2D('11111111111111111111111111111') has value '-15' | B2X | Format: Function-invocation | Operands: Character | Output: B2X('bitstring') converts the bit-string argument to hexadecimal | characters representing the same bit pattern. Null arguments return a null | string. | If needed, the argument string is padded internally on the left with zeros so | that its length is a multiple of four. | The operand must contain only ones and zeros. Any other value causes the | message ASMA214E to be generated. | Examples | B2X('') has value '' (null string) | B2X('') has value '' | B2X('111') has value '91' | B2X('11111') has value 'F1' | B2X('1111111') has value '3F1' BYTE Format: Logical-expression, function-invocation Operands: Arithmetic Output: BYTE(aexpr) or (BYTE aexpr) returns a one-character EBCDIC character expression in which the binary value of the character is specified by the arithmetic argument. The argument must have a value between 0 and 255, inclusive. This function might be used to introduce characters which are not on the keyboard. Examples 376 HLASM V1R5 Language Reference
| C2B BYTE() BYTE(97) BYTE(129) | Format: Function-invocation | Operands: Character has value 'n' (EBCDIC null character) has value '/' has value 'a' | Output: C2B('charstring') converts the character argument to a string of '' | and '1' characters representing the same bit pattern. Null arguments return | a null string. | If the result is not too long, the length of the result is eight times the length of | the 'charstring' argument. | Examples | C2B('') has value '' | C2B('n') has value '' | C2B(' ') has value '1' | C2B('1') has value '11111' | C2B('1234') has value '111111111111111111111' | C2D | Format: Function-invocation | Operands: Character | Output: C2D('charstring') converts a character-string argument of at most | four characters to one to ten decimal characters preceded by a plus or minus | sign, representing the numeric value of the argument. Null arguments return | '+'. | Examples | C2D('') has value '+' | C2D('nj') has value '+145' | C2D('1') has value '+241' | C2D('') has value '-2526451 | C2X | Format: Function-invocation | Operands: Character | Output: C2X('charstring') converts the character-string argument to | hexadecimal characters representing the same bit pattern. Null arguments | return a null string. | If the result is not too long, the length of the result is two times the length of | the 'charstring' argument. | Examples | C2X('') has value '' | C2X('n') has value '' | C2X('1') has value 'F1' | C2X('a') has value '81' | C2X('1234567R') has value 'F1F2F3F4F5F6F7D9' | D2B | Format: Function-invocation | Operands: Character Chapter 9. How to Write Conditional Assembly Instructions 377
- Page 346 and 347: Data Attributes variable_symbol is
- Page 348 and 349: Data Attributes The value of an att
- Page 350 and 351: Data Attributes The following attri
- Page 352 and 353: Data Attributes Assembler gives a t
- Page 354 and 355: Data Attributes The scale attribute
- Page 356 and 357: Data Attributes Number Attribute (N
- Page 358 and 359: Data Attributes The operation code
- Page 360 and 361: Lookahead MACRO &NAME MOVE &TO,&FRO
- Page 362 and 363: Open Code Sequence Symbols The cond
- Page 364 and 365: GBLA, GBLB, and GBLC Instructions G
- Page 366 and 367: LCLA, LCLB, and LCLC Instructions s
- Page 368 and 369: SETA Instruction expression is an a
- Page 370 and 371: SETA Instruction | The logical-exp
- Page 372 and 373: SETA Instruction | Figure 99 (Page
- Page 374 and 375: SETA Instruction | The result of C2
- Page 376 and 377: SETA Instruction NOT Format: Logica
- Page 378 and 379: SETA Instruction | X2A Name Operati
- Page 380 and 381: SETA Instruction In evaluating the
- Page 382 and 383: SETB Instruction Any expression tha
- Page 384 and 385: SETB Instruction ┌─────
- Page 386 and 387: SETB Instruction | ISDEC | Format:
- Page 388 and 389: SETB Instruction The two comparands
- Page 390 and 391: SETC Instruction Notes: 1. The asse
- Page 392 and 393: Figure 103. Substring Notation in C
- Page 394 and 395: Loc Object Code Addr1 Addr2 Stmt So
- Page 398 and 399: | Output: D2B('decstring') converts
- Page 400 and 401: SIGNED Format: Logical-expression,
- Page 402 and 403: | X2D('') has value '+' | X2D('91')
- Page 404 and 405: Concatenation of strings containing
- Page 406 and 407: MACRO &NAME MOVE &TO,&FROM LCLC &PR
- Page 408 and 409: SETAF Instruction Alternative State
- Page 410 and 411: Branching Branching You can control
- Page 412 and 413: AGO Instruction The extended AIF in
- Page 414 and 415: ACTR Instruction AGOB—Synonym of
- Page 416 and 417: ANOP Instruction statement processe
- Page 418 and 419: MHELP Instruction MHELP B'10000000'
- Page 420 and 421: 400 HLASM V1R5 Language Reference
- Page 422 and 423: Assembler Instructions and Statemen
- Page 424 and 425: Assembler Instructions and Statemen
- Page 426 and 427: Assembler Instructions and Statemen
- Page 428 and 429: Summary of Constants Figure 113. Su
- Page 430 and 431: Macro and Conditional Assembly Lang
- Page 432 and 433: Macro and Conditional Assembly Lang
- Page 434 and 435: Macro and Conditional Assembly Lang
- Page 436 and 437: Macro and Conditional Assembly Lang
- Page 438 and 439: Macro and Conditional Assembly Lang
- Page 440 and 441: Macro and Conditional Assembly Lang
- Page 442 and 443: Standard Character Set Code Table H
- Page 444 and 445: Standard Character Set Code Table H
| B2C('111111') has value '3'<br />
| B2C('111111111') has value '1'<br />
| B2C('') has value 'n' (EBCDIC null character)<br />
| B2C('111') has value 'nj'<br />
| B2C('') has value 'nn' (two EBCDIC nulls)<br />
| B2C('') has value '' (null string)<br />
| B2D<br />
| Format: Function-invocation<br />
| Operands: Character<br />
| Output: B2D('bitstring') converts a bit-string argument of at most 32 ''<br />
| and '1' characters to one to ten decimal characters preceded by a plus or<br />
| minus sign, representing the value of the argument. Null arguments return<br />
| '+'.<br />
| Examples<br />
| B2D('') has value '+'<br />
| B2D('111') has value '+145'<br />
| B2D('11111') has value '+241'<br />
| B2D('1111111111111111111111111111111') has value '+2147483647'<br />
| B2D('11111111111111111111111111111') has value '-15'<br />
| B2X<br />
| Format: Function-invocation<br />
| Operands: Character<br />
| Output: B2X('bitstring') converts the bit-string argument to hexadecimal<br />
| characters representing the same bit pattern. Null arguments return a null<br />
| string.<br />
| If needed, the argument string is padded internally on the left with zeros so<br />
| that its length is a multiple of four.<br />
| The operand must contain only ones and zeros. Any other value causes the<br />
| message ASMA214E to be generated.<br />
| Examples<br />
| B2X('') has value '' (null string)<br />
| B2X('') has value ''<br />
| B2X('111') has value '91'<br />
| B2X('11111') has value 'F1'<br />
| B2X('1111111') has value '3F1'<br />
BYTE<br />
Format: Logical-expression, function-invocation<br />
Operands: Arithmetic<br />
Output: BYTE(aexpr) or (BYTE aexpr) returns a one-character EBCDIC<br />
character expression in which the binary value of the character is specified by<br />
the arithmetic argument. The argument must have a value between 0 and<br />
255, inclusive.<br />
This function might be used to introduce characters which are not on the<br />
keyboard.<br />
Examples<br />
376 <strong>HLASM</strong> V1R5 <strong>Language</strong> <strong>Reference</strong>