⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 io.h

📁 nes游戏模拟器
💻 H
字号:
//------------------------------------------------------------------------------
// Name: Io.h
// Desc: Header file for Io.cpp
//------------------------------------------------------------------------------

#ifndef __IO_H__
#define __IO_H__

#include "Cpu.h"
#include "Ppu.h"
#include "Joystick.h"
#include "NESData.h"

// Function prototypes
BYTE  __stdcall GetMemoryByte(WORD wAddress);
BYTE* __stdcall GetMemoryPointer(WORD wAddress);
BYTE  __stdcall ReadMemory(WORD wAddress);
VOID  __stdcall WriteMemory(WORD wAddress, BYTE byData);
BYTE  __stdcall PPUReadMemory(WORD wAddress);
VOID  __stdcall PPUWriteMemory(WORD wAddress, BYTE byData);

// Externals needed.
typedef BOOL (*MAPPERLOAD)(NESDATA*);
typedef BYTE (*MAPPERREAD)(WORD);
typedef BOOL (*MAPPERWRITE)(WORD, BYTE);

extern MAPPERLOAD  MapperOnLoad;
extern MAPPERREAD  MapperOnRead;
extern MAPPERWRITE MapperOnWrite;

extern NES6502  CPU;
extern NESPPU   PPU;
extern Joystick Joy1;
extern BYTE     byVRAMAddrRegToggle;
extern WORD     wVRAMAddress;
extern BYTE     abySPRRAM[256];
extern BYTE     byHScroll[300];
extern BYTE     byVScroll[300];
extern WORD     wScanline;
extern BOOL     bBreak;

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -