|
|
下面是我程式簡單的代碼,我想要在XP中寫一個簡單的程式來發出SMI,但是卻失敗了。
* u7 s+ j: g6 ?# Z想請問要做哪些修改才行? 我是在VC2005中編譯的
- H# d4 n+ E2 h, `( q# e/ s" S, C, k4 l* h
#define ASM
`7 n# h5 `& t" Z8 n8 K
/ B4 _! g# S7 L+ u3 y3 B& I& ?USHORT al=0x8100;
. T$ ]" J+ s! b' a4 q#ifdef ASM! l0 x0 r. L7 T( T! m
__asm {
1 @. q9 K0 D7 a# q: j4 u mov dx, 0b2h
* r1 L8 K9 x6 u7 o- w+ D9 m out dx, al
b8 c' @( K5 a}
2 s+ M9 ?0 [# A) _" S#endif |
|