hwint.h

来自「一个处理实时时钟中断的VxD」· C头文件 代码 · 共 25 行

H
25
字号
// HWINT.H
// Copyright (c) 1995, Vireo Software, Inc.

#include <vtoolsc.h>		// primary include for VtoolsD	
#include "cmosio.h"

// Device Parameters

#define HWINT_Major		1
#define HWINT_Minor		0
#define HWINT_DeviceID		UNDEFINED_DEVICE_ID
#define HWINT_Init_Order	UNDEFINED_INIT_ORDER


#define RTC_IRQ 8		// IRQ (not vector number) used by real 
				// time clock

// Forward declarations for functions
BOOL __stdcall RTCInt_Handler(VMHANDLE hVM, IRQHANDLE hIRQ);
VOID __stdcall SecondEventService(VMHANDLE hVM, PVOID Refdata, PCLIENT_STRUCT pRegs);

// Macro to convert a byte of binary coded decimal (BCD) to int

#define BCDtoInt(x) (((x) & 0xf) + ((((x) & 0xf0) >> 4) * 10))

⌨️ 快捷键说明

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