📄 timer.c
字号:
/* CXL - Copyright (c) 1987-1989 by Mike Smedley - All Rights Reserved */
/* TIMER.C - returns the value of the BIOS timer */
#include <dos.h>
#include "cxldef.h"
#if defined(_M_IX86) && !defined(__ZTC__) /* Microsoft C/QuickC */
#define disable() _disable()
#define enable() _enable()
#elif defined(__ZTC__) /* Zortech C++ */
#include <int.h>
#define disable() int_off()
#define enable() int_on()
#endif
unsigned long timer(void)
{
unsigned long value;
REALPTR p;
RP_SET(p, 0x006c, 0x40);
disable();
value=PeekRealDWord(p);
enable();
return(value);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -