fix Inner Worlds (vasyl)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2299
This commit is contained in:
parent
f1209ea5a1
commit
406935348a
3 changed files with 30 additions and 22 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: paging.h,v 1.16 2005-03-25 11:41:26 qbix79 Exp $ */
|
||||
/* $Id: paging.h,v 1.17 2005-09-03 11:38:18 c2woody Exp $ */
|
||||
|
||||
#ifndef DOSBOX_PAGING_H
|
||||
#define DOSBOX_PAGING_H
|
||||
|
@ -131,6 +131,14 @@ extern PagingBlock paging;
|
|||
|
||||
PageHandler * MEM_GetPageHandler(Bitu phys_page);
|
||||
|
||||
/* Use this helper function to access linear addresses in readX/writeX functions */
|
||||
INLINE PhysPt PAGING_GetLinearAddress(PhysPt addr) {
|
||||
if (paging.enabled)
|
||||
return (paging.tlb.phys_page[addr>>12]<<12)|(addr&0xfff);
|
||||
else
|
||||
return addr;
|
||||
}
|
||||
|
||||
/* Unaligned address handlers */
|
||||
Bit16u mem_unalignedreadw(PhysPt address);
|
||||
Bit32u mem_unalignedreadd(PhysPt address);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue