www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/10/24/06:56:16

Date: Fri, 24 Oct 1997 12:46:01 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be>
cc: djgpp workers <djgpp-workers AT delorie DOT com>
Subject: Re: 971009: (offset, selector) are (long unsigned, short unsigned)
In-Reply-To: <344F09FF.6E11@rug.ac.be>
Message-ID: <Pine.SUN.3.91.971024124539.12317N-100000@is>
MIME-Version: 1.0

On Thu, 23 Oct 1997, Vik Heyndrickx wrote:

> -void dosmemget(int offset, int length, void *buffer);
> +void dosmemget(unsigned long offset, size_t length, void *buffer);
> -void dosmemput(const void *buffer, int length, int offset);
> +void dosmemput(const void *buffer, size_t length, unsigned long offset);

Since `dosmemXXX' functions are for accessing the 1st MB of memory,
why is there a need to go to unsigned long for offsets?  To let people
mess with more bits when they have their offsets wrong?

I would go to 16 bits if it were at all possible, but unfortunately
the offset needs 20 bits.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019