m6502hlp.h

来自「十七种模拟器源代码 非常有用的作课程设计不可缺少的」· C头文件 代码 · 共 103 行

H
103
字号
/******************************************************************************//*                                                                            *//*                        M6502 INTERFACE (MAKE-6502)                         *//*                                                                            *//******************************************************************************/#include "deftypes.h"#include "m6502.h"#define MAX_6502	(3)struct m6502context	M6502_context[MAX_6502];struct MemoryReadByte	M6502A_memoryreadbyte[32];struct MemoryWriteByte	M6502A_memorywritebyte[32];/* *  Fill in the basic structures via these functions... */void AddM6502AROMBase(UINT8 *d0);void AddM6502AReadByte( UINT32 d0, UINT32 d1, void *d2, UINT8 *d3);void AddM6502AWriteByte(UINT32 d0, UINT32 d1, void *d2, UINT8 *d3);/* *  Set Memory pointers to our structures... */void AddM6502AInit(void);/* *  Allocate basic structures. Make sure you allocate *  enough room for all memory entries (Max of 32)! */struct MemoryReadByte	M6502B_memoryreadbyte[32];struct MemoryWriteByte	M6502B_memorywritebyte[32];/* *  Fill in the basic structures via these functions... */void AddM6502BROMBase(UINT8 *d0);void AddM6502BReadByte( UINT32 d0, UINT32 d1, void *d2, UINT8 *d3);void AddM6502BWriteByte(UINT32 d0, UINT32 d1, void *d2, UINT8 *d3);/* *  Set Memory pointers to our structures... */void AddM6502BInit(void);/* *  Allocate basic structures. Make sure you allocate *  enough room for all memory entries (Max of 32)! */struct MemoryReadByte	M6502C_memoryreadbyte[32];struct MemoryWriteByte	M6502C_memorywritebyte[32];/* *  Fill in the basic structures via these functions... */void AddM6502CROMBase(UINT8 *d0);void AddM6502CReadByte( UINT32 d0, UINT32 d1, void *d2, UINT8 *d3);void AddM6502CWriteByte(UINT32 d0, UINT32 d1, void *d2, UINT8 *d3);/* *  Set Memory pointers to our structures... */void AddM6502CInit(void);void M6502A_load_update(void);void M6502B_load_update(void);void M6502C_load_update(void);/*----------------------------------------------*/void ClearM6502List(void);void StopM6502(UINT16 address, UINT8 data);void SetStopM6502Mode2(UINT16 address);void StopM6502Mode2(UINT16 address, UINT8 data);void SetStopM6502BMode2(UINT16 address);void StopM6502BMode2(UINT16 address, UINT8 data);void SetStopM6502CMode2(UINT16 address);void StopM6502CMode2(UINT16 address, UINT8 data);UINT8 DefBadReadM6502(UINT16 offset);void DefBadWriteM6502(UINT16 offset, UINT8 data);void M6502ASetBank(UINT8 *src);void M6502BSetBank(UINT8 *src);void M6502CSetBank(UINT8 *src);

⌨️ 快捷键说明

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