> Shouldn't it be sufficient to do it at the first command within main there's some other code that is run before the first line of main in an embassy program. not huge amounts, but enough for it to be a problem. > probably fine for a single volatile op at least it's working okay at the moment, shouldn't use the stack or statics at all. i should write the asm for it though to be more safe.