Article View: pl.comp.lang.c
Article #1408Re: Dostęp do LPT pod Windows
From: Droll
Date: Mon, 16 Feb 1998 10:57
Date: Mon, 16 Feb 1998 10:57
15 lines
1401 bytes
1401 bytes
> W W95 wystarczy zwykły OUT. Ponieważ nie ma funkcji inport() i
> outport() trzeba je napisać samemu (używając wstawek asemblerowych).
> Np.:
> void out(int port, char val)
> {
> #asm mov dx,port
> #asm mov al,val
> #asm out dx,al
> }
> Powinno zadziałać! Ale tylko w W95 - w NT tak prosto się nie da.
Wiem, że powinno. Ale jak tego spróbowałem w BorlandBuilderze to sie
doczepil, ze potrzebuje zewnetrznego assemblera. Stad moje pytanie czy
mozna inaczej..
Oskar
Technical Details
Message-ID:
<01bd3ac9$f4a16fa0$48c9fe96@hercules.ifmpan.poznan.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!lublin.pl!ict.pwr.wroc.pl!not-for-mailReferences:
<01bd3618$b6f27560$48c9fe96@hercules.ifmpan.poznan.pl> <34e20628.13282809@news.icm.edu.pl> <01bd37a9$cede0760$48c9fe96@hercules.ifmpan.poznan.pl> <Pine.GSO.3.96.980212134416.28633E-100000@elektron.elka.pw.edu.pl> <01bd3867$e5785f20$48c9fe96@hercules.ifmpan.poznan.pl> <34e6e9b1.8879221@news.task.gda.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!lublin.pl!ict.pwr.wroc.pl!not-for-mail From: "Droll" <droll@ifmpan.poznan.pl> Newsgroups: pl.comp.lang.c Subject: Re: Dostęp do LPT pod Windows Date: 16 Feb 1998 10:57:14 GMT Organization: Technical University of Wroclaw, Poland Lines: 15 Message-ID: <01bd3ac9$f4a16fa0$48c9fe96@hercules.ifmpan.poznan.pl> References: <01bd3618$b6f27560$48c9fe96@hercules.ifmpan.poznan.pl> <34e20628.13282809@news.icm.edu.pl> <01bd37a9$cede0760$48c9fe96@hercules.ifmpan.poznan.pl> <Pine.GSO.3.96.980212134416.28633E-100000@elektron.elka.pw.edu.pl> <01bd3867$e5785f20$48c9fe96@hercules.ifmpan.poznan.pl> <34e6e9b1.8879221@news.task.gda.pl> NNTP-Posting-Host: hercules.ifmpan.poznan.pl X-Newsreader: Microsoft Internet News 4.70.1161 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit