From: "A.Appleyard" To: djgpp AT delorie DOT com Date: Tue, 9 Apr 1996 09:32:52 GMT Subject: Re: Accessing a Memory Location Message-ID: mchyzer AT red DOT seas DOT upenn DOT edu (Michael C Hyzer) wrote (Subject: Accessing a Memory Location):- > I am running the same gcc for DOS on my pentium desktop and 386 laptop. I am > trying to write to the address of the parallel port (0x0378 on both). ... on > the desktop, with a command such as: `int *para = (char*)0x0378;'. This line > causes a segmentation violation on the laptop ... Ports aren't the same as ordinary RAM addressses!!!!!!!!!!!!!! To read and write ports, use special functions in #include (= djgpp\include\pc.h)