in reply to Pack uneven length hex
If you want always want to output 16-bits,
pack "n", hex "a12" [download]