spacefb.c

来自「这个是延伸mame的在wince平台下的游戏模拟器的代码」· C语言 代码 · 共 38 行

C
38
字号
/***************************************************************************

  machine.c

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

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

#include "driver.h"

extern unsigned char spacefb_vref;

void spacefb_port_0_w(int offset,int data)
{
	spacefb_vref = (data & (1<<5)) ? 128 : 0;
}

void spacefb_port_2_w(int offset,int data)
{
}

void spacefb_port_3_w(int offset,int data)
{
}

int spacefb_interrupt(void)
{
	static int count;

	count++;

	if (count & 1)
		return (0x00cf);		/* RST 08h */
	return (0x00d7);		/* RST 10h */

}

⌨️ 快捷键说明

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