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

📄 tc100scn.h

📁 十七种模拟器源代码 非常有用的作课程设计不可缺少的
💻 H
字号:
/******************************************************************************//*                                                                            *//*             tc0100scn: TAITO SCREEN LAYER CHIP (BG0/BG1/FG0)               *//*                                                                            *//******************************************************************************/#include "deftypes.h"#define MAX_CHIP		2		// F1-System has 2 chips#define SCN_BG0			0		// Layer type values#define SCN_BG1			0#define SCN_FG0			1#define SCN_FG0_SCROLL		2#define SCN_FG0_SCROLL_2	3int tc0100scn_layer_count;			// Init this to 0 each screen update.typedef struct TC0100SCN_LAYER			// Information about 1 layer{   UINT8 *RAM;					// Layer RAM address   UINT8 *GFX;					// Layer GFX address   UINT8 *SCR;					// Layer SCROLL RAM address   UINT8 *MASK;					// Layer GFX SOLID MASK address   UINT32 type;					// Type of layer (BG0/BG1/FG0)   UINT32 bmp_x,bmp_y;				// Game screen offset (32,32)   UINT32 bmp_w,bmp_h;				// Game screen size (320,224)   mapper_direct *mapper;			// Colour mapper   UINT32 tile_mask;				// mask for tile number   UINT32 scr_x,scr_y;				// Scroll offset add (16,8)} TC0100SCN_LAYER;typedef struct TC0100SCN			// Information about 1 chip{   TC0100SCN_LAYER layer[3];			// BG0/BG1/FG0 layer data   UINT16 ctrl;					// Layer control data   UINT8 *RAM;   UINT8 *GFX_FG0;} TC0100SCN;struct TC0100SCN tc0100scn[MAX_CHIP];void render_tc0100scn_layer_mapped(int chip, int layer);void render_tc0100scn_layer_r180_mapped(int chip, int layer);void render_tc0100scn_layer_mapped_r270(int chip, int layer);void render_tc0100scn_layer_mapped_flipy(int chip, int layer);/******************************************************************************/UINT8 *GFX_FG0;UINT8 *GFX_FG1;void init_tc0100scn(int chip);void tc0100scn_0_gfx_fg0_wb  (UINT32 addr, UINT8 data);void tc0100scn_0_gfx_fg0_ww  (UINT32 addr, UINT16 data);void tc0100scn_0_copy_gfx_fg0(UINT8 *src, UINT32 size);void tc0100scn_1_gfx_fg0_wb  (UINT32 addr, UINT8 data);void tc0100scn_1_gfx_fg0_ww  (UINT32 addr, UINT16 data);void tc0100scn_1_copy_gfx_fg0(UINT8 *src, UINT32 size);void tc0100scn_0_gfx_fg0_wb_r270  (UINT32 addr, UINT8 data);void tc0100scn_0_gfx_fg0_ww_r270  (UINT32 addr, UINT16 data);void tc0100scn_0_copy_gfx_fg0_r270(UINT8 *src, UINT32 size);void tc0100scn_0_update_gfx_fg0(void);/******************************************************************************/

⌨️ 快捷键说明

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