Yes, declaring the pointer volatile seems to have fixed the problem. I did
actually try this before posing the question, but because of another stupid
mistake I mistook the result for something else entirely. :-$
On Friday 03 April 2009 19:32:23 Raphael Neider wrote:
> > Address=&MemoryBlock;
> > (*Address)=0xAA;
> > if ( (*Address) != 0xAA )
> > { /* We never get here because the (*Address) location is not re-read
> > */ }
> >
> > I can declare the MemoryBlock variable as volatile [I have done], but
> > that
> > doesn't mean that the compiler knows that (*Address) is also implicitly
> > volatile in this situation.
>
> Would declaring Address like
>
> volatile char *Address;
>
> help? This should declare Address as a pointer to something volatile ...
> How did you declare Address/MemoryBlock?!?
>
> Best of luck,
> Raphael
>
> ---------------------------------------------------------------------------
>--- _______________________________________________
> Sdcc-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
--
Richard.
PGP Key-id: 0x5AB3D350
MOCK APPLE PIE (No Apples Needed)
Pastry to two crust 9-inch pie 36 RITZ Crackers
2 cups water 2 cups sugar
2 teaspoons cream of tartar 2 tablespoons lemon juice
Grated rind of one lemon Butter or margarine
Cinnamon
Roll out bottom crust of pastry and fit into 9-inch pie plate. Break
RITZ Crackers coarsely into pastry-lined plate. Combine water, sugar
and cream of tartar in saucepan, boil gently for 15 minutes. Add lemon
juice and rind. Cool. Pour this syrup over Crackers, dot generously
with butter or margarine and sprinkle with cinnamon. Cover with top
crust. Trim and flute edges together. Cut slits in top crust to let
steam escape. Bake in a hot oven (425 F) 30 to 35 minutes, until crust
is crisp and golden. Serve warm. Cut into 6 to 8 slices.
-- Found lurking on a Ritz Crackers box
------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user