Hi,
How to use 24 bit addressing in keil for DP 8051.
We want it in C language.
If you have hardware memory-mapped into the far data space, then yes, a declaration similar to this will work. (The comments already made about data types are well put.)
Your hardware external to the 8051 will of course have to decode the 24-bit address bus and select whatever device it is that has these registers. The details will be in the data sheet for your particular 8051 variant.