adjust mask for MSB of demarshall code to take into account 'shift'  (fixes bug in examples/simple)