Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

mem.h File Reference


Detailed Description

.h file to the mem.c

Definition in file mem.h.#include "dlluser.h"

Go to the source code of this file.

Defines

#define TRUE   1
#define FALSE   0
#define MEMSIZE   65536
 Size of memory.

#define PAGESIZE   8
 No. of bits of pagesize. Should correspond with MEMSIZE and PAGECOUNT.

#define PAGECOUNT   256
 No. of pages. Should correspond with MEMSIZE and PAGECOUNT.

#define IOLO   0xD000
 Lower boundary of memory serving for device maping.

#define IOHI   0xD7FF
 Higher boundary of memory serving for device maping.


Typedefs

typedef unsigned int UINT

Functions

unsigned char memgetb (UINT adr)
 memory reading function

void memsetb (UINT adr, unsigned char byte)
 memory writing function

void SetMemory (char *buf)
 Fills memory with given data.

void InitMem ()
 Zeroes memio and initializes CSMemory.

void SetIOFunc (pIOFunc piof, UINT loadr, UINT hiadr)
 Binds given io function to range of adresses.


Variables

unsigned char memory []
 Variable containing accessible memory +4 as pillow.

CRITICAL_SECTION CSMemory
 A synchronization primitive used for shared acces to memory.

pIOFunc memio [IOHI-IOLO+1]
 IO part of memory.


Define Documentation

#define IOHI   0xD7FF
 

Higher boundary of memory serving for device maping.

Definition at line 26 of file mem.h.

#define IOLO   0xD000
 

Lower boundary of memory serving for device maping.

Definition at line 24 of file mem.h.

#define MEMSIZE   65536
 

Size of memory.

Definition at line 17 of file mem.h.

#define PAGECOUNT   256
 

No. of pages. Should correspond with MEMSIZE and PAGECOUNT.

Definition at line 21 of file mem.h.

#define PAGESIZE   8
 

No. of bits of pagesize. Should correspond with MEMSIZE and PAGECOUNT.

Definition at line 19 of file mem.h.


Function Documentation

void InitMem  
 

Zeroes memio and initializes CSMemory.

Definition at line 97 of file mem.c.

unsigned char memgetb UINT    adr
 

memory reading function

Calls iofunc when neccesary

See also:
memsetb

Definition at line 32 of file mem.c.

void memsetb UINT    adr,
unsigned char    byte
 

memory writing function

Calls iofunc when neccesary

See also:
memgetb

Definition at line 73 of file mem.c.

void SetIOFunc pIOFunc    piof,
UINT    loadr,
UINT    hiadr
 

Binds given io function to range of adresses.

Parameters:
piof  An io function which should service reading and writing to these adresses
loadr  Lower end of the range demanded
hiadr  Higher end of the range demanded

Definition at line 109 of file mem.c.

void SetMemory char *    buf
 

Fills memory with given data.

Definition at line 117 of file mem.c.


Variable Documentation

CRITICAL_SECTION CSMemory
 

A synchronization primitive used for shared acces to memory.

Definition at line 32 of file mem.h.

pIOFunc memio[IOHI - IOLO + 1]
 

IO part of memory.

Containins pointers to io functions of devices mapped into the io part of memory.

See also:
iofunc

Definition at line 41 of file mem.h.

unsigned char memory[]
 

Variable containing accessible memory +4 as pillow.

Definition at line 29 of file mem.h.


Generated on Fri Sep 6 18:32:15 2002 for Emu6502 by doxygen1.2.17