Hah. VRAM address translation.

Probably not the best/fastest way to do it, but will work.