Why not use the CLIPPED eflag?

if (!(my.eflags&CLIPPED))