Header file of the 6502 dll developement kit. Library for creating emu6502 plugins.
Definition in file dllkit.h.#include <windows.h>
Go to the source code of this file.
Data Structures | |
struct | INITDLLINFO |
Structure containing various informations returned by InitDll. More... | |
struct | INITDLLSTRUCT |
Initial informations passed to plugin when initializing. More... | |
struct | MESSAGEDLLSTRUCT |
Message structure passed to plugins, when registered message occured. More... | |
Defines | |
#define | DLLEXPORT __declspec(dllexport) |
#define | IOLO 0xD000 |
Lower boundary of memory serving for device maping. | |
#define | IOHI 0xD7FF |
Higher boundary of memory serving for device maping. | |
#define | NMIID 0x020A |
Register in memory which serves to identify the source of last interrupt. | |
#define | IRQID 0x020B |
#define | RESETID 0x020C |
#define | ISVBI 0x020D |
#define | ENDOFMSGLIST 0xBFFF |
Marks the end of the list of messages MSGLIST. | |
Typedefs | |
typedef UINT * | MSGLIST |
List of messages. | |
Enumerations | |
enum | iomode { IOREAD, IOWRITE } |
Determines, if iofunc is called when reading or writing. More... | |
Functions | |
BOOL | CreateMsgList (MSGLIST *MsgList, int MessageCount) |
Allocates MsgList. | |
void | FreeMsgList (MSGLIST MsgList) |
Deallocates MsgList Calls free on MsgList. | |
void | AddMessage (MSGLIST MsgList, UINT Message) |
Adds Message to the given MsgList. | |
DLLEXPORT void __cdecl | IOFunc (UINT adr, unsigned char *data, iomode mode) |
IO function mapped into some adress in memory. | |
DLLEXPORT void __cdecl | InitDll (INITDLLSTRUCT *ids, INITDLLINFO *idf) |
Inits dll data structures. | |
DLLEXPORT void __cdecl | OnMessage (MESSAGEDLLSTRUCT *mds) |
Recieves registered messages from emu6502 application. |
|
Marks the end of the list of messages MSGLIST.
|
|
Higher boundary of memory serving for device maping.
|
|
Lower boundary of memory serving for device maping.
|
|
Register in memory which serves to identify the source of last interrupt.
|
|
List of messages.
Used for specifying messages to be catched or to be sent. Length of this list should be the number of messages to be held within + 1, and the list should end with ENDOFMSGLIST |
|
Determines, if iofunc is called when reading or writing.
|
|
Adds Message to the given MsgList.
Adds Message to the given MsgList. The message shouldn't be ENDOFMSGLIST.
|
|
Allocates MsgList.
Allocates MsgList for holding MessageCount of messages. MsgList takes (MessageCount + 1) * sizeof(UINT) bytes and first item is set to ENDOFMSGLIST.
|
|
Deallocates MsgList Calls free on MsgList.
|
|
Inits dll data structures.
Definition at line 41 of file genericdll.c. |
|
IO function mapped into some adress in memory.
Called directly when accesing adress to which is this function bound. Always write this function.
Definition at line 102 of file genericdll.c. |
|
Recieves registered messages from emu6502 application.
This function is called by emu6502 when some message event registered by InitDll occures. Implement this function even when you don't want to catch any messages.
Definition at line 68 of file genericdll.c. |