I am using a Temic 80251 which gives me 1K on board RAM. Is there any way that I can tell the compiler that the IDATA class is bigger than 256 bytes.. because I get an error from the compiler that I have exceeded capacity. Or should I just use the edata class and just watch that I don't allocate above the 1K limit??? Any suggestions appreciated. Thank, Jim
Actually, using XDATA on the 251 forced the compiler and linker to use the MOVX instruction and to use the DPTR. These are horribly inefficient on the 251. You can use the on-chip 1K as NEAR (or EDATA) memory by declaring the variables as NEAR or by using the XTINY or the XSMALL memory models. Jon
Is it possible to place some critical variables, as near memory type, in the on-chip 1K memory, yet other non-critical variables, still declared as near memory type, in the external memory? In other words, how do you explicitly place two variables, both declared as near, into two seperate memory spaces - on-chip 1k and external memory?