Mega Code Archive

 
Categories / Delphi / Hardware
 

Porta bilgi gönderme ve porttan bilgi okuma

Porta bilgi gönderme ve Porttan bilgi okuma... function ReadPortB( wPort : Word ) : Byte; begin asm mov dx, wPort in al, dx mov result, al end; end; procedure WritePortB( wPort : Word; bValue : Byte ); begin asm mov dx, wPort mov al, bValue out dx, al end; end.