Pmode - Pageflipping

I've used TP7 until I came over TMT.. A free pmode compiler..
It works real nice, except one thing:
I can't use my old routine to do pageflipping, it says segment always
returns 0...?

Could anyone give me some example source or help on how to do
pageflipping, buffering in pmode with pascal ?

Greets from Anders