Hi,
I have a Philips RD2 board with a memory mapped 8255 with ports A at 8000H, B at 8001H, C at 8002H and a control port at 8003H.
How do I set up my defines so that I can just refer to these memory mapped ports as PORTA, CTRLPRT etc. in a C program?
Muz
"The only virtue of this method would be portability ... _at_ should work just fine"
And the advantage of _at_ is that the tools know exactly what you're doing - so, for example, there's no risk of the Linker allocating some variable(s) at the same address...