oe_pagetable_ptrtable Struct Reference

#include <mempage.h>

List of all members.


Detailed Description

This struct contain set of callbacks called back from the oe_pagetable when exception occurs (such as "page not exist" or "attempting to write to read-only page").

Note:
using this "callbacks" facility one may implement load-on-demand paging with swap support to support big memory sizes with swapping to disk, or implement special memory regions such as videomemory or memory mapped hardware registers.

Definition at line 45 of file mempage.h.

Public Attributes

uint8(* rm8 )(void *cpu_ref, uint32 addr)
 Read 8-bit value at addr.
void(* wm8 )(void *cpu_ref, uint32 addr, uint8 dat)
 Write 8-bit value at addr.
uint16(* rm16 )(void *cpu_ref, uint32 addr)
 Read 16-bit value at addr.
void(* wm16 )(void *cpu_ref, uint32 addr, uint16 dat)
 Write 16-bit value at addr.
uint32(* rm32 )(void *cpu_ref, uint32 addr)
 Read 32-bit value at addr.
void(* wm32 )(void *cpu_ref, uint32 addr, uint32 dat)
 Write 32-bit value at addr.


Member Data Documentation

uint8(* oe_pagetable_ptrtable::rm8)(void *cpu_ref, uint32 addr)

Read 8-bit value at addr.

Referenced by oe_pagetable::create_pagetable(), RCASTUDIO2::init(), NES::init(), Commodore64::init(), oe_pagetable::read_mem8(), and PPU::setmapper().

void(* oe_pagetable_ptrtable::wm8)(void *cpu_ref, uint32 addr, uint8 dat)

Write 8-bit value at addr.

Referenced by oe_pagetable::create_pagetable(), RCASTUDIO2::init(), NES::init(), Commodore64::init(), PPU::setmapper(), and oe_pagetable::write_mem8().

uint16(* oe_pagetable_ptrtable::rm16)(void *cpu_ref, uint32 addr)

Read 16-bit value at addr.

Referenced by oe_pagetable::create_pagetable(), and oe_pagetable::read_mem16().

void(* oe_pagetable_ptrtable::wm16)(void *cpu_ref, uint32 addr, uint16 dat)

Write 16-bit value at addr.

Referenced by oe_pagetable::create_pagetable(), and oe_pagetable::write_mem16().

uint32(* oe_pagetable_ptrtable::rm32)(void *cpu_ref, uint32 addr)

Read 32-bit value at addr.

Referenced by oe_pagetable::create_pagetable(), and oe_pagetable::read_mem32().

void(* oe_pagetable_ptrtable::wm32)(void *cpu_ref, uint32 addr, uint32 dat)

Write 32-bit value at addr.

Referenced by oe_pagetable::create_pagetable(), and oe_pagetable::write_mem32().


The documentation for this struct was generated from the following file:
Generated on Sat Sep 9 03:50:53 2006 for Openem APIs by  doxygen 1.4.7