But more seriously it's the job of the program to not do undefined things.
What's the undefined behavior in assembly?