📄 spacefb.c
字号:
/***************************************************************************
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -