From: rbarbosa AT my-dejanews DOT com Newsgroups: comp.os.msdos.djgpp Subject: Memory problem Date: Tue, 13 Oct 1998 13:24:25 GMT Organization: Deja News - The Leader in Internet Discussion Lines: 18 Message-ID: <6vvka9$ika$1@nnrp1.dejanews.com> NNTP-Posting-Host: 205.136.71.194 X-Article-Creation-Date: Tue Oct 13 13:24:25 1998 GMT X-Http-User-Agent: Mozilla/4.04 [en] (X11; I; Linux 2.0.30 i686) X-Http-Proxy: 1.0 x2.dejanews.com:80 (Squid/1.1.22) for client 205.136.71.194 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hey all, I'm not sure if this has already been asked/answered, but here goes. I'm a djgpp newbie (a total newbie to protected mode programming). My question is this, is there any way to dump a value (x) into (n) contiguous memory locations starting at a given address (a). I know memset(a, x, n) will do this, but memset() doesn't allow me to access protected space (like video RAM and such). I've been trying to check Brennan's page, but it's been down all weekend. If anyone can send me the function name, I can probably figure out the rest, but I would appreciate a snippet of example code, if it's not a problem. Basically, what I need is the memset() equivalent that can access protected space, or a way to unprotect that space, write to it, and protect it again. Thanks again... -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own