Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!caen!math.lsa.umich.edu!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!pitt!willett!ForthNet From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie) Newsgroups: comp.lang.forth Subject: Linking, Modules, and Overlays Message-ID: <2706.UUL1.3#5129@willett.pgh.pa.us> Date: 4 May 91 11:47:56 GMT Organization: (n.) to be organized. But that's not important right now. Lines: 43 Date: 04-27-91 (15:22) Number: 2025 of 2065 (Echo) To: RAY DUNCAN Refer#: NONE From: BILL TRIFFET Read: 04-27-91 (21:27) Subj: PROGRAMMING LPT1 Status: PUBLIC MESSAGE Conf: FORTH (58) Read Type: GENERAL (+) Well, I've got my system running back to normal- finaly! My current project involves reading data from the printer port. I was told that I would have to use assembler language to do this properly ( sic). Not being to swift at this, I was wondering if you knew of some examples that I could study. My program only involves reading the status of the the Busy line - either 0 or 1. I wired a device to send a +5v pulse ( yes, I put an add on parrellel card in case somthing goes amok) which I will store in a buffer to use as data for the x/y coordinates of a graphed curve. Am I in to deep? For a novice, I mean. Later. NET/Mail : LMI Forth Board, Los Angeles, CA (213) 306-3530 <<<>>> Date: 04-27-91 (21:23) Number: 2026 of 2065 (Echo) To: BILL TRIFFET Refer#: NONE From: RAY DUNCAN Read: 04-29-91 (21:19) Subj: PROGRAMMING LPT1 Status: PUBLIC MESSAGE Conf: FORTH (58) Read Type: GENERAL (+) What language are you writing this in? If Forth you can use the PC@ command from high level code. If Turbo C just use the inline assembler to read the port, e.g. _asm mov dx,xxx _asm in al,dx I don't know enough about Turbo Pascal to know how to do this, but I think they have inline assembler now too. NET/Mail : LMI Forth Board, Los Angeles, CA (213) 306-3530 <<<>>> ----- This message came from GEnie via willett. You *cannot* reply to the author using e-mail. Please post a follow-up article, or use any instructions the author may have included (USMail addresses, telephone #, etc.). Report problems to: dwp@willett.pgh.pa.us _or_ uunet!willett!dwp