Message-Id: <199608071705.KAA08835@bluesky> Comments: Authenticated sender is From: "Kevin Baca" To: singerb AT expert DOT cc DOT purdue DOT edu (Bryan Singer), djgpp AT delorie DOT com Date: Wed, 7 Aug 1996 10:07:59 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Inline ASM -- video buffer help! > 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" > : I don't see any DosBase here in this code but I assume it's the segment selector for conventional DOS memory. This value is also stored in _go32_info_block.selctor_for_linear_memory. You can get at _go32_info_block by including go32.h in your program. -Kevin