J
janestory
Unregistered / Unconfirmed
GUEST, unregistred user!
DELPHI在windows2000和NT中,怎样实现对口地址的读写?
我在windows98中可以通过汇编对口地址读写的,
function inportb(address:Word):Byte;
begin
Result:=0;
asm
Mov dx,address
In al, dx
Mov Result,al
end;
end;
procedure outportb(address:Word;data:Byte);
begin
asm
Mov dx,address
Mov al,data
Out dx,al
end;
end;
但到了windows2000和NT就不行了,请教怎样才能解决?
我在windows98中可以通过汇编对口地址读写的,
function inportb(address:Word):Byte;
begin
Result:=0;
asm
Mov dx,address
In al, dx
Mov Result,al
end;
end;
procedure outportb(address:Word;data:Byte);
begin
asm
Mov dx,address
Mov al,data
Out dx,al
end;
end;
但到了windows2000和NT就不行了,请教怎样才能解决?