Please do not say 'paging' I can not handle the overhead for all the other stuff that fit nicely within 64k. I have a 2Mbyte flash that occasionally is accessed and the time here is not critical (the system pauses) as opposed to other processes that use only RAM. Is there an elegant way to access structures in that 24 bit address space or does it have to be bent folded and mutilated to access? Currently all addresses are specified with an 8 bit 'page' and a 16 bit 'address' and processed as such. I could gain some readability by having the whole in a long. Also this method require data to be stored so no structure cross a page boundary and that limitation is a nuisance. Erik
Serial flash is fine for "data" but a pain in your largest muscle for structures within arrays within structures within structures within arrays. Anyhow, if using serial flash, the code for access of a given byte would become as unreadable as Drew Davis suggection (going 5 layers down - for a simple one entry in one structure as he show it is not too bad) Erik Regardless, the example I show above using CX51 would make a MX based program have exactly the problem I describe (and that would be a BUG). Erik