If the application allows you can disable interrupts while
those commands are running, and re-Enable straight after.
No good for some applications such as a real time counter
but in others you coupd get away with it.