www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/09/26/14:23:03

Return-Receipt-To: Jorge Casta\qo Aspas <jorgec AT pluri DOT ucm DOT es>
Date: Mon, 26 Sep 1994 16:14:53 UTC+0100
From: Jorge Casta\qo Aspas <jorgec AT pluri DOT ucm DOT es>
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."

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019