Display Hex codes

3 posts / 0 new
Last post
Anonymous (not verified)
Display Hex codes

 

I am working on the manipulation on some Hex codes.
 
I have the following cobol code as example
 
 
01 ws-comp pic s9(4) comp value +0108.
01 ws-char redefines ws-comp.
   05 filler pic x.
   05 ws-hex pic x.
 
 
display ws-hex
 
 
 
Now the sysout will display char "%" and when viewed in hex mode
it will display the actual hex code. which is "6C"
 
 
How to display the hex codes directly without viewing in hex mode?
"; ; ; ;
Offline
Joined: 12/26/2011 - 06:34
how to display hex codes
[quote]How to display the hex codes directly without viewing in hex mode?[/quote]Many of the possible 256 values for 1 byte are not "displayable". To "see" them you must get to the hex. . . If you more clearly explain what you are trying to accomplish, someone may be able to provide a more useful reply.
Anonymous (not verified)
Hex display

I wondered how to do this...finally wrote an assembler routine to do it.

If you want, I can re-write it and send it to you.  This is a shameless plug for Hercules. :-)

Ted

Log in or register to post comments
Sponsored Listing

Click the +1 button  below to share it with your friends and colleagues

 

Share this if you liked it!

 

Disclaimer

Navigation