delorie.com/archives/browse.cgi | search |
Newsgroups: | comp.os.msdos.djgpp |
From: | pscargill AT cix DOT compulink DOT co DOT uk ("Peter Scargill") |
Subject: | BEGINNER -address of arrays etc - Help |
Message-ID: | <EHFIz7.4DH@cix.compulink.co.uk> |
Organization: | Compulink Information eXchange |
Date: | Thu, 2 Oct 1997 14:59:30 GMT |
Lines: | 19 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
This is my second attempt at putting this message in. What hope do I have of solving a C problem if I can't even send mail properly :-)) Ok, DOS program ising DJGPP. This came with the BT848 graphic chip development test software. They send the address A0000 to the PCI chip via a routine so the chip can talk to mode 13 video memory. I created an array large enough to hold the video data, and gave the routine the address of the array as &my_array. Being a Borland programmer this looked ok but the program goes for a walk. Actually I used (unsigned int)&my_array[0]. The compiler took it but the thing goes for a walk so it is obviously writing somewhere it should not. Remember I've never used a 32 bit compiler before. Seems like a valid 32 bit address would be sent but obviously not. Comments anyone?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |