PC-I/O map

VFX info at vfx.hu
Tue Mar 11 12:39:33 CET 2003


Hali!

 
> Mas, hogyan lehet az I/O portokat kezelni windoz alol (pl. delfi, visbas)


Delphi alol pl. igy (ha NT,W2k, XP akkor kell megy egy kis driver is
hozza):

Procedure Out32(Addrs: LongWord; Data: LongWord); register;
asm
  xchg    EAX,EDX
  out dx,eax
end;

Function In32(Addrs: LongWord): LongWord; register;
asm
   mov   edx,eax
   in    EAX,dx
end;


UDV. VFX.
http://www.vfx.hu




More information about the Elektro mailing list