Xref: news2.mv.net comp.os.msdos.djgpp:7200 From: John Luebs Newsgroups: comp.os.msdos.djgpp Subject: Re: Inline ASM -- video buffer help! Date: Mon, 12 Aug 1996 20:08:09 -0400 Organization: EpiCenter Software Lines: 36 Message-ID: <320FC769.24F5@sprynet.com> References: <199608071705 DOT KAA08835 AT bluesky> Reply-To: jkluebs AT sprynet DOT com NNTP-Posting-Host: dd15-089.compuserve.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Kevin Baca wrote: > > > 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 Or you can use _dos_ds!