scramble.c
来自「这个是延伸mame的在wince平台下的游戏模拟器的代码」· C语言 代码 · 共 32 行
C
32 行
/***************************************************************************
machine.c
Functions to emulate general aspects of the machine (RAM, ROM, interrupts,
I/O ports)
***************************************************************************/
#include "driver.h"
int scramble_IN2_r(int offset)
{
int res;
res = readinputport(2);
/* avoid protection */
if (cpu_getpc() == 0x00e4) res &= 0x7f;
return res;
}
int scramble_protection_r(int offset)
{
return 0x6f;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?