Oh, you also didn't include any code to push your registers before you use them, and pop them when you're done (remember FILO order).
Good luck
Starfall
Oh, you also didn't include any code to push your registers before you use them, and pop them when you're done (remember FILO order).
Good luck
Starfall
I was told that VC++ 6.0 automatically pops and pushes registers.
Putting the labels in the _asm{} block generates a lot of errors (maybe they must be typed differently?).
I've been told labels in ASM code do nasty things in Borland too, though in VC5 they work well enough for me. You shouldn't need them if you just use rep movsd though.
Though the buffer is in the system memory, you will still get system to video h/w acceleration on many modern cards (use the dx diags software to see if you can on your specific card). It's often noticeably faster than doing things yourself, so it's worth at least having the option there.
Regards
Starfall
Rock