Converting a hex pair to decimal
I get a pair of hex numbers in a SysEx stream from a synthesizer an need to convert them to an integer value in the range 0-255-
The manual of the Synth says:
Parameter: LFO Rate
Data: HLLL LLLL
Range: 0-255
Hi-Byte: 0000 000H
Low-Byte: 0LLL LLLL
I think I have to take 2 hex bytes out of the stream and convert them do decimal. Yes, I can identify this hex pair because I know the data before and after. I don't know much about such convertions, but everything I try gives other results than the examples below:
Hex pair 1 66 should result in decimal 194
Hex pair 175 should result in decimal 203
Any hints how to convert this pair?
Or are the example results wrong? (got the values from the manual)
Oh! That easy. The miraculous world of hexadecimalism.
Thank you!