Einzelnen Beitrag anzeigen

Daniel B
(Gast)

n/a Beiträge
 
#5
  Alt 5. Apr 2003, 12:56
Hallo,

das könnte so aussehen:
Delphi-Quellcode:
function PortIn(IOAddr : WORD) : BYTE;
begin
  asm
    mov DX, IOAddr
    in AL, DX
    mov result, AL
  end;
end;

procedure PortOut(IOAddr : WORD; Data : BYTE);
begin
  asm
    mov DX, IOAddr
    mov AL, Data
    out DX, AL
  end;
end;
Grüsse, Daniel
  Mit Zitat antworten Zitat