This is a nice little command script that embellishes Stan Sieler s quick
error decode procedure. This script eliminates interacting with debug
directly and providing the syntax for negative decimal numbers.
parm p_subsys=108,p_error=63
comment This command file decodes subsys and info error codes.
comment Compliments of Mike Hornsby from Beechglen Development.
comment With special thanks to Stan Sieler from Allegro.
comment
setvar subsys hex(!p_subsys)
setvar error hex(!p_error)
comment the hex conversion allows for negative numbers
comment the #32765 is magic according to Stan!
setvar cmd "wl errmsg(#32765,!subsys);wl errmsg(!error,!subsys);exit"
debug !cmd