delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/30/19:00:07

Date: Tue, 30 Sep 1997 18:58:16 -0400 (EDT)
Message-Id: <199709302258.SAA18761@delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: peuha AT cc DOT helsinki DOT fi
CC: djgpp AT delorie DOT com
In-reply-to: <199709300645.JAA26245@kruuna.Helsinki.FI> (message from Esa A E
Peuha on Tue, 30 Sep 1997 09:45:03 +0300 (EET DST))
Subject: Re: Segments vs Selectors

> 1M+64K-16, I hope. The highest address that can be accessed with a real-mode
> segment:offset pair is (16+1)*0xffff = 0x10ffef.

Yes, but you can't control large segments that finely.  You have to
round it to at least a 4K boundary.

Besides, the limit is 1M+64-16+3, since you can do a 32-bit access
starting at the last byte in the segment, and it will go past the end
of the segment.

- Raw text -


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