From: dbarrett AT khaki DOT engin DOT umich DOT edu (David M Barrett) Newsgroups: comp.os.msdos.djgpp Subject: Re: Assembly Question Date: 9 Oct 1996 18:07:52 GMT Organization: University of Michigan Engineering, Ann Arbor Lines: 26 Message-ID: <53gplo$9c3@srvr1.engin.umich.edu> References: <844687041 DOT 3128 DOT 0 AT firewall DOT futurenet DOT co DOT uk> NNTP-Posting-Host: khaki.engin.umich.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Dave McNeill (dmcneill AT pne DOT co DOT uk) wrote: : John David Doty wrote: : >How do I get to the VGA memory in assembly? No C- straight assembly via : >as. All of the examples that I've seen involve using C for at least : >part of the setup. : i use the following: : call __go32_conventional_mem_selector : movw %ax,%es : movl $0x000A0000,%edi : %es:%edi can now be used to write to VGA memory. : dave You may want to check out the Graphics Tutorial available on http://www.delorie.com/djgpp; it covers everything you need. -David :) ----------------------------------------------------------------------------- David M. Barrett :) | University of Michigan / Vizlab Counselor dbarrett AT engin DOT umich DOT edu | http://www-personal.engin.umich.edu/~dbarrett -----------------------------------------------------------------------------