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

📄 clock.s

📁 RTEMS (Real-Time Executive for Multiprocessor Systems) is a free open source real-time operating sys
💻 S
字号:
/*  clock.s  * *  This file contains the assembly code for the IDT 4650 clock driver. * *  Author:     Craig Lebakken <craigl@transition.com> * *  COPYRIGHT (c) 1996 by Transition Networks Inc. * *  To anyone who acknowledges that this file is provided "AS IS" *  without any express or implied warranty: *      permission to use, copy, modify, and distribute this file *      for any purpose is hereby granted without fee, provided that *      the above copyright notice and this notice appears in all *      copies, and that the name of Transition Networks not be used in *      advertising or publicity pertaining to distribution of the *      software without specific, written prior permission. *      Transition Networks makes no representations about the suitability *      of this software for any purpose. * *  $Id: clock.S,v 1.5 2001/05/24 13:23:48 joel Exp $ *//* @(#)clock.S       08/20/96     1.2 */#include <iregdef.h>#include <idtcpu.h>#include <asm.h>FRAME(mips_set_timer,sp,0,ra)	.set noreorder        mfc0 t0,C0_COUNT        nop        addu t0,a0,t0        mtc0 t0,C0_COMPARE        j ra	nop	.set reorderENDFRAME(mips_set_timer)FRAME(mips_get_timer,sp,0,ra)	.set noreorder        mfc0 v0,C0_COUNT        j ra	nop	.set reorderENDFRAME(mips_get_timer)

⌨️ 快捷键说明

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