BBS: Inland Empire Archive Date: 04-20-92 (00:37) Number: 81 From: DONN BLY Refer#: NONE To: JON SPRINGER Recvd: NO Subj: Re: Comm Port 3 Conf: (2) Quik_Bas
> back of my computer one of the eight slots, is labeled > com1...This might be the problem, but I had always > thought com ports were not physical locations in the > computer. Actually, the COMx: ports *are* physical locations -- but are physical in relation to memory not in relation to the slots on the bus. The area in memory you are peeking and poking into is actally the table to tell the machine where these physical locations are in your machine. > on lpt1...This is rather baffling, is there something I > have missed? ie, is the above code always supposed to > be legit? Assuming that your BIOS Power-On-Self-Test (POST) fills the table with the addresses for COM3, then it should work. However, most BIOSs do not do this for you (while COM3 and COM4 are somewhat standard, there really is no hard and fast standard that says that they HAVE to located at any given point). You might want to check to see what is going on by displaying the values you are PEEKing. Generally the port address for COM3 is 16 less than the address for COM1 (&H3E8 instead of &H3F8). So, originally PEEK(&H404) should be 232. If it isn't, just poke that value into &H400 and see if that works for you. --- OPMED 3.00 * Origin: The Loft *HST/DS/V42bis* [NC, SDS] (1:236/7)
Books at Amazon:
Back to BASIC: The History, Corruption, and Future of the Language
Hackers: Heroes of the Computer Revolution (including Tiny BASIC)
Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution
The Advent of the Algorithm: The Idea that Rules the World
Moths in the Machine: The Power and Perils of Programming
Mastering Visual Basic .NET