.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. |
|
Higher boundary of memory serving for device maping.
|
|
Lower boundary of memory serving for device maping.
|
|
Size of memory.
|
|
No. of pages. Should correspond with MEMSIZE and PAGECOUNT.
|
|
No. of bits of pagesize. Should correspond with MEMSIZE and PAGECOUNT.
|
|
Zeroes memio and initializes CSMemory.
|
|
memory reading function
Calls iofunc when neccesary
|
|
memory writing function
Calls iofunc when neccesary
|
|
Binds given io function to range of adresses.
|
|
Fills memory with given data.
|
|
A synchronization primitive used for shared acces to memory.
|
|
IO part of memory.
Containins pointers to io functions of devices mapped into the io part of memory.
|
|
Variable containing accessible memory +4 as pillow.
|