NESData.h
上传用户:luhy168
上传日期:2022-01-10
资源大小:240k
文件大小:1k
源码类别:

模拟服务器

开发平台:

Visual C++

  1. //------------------------------------------------------------------------------
  2. // Name: NESData.h
  3. // Desc: This header file holds the structure that is passed to the memory
  4. //       mapper .dll. This structure holds pointers to our variables that
  5. //       the mapper may need to use or modify.
  6. //------------------------------------------------------------------------------
  7. #ifndef __NESDATA_H__
  8. #define __NESDATA_H__
  9. #include "Cpu.h"
  10. #include "Ppu.h"
  11. typedef struct tagNESData
  12. {
  13. NES6502* pCPU;            // Pointer to the CPU structure.
  14. NESPPU*  pPPU;            // Pointer to the PPU structure.
  15. BYTE*    pabyPRGROM;      // Pointer to the array of program rom.
  16. WORD     wNumPRGROMPages; // Number of program rom pages.
  17. BYTE*    pabyCHRROM;      // Pointer to the array of pattern rom.
  18. WORD     wNumCHRROMPages; // Number of program rom pages.
  19. } NESDATA;
  20. #endif