X-Apparently-From: Message-ID: <001301bf3255$2d795ac0$3bf838ca@home-computer> From: "Prashant TR" To: "Ulf Wikström" Cc: Subject: Re: Absolute addresses Date: Fri, 19 Nov 1999 11:12:06 +0530 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com From: Davin McCall >The "method for using 32-bit memory >addresses without using pm" is called "real big mode" or "unreal >mode" >(amongst other names) and is a royal pain It isn't really a pain, but you normally won't need to do this if you're using DJGPP. This takes just a few lines of assembly code, but it must be 16-bit. I use this to write memory testing routines. But for your kind of implementation (VGA mem. access), there are better ways to do it. > > >On Wed, 17 Nov 1999 10:04:42 +0100, "Ulf Wikström" > wrote: > >>I'm using DJGPP with inline assembler. >>How do I specify an absolute memory adress using assembler??? >>I would >>like to access vga-memory... You can create a selector whose base = the vid. mem. base. You can pass the value of this selector to the asm function and use it there. Cool, isn't it? See section 18.2 of the FAQ for more details about this. __________________________________________________ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com