Return-Receipt-To: Jorge Casta\qo Aspas Date: Mon, 26 Sep 1994 16:14:53 UTC+0100 From: Jorge Casta\qo Aspas Subject: Physical memory access To: djgpp AT sun DOT soe DOT clarkson DOT edu (confirm) Conversion: Prohibited hi DJGPP's! I'm a new user of DJGPP, two days ago i installed the compiler and try tho build my first program on it. But something is not working and i don't find information about the access of the physical memory in the computer. How i can get access to the memory of my computer? I have a board with memory on it and i need read and write in some parts of that memory. I try with a memory pointer some as: unsigned char *mem; mem = 0x00400000; /* the first position on the board memory */ *(mem) = 0x4F; /* write a value on the memory */ When I compile the program, the compiler give me the error "segment violation error " What's going on? Thank you in advance Jorge Castaņo Aspas JORGEC AT PLURI DOT UCM DOT ES "You can't do anything foolproof, the fools are so ingenious."