VESA WindowB -> WindowA copying

VESA WindowB -> WindowA copying

Post by Scott Dall » Mon, 29 Jul 1996 04:00:00



If anyone can tell me where I'm going wrong, please lend a hand.

I have writen several 50x50 bitmaps to high display memory (I'm
working in mode 101h 640x480 256color).  I'm trying to copy one of
these to a location in the visible display area.  Here's psuedocode of
what I am doing;

        Set WindowB to source location

        Set WindowA to destination location

        for (Index = 0; Index < HeightofBitmap; Index++ ) {
          Location1 = (Index * 50) + (bitmap# * 50;
          Location2 = (Index * 50);
          asm mov si, WORD PTR Location1
          asm mov di, WORD PTR Location2
          asm mov cx, 25
          asm cld
          asm rep movsw
        }

This does move some data, but it is really doing some strange things
to the program...

Also, does anyone know where I can find some detailed info on using
the VESA functions.  Please pass anything you have along!

Scott Dallas