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

模拟服务器

开发平台:

Visual C++

  1. //------------------------------------------------------------------------------
  2. // Name: Io.h
  3. // Desc: Header file for Io.cpp
  4. //------------------------------------------------------------------------------
  5. #ifndef __IO_H__
  6. #define __IO_H__
  7. #include "Cpu.h"
  8. #include "Ppu.h"
  9. #include "Joystick.h"
  10. #include "NESData.h"
  11. // Function prototypes
  12. BYTE  __stdcall GetMemoryByte(WORD wAddress);
  13. BYTE* __stdcall GetMemoryPointer(WORD wAddress);
  14. BYTE  __stdcall ReadMemory(WORD wAddress);
  15. VOID  __stdcall WriteMemory(WORD wAddress, BYTE byData);
  16. BYTE  __stdcall PPUReadMemory(WORD wAddress);
  17. VOID  __stdcall PPUWriteMemory(WORD wAddress, BYTE byData);
  18. // Externals needed.
  19. typedef BOOL (*MAPPERLOAD)(NESDATA*);
  20. typedef BYTE (*MAPPERREAD)(WORD);
  21. typedef BOOL (*MAPPERWRITE)(WORD, BYTE);
  22. extern MAPPERLOAD  MapperOnLoad;
  23. extern MAPPERREAD  MapperOnRead;
  24. extern MAPPERWRITE MapperOnWrite;
  25. extern NES6502  CPU;
  26. extern NESPPU   PPU;
  27. extern Joystick Joy1;
  28. extern BYTE     byVRAMAddrRegToggle;
  29. extern WORD     wVRAMAddress;
  30. extern BYTE     abySPRRAM[256];
  31. extern BYTE     byHScroll[300];
  32. extern BYTE     byVScroll[300];
  33. extern WORD     wScanline;
  34. extern BOOL     bBreak;
  35. #endif