Mail Archives: djgpp/1996/08/07/11:10:19
Xref: | news2.mv.net comp.os.msdos.djgpp:6819
|
From: | singerb AT expert DOT cc DOT purdue DOT edu (Bryan Singer)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Inline ASM -- video buffer help!
|
Date: | 3 Aug 1996 20:53:01 GMT
|
Organization: | Purdue University Computing Center
|
Lines: | 32
|
Message-ID: | <4u0e7d$2vs@mozo.cc.purdue.edu>
|
NNTP-Posting-Host: | expert.cc.purdue.edu
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I have a question about this code that was posted here.
What is the variable "DosBase"?
Everything else works, but I don't know what DosBase is.
Here's the code:
void bitmap_to_video(struct MemBuf Buffer){
__asm__ __volatile__ ("
pushw %%es;
pushw %%ds;
pushl %%esi;
pushl %%edi;
movw %0, %%es;
movl %1, %%ds;
xorl %%esi, %%esi;
movl $16000, %%ecx;
movl $0xa0000, %%edi;
repz;
movsl;
popl %%edi;
popl %%esi;
popw %%ds;
popw %%es"
:
: "g" (DosBase), "g" (Buffer.BS)
: "memory"
);
}
- Raw text -