But if you mess with IY, you can do a ld IY, Flags, right?
That's right. But one has to remember to do that.
The TI-83+ has some custom flags available for ASM programmers to use. I make use of these flags in S.A.D., but sometimes I would forget to use ld IY, flags after drawing sprites. Needless to say, I got some very wacky results, because IY pointed to the wrong spot.