machine.c

来自「用于motorala 68K系列处理器的小实时多任务操作系统 The OMU 」· C语言 代码 · 共 42 行

C
42
字号
/****************************************************************************** *	Machine.c		Machine specific bits ****************************************************************************** */char	m_fdonflag;	/* Indicates floppy motor is on *//* *	Mach_init()	Initialises machine */mach_init(){	s_init();		/* Initialise CPU status and LEDS */	mach_fdon();		/* Don't turn of floppy disk for a bit */}/* *	Mach_shut()	Closes down the machine */mach_shut(){	motoroff();}/* *	Mach_tick()	Called every MTICK (approx 30 secs) *			Does things like floppy disk motor off */mach_tick(){	/* Checks if motor has been switched on resently, if so don't	 * switch off until next mach_tick.	 */	if(m_fdonflag) m_fdonflag = 0;	else motoroff();}/* *	Mach_fdon()	Called from the floppy disk handler to indicate *			that the floppy disk motor has been switched on */mach_fdon(){	m_fdonflag = 1;}

⌨️ 快捷键说明

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