delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/22/20:45:20.1

From: "Johan Venter (aka sphinX)" <^_^@delorie.com>
Newsgroups: comp.os.msdos.djgpp
References: <75jv7q$qc0$1 AT nnrp1 DOT dejanews DOT com>
Subject: Re: Gaps between my banks (vesa prog question)
Date: Tue, 22 Dec 1998 16:53:55 +1100
Lines: 18
MIME-Version: 1.0
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: 203.40.82.17
Message-ID: <367f57ff.0@139.134.5.33>
X-Trace: 22 Dec 1998 18:27:43 +1000, 203.40.82.17
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

<<skip some code>>
>my_bank=(int)(offset/64000);
>
>bank_switch(my_bank);
>
>offset=offset - (64000*(int)my_bank);

Um...of course there are going to be holes in your banks because if the bank is 64K big
then the bank is 65536 bytes big, not 64000, thus making up the difference in your banks.

--
sphinX

e-mail:   sphinx AT iname DOT com
icq:   3643877



- Raw text -


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