Turns out emerald already has some of these changes, defined as UBFIX, so let's add them here too, and I will port the if ((llFrameSize_p && subFrameSize > *llFrameSize_p) || subFrameSize <= frameSize) while we are at it.
* CopyValue functions should involve volatile accesses
These are writing to specific registers in memory that are memory mapped to do things, so we cannot do any optimizations here regarding memory.
* match pokeemerald's style
---------
Co-authored-by: Marcus Huderle <huderlem@gmail.com>