Full fix for #195 (border flash bug)

It was caused by a missed line in assembly. Also, two windows had flag assignment instead of bit set.