The idea for this post came from a question I was asked by a friend. In a RPG program is there a simple way to convert a character value to hexadecimal, and vice versa.
I know of two Machine Instruction procedures that will do this for me:
cvthc: Convert character to hex
cvtch: Convert hex to character
In my examples I am going to convert a couple of character strings to hex, and then convert one back from hex to character. All of this I performed in one RPG program. Let me start by showing all the definitions:
Read more » Read More