Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!usc!ucsd!sdcc6!sdcc10!bruno From: bruno@sdcc10.ucsd.edu (Bruce W. Mohler) Newsgroups: comp.lang.c Subject: Re: absolute address pointer in MS C 5.1 Summary: Thanks for the *quick* help Keywords: absolute address pointer Message-ID: <5852@sdcc6.ucsd.edu> Date: 31 Dec 89 00:53:44 GMT References: <5850@sdcc6.ucsd.edu> Sender: news@sdcc6.ucsd.edu Lines: 47 In article <5849@sdcc6.ucsd.edu>, bruno@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... > > char far *machine_id = (0xFFFFE); /* F000:FFFE */ > > Any suggestions? ... > > -- > Bruce W. Mohler > Systems Programmer (aka Staff Analyst) > bruno@sdcc10.ucsd.edu > voice: 619/586-2218 Thanks to Chuck Kane ckane@uiece.ece.uiuc.edu Dan Lanciani ddl@harvard.* Doug McDonald mcdonald@aries.scs.uiuc.edu John Birchfield jb@altair.csustan.edu for their quick answers to my problem. One interesting note: none of them suggested using the FP_SEG and FP_OFF macros (which were buried in the Run-Time Library Reference). Their solutions corrected my silly failure to convert the segmented address into a 32-bit pointer. Thanks again. The net is always the fastest way to get an answer. -- Bruce W. Mohler Systems Programmer (aka Staff Analyst) bruno@sdcc10.ucsd.edu voice: 619/586-2218 -- Bruce W. Mohler Systems Programmer (aka Staff Analyst) bruno@sdcc10.ucsd.edu voice: 619/586-2218