absolute address pointer in MS C 5.1

Don Pajerek pajerek at kadsma.uucp
Tue Jan 9 03:16:59 AEST 1990


In article <5850 at sdcc6.ucsd.edu> bruno at sdcc10.ucsd.edu (Bruce W. Mohler) writes:
>I'm trying to print out a series of characters at an
>absolute address (up in the F000:xxxx ROM) from inside
>of an MS C 5.1 program.
>
>This doesn't work for me:
>
>	char far *machine_id = (0xFFFFE);	/* F000:FFFE */
>

>
>Thanks, in advance!
>
>Bruce W. Mohler

Try	char far *machine_id = *(char far *)0xF000FFFEL;


- djp

f
i
l
l
e
r



More information about the Comp.lang.c mailing list