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

📄 panic.c

📁 这个是延伸mame的在wince平台下的游戏模拟器的代码
💻 C
字号:
/***************************************************************************

  machine.c

  Functions to emulate general aspects of the machine (RAM, ROM, interrupts,
  I/O ports)

***************************************************************************/

#include "driver.h"
#include "Z80/Z80.h"


int panic_interrupt(void)
{
	static int count=0;
    int ans=0;

	count++;

    /* Apparently, only the first 2 ever get called on the real thing! */

	switch(count)
	{
		case 1: ans = 0x00cf;		/* RST 08h */
        	    break;

        case 2: ans = 0x00d7;		/* RST 10h */
                count=0;
                break;

#if 0
        case 3: ans = 0x00df;		/* RST 18h */
                break;

        case 4: ans = 0x00e7;		/* RST 20h */
                break;
#endif

    };

    return ans;

}

⌨️ 快捷键说明

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