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

📄 dkong.c

📁 这个是延伸mame的在wince平台下的游戏模拟器的代码
💻 C
字号:
#include "driver.h"
#include "I8039/I8039.h"


void dkong_sh_w(int offset,int data)
{
	if (data)
		cpu_cause_interrupt(1,I8039_EXT_INT);
}


void dkong_sh1_w(int offset,int data)
{
	static int state[8];

	if (state[offset] != data)
	{
		if (data)
			sample_start (offset, offset, 0);

		state[offset] = data;
	}
}


void dkongjr_sh_death_w(int offset,int data)
{
	static int death = 0;

	if (death != data)
	{
		if (data)
			sample_start (7, 0, 0);

		death = data;
	}
}

void dkongjr_sh_drop_w(int offset,int data)
{
	static int drop = 0;

	if (drop != data)
	{
		if (data)
			sample_start (7, 1, 0);

		drop = data;
	}
}

void dkongjr_sh_roar_w(int offset,int data)
{
	static int roar = 0;

	if (roar != data)
	{
		if (data)
			sample_start (7,2,0);

		roar = data;
	}
}

void dkongjr_sh_jump_w(int offset,int data)
{
	static int jump = 0;

	if (jump != data)
	{
		if (data)
			sample_start (6,3,0);

		jump = data;
	}
}

void dkongjr_sh_walk_w(int offset,int data)
{
	static int walk = 0;

	if (walk != data)
	{
		if (data)
			sample_start (5,4,0);

		walk = data;
	}
}

void dkongjr_sh_land_w(int offset,int data)
{
	static int land = 0;

	if (land != data)
	{
		if (data)
			sample_start (4,5,0);

		land = data;
	}
}



void dkongjr_sh_climb_w(int offset,int data)
{
	static int climb = 0;

	if (climb != data)
	{
		if (data)
			sample_start (3,6,0);

		climb = data;
	}
}

⌨️ 快捷键说明

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