www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/27/19:25:14

From: nikki AT gameboutique DOT co (nikki)
Newsgroups: comp.os.msdos.djgpp
Subject: aligning memory under djgpp
Date: 27 Jan 1997 19:44:56 GMT
Organization: GameBoutique Ltd.
Lines: 14
Message-ID: <5cj0jo$cre@flex.uunet.pipex.com>
Reply-To: nikki AT gameboutique DOT co
NNTP-Posting-Host: www.gameboutique.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

is there a way to ensure that a block of memory is aligned to a 256k boundary?
i just need to ensure that the bottom 18 bits of the address are 0 you see.
i could choose an array 256k bigger than i need and that would ensure that i could
align it in this way, but then i've wasted up to 256k which seems a bit futile.
any suggestions?

nik


-- 
Graham Tootell           GameBoutique Ltd. - THE online gaming experience
nikki AT gameboutique DOT com   http://www.gameboutique.com


- Raw text -


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