Mail Archives: djgpp/1995/08/16/13:28:09
Hello, all.
Quick question about using djgpp's inline stuff:
I'm writing a routine that copies a double buffer into the video
buffer. The parts of my program that are of interest:
/* -------------------- Globals -------------------- */
char *double_buffer;
char *video_buffer=0xd0000000;
Here's the module giving me trouble:
vid_ShowDoubleBuffer(void)
{
#ifdef Borland4.5
asm{
push ds
les di, video_buffer
lds si, double_buffer
mov cx, 320*200/2
rep movsw
pop ds
}
#endif
#ifdef DJ
asm("
push %ds
les (_video_buffer), %edi
ldsw (_double_buffer), %esi
movw 320*200/2, %cx
rep; movsw
pop %ds
");
#endif
} /* End vid_ShowDoubleBuffer */
The Borland45 inline works(with Borland 4.5 obviously).
The DJ version compiles, links, and runs and stuff but
coughs when it hits the inline and pukes out
the registers and stuff. Anyone have a clue? Please post
or email(kore AT eurpd DOT csg DOT mot DOT com), email preferred. Thanks!
--Ken
--
+---------------------------------------------+
| Ken Ore ~ kore AT eurpd DOT csg DOT mot DOT com
|
| Software Engineer
- Raw text -