22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

| C2B<br />

BYTE()<br />

BYTE(97)<br />

BYTE(129)<br />

| Format: Function-invocation<br />

| Operands: Character<br />

has value 'n' (EBCDIC null character)<br />

has value '/'<br />

has value 'a'<br />

| Output: C2B('charstring') converts the character argument to a string of ''<br />

| and '1' characters representing the same bit pattern. Null arguments return<br />

| a null string.<br />

| If the result is not too long, the length of the result is eight times the length of<br />

| the 'charstring' argument.<br />

| Examples<br />

| C2B('') has value ''<br />

| C2B('n') has value ''<br />

| C2B(' ') has value '1'<br />

| C2B('1') has value '11111'<br />

| C2B('1234') has value '111111111111111111111'<br />

| C2D<br />

| Format: Function-invocation<br />

| Operands: Character<br />

| Output: C2D('charstring') converts a character-string argument of at most<br />

| four characters to one to ten decimal characters preceded by a plus or minus<br />

| sign, representing the numeric value of the argument. Null arguments return<br />

| '+'.<br />

| Examples<br />

| C2D('') has value '+'<br />

| C2D('nj') has value '+145'<br />

| C2D('1') has value '+241'<br />

| C2D('') has value '-2526451<br />

| C2X<br />

| Format: Function-invocation<br />

| Operands: Character<br />

| Output: C2X('charstring') converts the character-string argument to<br />

| hexadecimal characters representing the same bit pattern. Null arguments<br />

| return a null string.<br />

| If the result is not too long, the length of the result is two times the length of<br />

| the 'charstring' argument.<br />

| Examples<br />

| C2X('') has value ''<br />

| C2X('n') has value ''<br />

| C2X('1') has value 'F1'<br />

| C2X('a') has value '81'<br />

| C2X('1234567R') has value 'F1F2F3F4F5F6F7D9'<br />

| D2B<br />

| Format: Function-invocation<br />

| Operands: Character<br />

Chapter 9. How to Write Conditional Assembly Instructions 377

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

Saved successfully!

Ooh no, something went wrong!