IC   Rx,HEXVAL
STC  Rx,DISPLY+1
SRL  Rx,4
STC  Rx,DISPLY
NC   DISPLY(2),=X'0F0F'
TR   DISPLY(2),=C'0123456789ABCDEF'

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
Behalf Of Bill Ashton
Sent: Monday, September 12, 2016 09:33
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Converson of hex value to character

Hello my friends, this is a simple assembler question, but for some reason
is not clicking for me this morning.

How do I take a 1-byte character field containing a Hex value like x'C4'
and turn it into a 2-byte character field containing C4 (x'C3F4')? I know
how to turn it into a decimal value and Edit and all that, but I am
blanking on this simple conversion.

Thanks for your patience and your solution!

-- 
Thank you and best regards,
*Billy Ashton*

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to