xcall MIAMEX, MX_GETHEX, hexon
The hexon parameter is a floating point variable which will be set to a non-zero value if hex mode is currently set. Otherwise (i.e. if octal mode is set) it will be set to zero.