By the way the only reason yours wouldn't compile is because of a typo XD

You put: ldrh r8, 0x1FFE
if you put
ldrh r8,=0x1FFE
it compiles