www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/06/11:05:40

Subject: Pointer Arithmetic + physical address mapping
From: Bryanston School <MOLESWORTH DOT THOMAS AT bryanston DOT co DOT uk>
Date: Mon, 06 May 1996 16:55:15 +0100
Message-Id: <000000137472914242915@bryanston.co.uk>
Organization: Bryanston School
To: DJGPP <djgpp AT delorie DOT com>
MIME-Version: 1.0
Thread: Frames, NoFrames, TwoWindows

Does pointer arithmetic only work with ints in DJGPP? I tried using
pointer arithmetic on unsigned ints and longs, and my program gave
a whole list of runtime errors; when I called a subroutine with a pointer
to a variable, it could not access the correct area of memory (the actual
pointer passed to the function was wrong; the value printed in the main
procedure and the function were different)

Also, is it possible to map an area of physical memory (a reserved area of
extended memory at about 1.25 Mb, 1 Mb in size) to a logical address in
DJGPP v1? I found some code which adds 0xE0000000 to the address, is this
right and if so how does it work? The docs say that the 0xE0000000 address
is simply a copy of the first 1 Mb.

Thanks in advance,

Thomas Molesworth
mailto:MOLESWORTH DOT THOMAS AT bryanston DOT co DOT uk

- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2014   by DJ Delorie     Updated Aug 2014