How do I make a pointer to an specific address? I want to make a pointer to 0x1000 and I don't know how.
Thanks.
How do I make a pointer to an specific address? I want to make a pointer to 0x1000 and I don't know how.
Thanks.
there's probably no good reason to...but if you insist, use __asm
i seem to have GCC 3.3.4
But how do i start it?
I dont have a menu for it or anything.
or you can use C.
Example
However, I do have to ask what ever are you doing Hulag?Code:int *addr = (int *)0x1000;
i predict a segmentation fault...Originally Posted by master5001
hulag..do you want to point to 0000:1000 or DS:1000 ?
i seem to have GCC 3.3.4
But how do i start it?
I dont have a menu for it or anything.
>i predict a segmentation fault...
I concur, which is why i question the motives. In either case he can still use C, but I somewhat agree with the assembler suggestion to the extent that I'd be more likely to write something that directly accesses an address like that in assembler.
Its just a little test. BTW, this is going to be run on a Motorola HC11, and compiled with ICC.
Ah yes, ok then what I suggested should work fine. If not report back. I thought you may have been working on an embedded system.