NESData.h
资源名称:fcSOURCE.rar [点击查看]
上传用户:luhy168
上传日期:2022-01-10
资源大小:240k
文件大小:1k
源码类别:
模拟服务器
开发平台:
Visual C++
- //------------------------------------------------------------------------------
- // Name: NESData.h
- // Desc: This header file holds the structure that is passed to the memory
- // mapper .dll. This structure holds pointers to our variables that
- // the mapper may need to use or modify.
- //------------------------------------------------------------------------------
- #ifndef __NESDATA_H__
- #define __NESDATA_H__
- #include "Cpu.h"
- #include "Ppu.h"
- typedef struct tagNESData
- {
- NES6502* pCPU; // Pointer to the CPU structure.
- NESPPU* pPPU; // Pointer to the PPU structure.
- BYTE* pabyPRGROM; // Pointer to the array of program rom.
- WORD wNumPRGROMPages; // Number of program rom pages.
- BYTE* pabyCHRROM; // Pointer to the array of pattern rom.
- WORD wNumCHRROMPages; // Number of program rom pages.
- } NESDATA;
- #endif