delorie.com/archives/browse.cgi | search |
From: | "wbinvd" <wbinvd AT my-dejanews DOT com> |
Newsgroups: | comp.lang.asm.x86,comp.lang.pascal.borland,comp.os.msdos.djgpp |
Subject: | Re: How to align DOS memory block on page boundaries? |
Date: | 17 Aug 1998 12:52:19 GMT |
Organization: | none |
Lines: | 11 |
Approved: | <johnfine AT erols DOT com> |
Message-ID: | <6r9923$k6p$1@winter.news.erols.com> |
References: | <6r6m7l$qbs$7 AT winter DOT news DOT erols DOT com> <6r7slh$6ce$1 AT winter DOT news DOT erols DOT com> |
NNTP-Posting-Host: | 207-172-240-167.s40.as3.bsd.erols.com |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
davidk wrote in message <6r7slh$6ce$1 AT winter DOT news DOT erols DOT com>... |The most robust way is you should test to see if the block is going to hit |the page boundary, and if it does, then do two DMA transfers; first one |starting at the block location, with the size up to the boundary, and the |second starting at the boundary, with the remaining size. That's not always possible. The FDC can only transfer whole sectors and cannot start in the middle of one.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |