Nochma Com-Port... help!!

Diskutiere Nochma Com-Port... help!! im Developer Network Forum im Bereich Hardware & Software Forum; Moin, ich hab ma wieda n Problem in Delphi... in Pascal konnte man mit dem Befehl Port irgend nen Port, z. B. LPT oder COM-Port ansteuern... wie...
  • Nochma Com-Port... help!! Beitrag #1
D

daPhil

Bekanntes Mitglied
Dabei seit
06.07.1999
Beiträge
313
Reaktionspunkte
0
Ort
Da wo ich wohn
Moin,

ich hab ma wieda n Problem in Delphi... in Pascal konnte man mit dem Befehl Port irgend nen Port, z. B. LPT oder COM-Port ansteuern... wie geht das in Delphi???

thx
daPhil
 
  • Nochma Com-Port... help!! Beitrag #2
D

daPhil

Bekanntes Mitglied
Dabei seit
06.07.1999
Beiträge
313
Reaktionspunkte
0
Ort
Da wo ich wohn
Ich habs schon...

Code:
{ Routines from Peter Blow. }

    procedure PortOut(IOport:word; Value:byte); assembler;
    asm
      xchg ax,dx
      out dx,al
    end;

    function PortIn(IOport:word):byte; assembler;
    asm
      mov dx,ax
      in al,dx
    end;

    function PortInW(IOport:word):word; assembler;
    asm
      mov dx,ax
      in ax,dx
    end;

    procedure PortOutW(IOport:word; Value:word); assembler;
    asm
      xchg ax,dx
      out dx,ax
    end;

daPhil
 
Thema:

Nochma Com-Port... help!!

ANGEBOTE & SPONSOREN

https://www.mofapower.de/

Statistik des Forums

Themen
213.181
Beiträge
1.579.177
Mitglieder
55.880
Neuestes Mitglied
Hahn
Oben