X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "arizvi" Newsgroups: comp.os.msdos.djgpp Subject: dosmemput and dosmemget Date: 3 Mar 2005 09:48:47 -0800 Organization: http://groups.google.com Lines: 33 Message-ID: <1109872127.199181.31850@l41g2000cwc.googlegroups.com> NNTP-Posting-Host: 66.32.25.19 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1109872131 17493 127.0.0.1 (3 Mar 2005 17:48:51 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Thu, 3 Mar 2005 17:48:51 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse AT google DOT com Injection-Info: l41g2000cwc.googlegroups.com; posting-host=66.32.25.19; posting-account=Se-Idg0AAAC00LEpjdiQS7ZeyWGDYpCA To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, I have a question about the behavior of dosmemput and dosmemget. I am not familiar about the relationship between conventional memory and dos memory, hence the doubt. The following is a description of dosmemput from the C Library Reference: #include void dosmemput(const void *buffer, int length, int offset); Description This function transfers data from the program's virtual address space to MS-DOS's conventional memory space. My doubt it whether the function actually copies data from one memory space to another, or if there is no actual copying but some sort of remapping of address spaces. By remapping, I mean something like .. DOS is told - hey, you have new data at such and such physical memory location. I'm sorry if this sounds like a simple question, but as I said - I'm not familiar with how memory is laid out. I am writing a program with lots of dosmemput(s) and dosmemget(s). If I could reduce the number of these function calls by once and for all telling DOS that I would like to work in DOS memory - there would be no need for those calls. I hope this makes sense. Thanks, Ahmad