home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 6353 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: baggins.cc.flinders.edu.au!sybil!doconnor
  2. From: doconnor@sybil.ist.flinders.edu.au (Daniel J. O'Connor)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Help with parallel port programming...
  5. Date: 26 Mar 1996 22:52:33 GMT
  6. Organization: Flinders University    
  7. Message-ID: <4j9sfh$11k0@baggins.cc.flinders.edu.au>
  8. References: <4ihu64$1s5@kira.cc.uakron.edu> <31513E38.7885@fs1.ee.man.ac.uk>
  9. NNTP-Posting-Host: sybil.cs.flinders.edu.au
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Christos Dimitrakakis (mbge4cd1@fs1.ee.man.ac.uk) wrote:
  13.  
  14. : You have to configure the parallel port for output before writing
  15. : and for input before reading, otherwise it will not work.
  16. : You can set it for input by :
  17. : First put the address at a register
  18. : LEA $bfe101,a1
  19. : set for input:
  20. : MOVE.b (a1),0
  21. : set for output
  22. : MOVE.b (a1),255
  23.  
  24. You should ALSO allocate the parallel port resource before playing
  25. with it, otherwise someones print jobs will stomp all over you...
  26. I have some code in C as well which does all this stuff :) There is
  27. also some on aminet you might want to look at...
  28.  
  29. Seeya
  30. Darius
  31. ~~~~~~
  32.