Thanks for the code, but when I input 0x64, I get 0x90 as an output.

In the meantime, I try to figure it out at this end.