procedure SendToPort(AAddr, AValue:Word); var bValue : Byte; begin bValue:= Byte(AValue); asm mov dx,AAddr mov AL,bValue out DX,AL end; end;