On the LZ we have the HEX$ function for returning a hexadecimal string representation of an integer - but not for the other way round. Here’s a function to do just that. Caveats are the hex letters must be in uppercase and string length must be four characters.
INTHEX%:
Syntax: x%=INTHEX%:(h$)
Returns a two byte integer value of the hexadecimal string expression in the brackets. For example: INTHEX%:(“20CD”) will return 8397.