hi, due A51 datasheet, it says: DS The DS directive reserves a specified number of bytes in a memory space. The DS directive has the following format:
label: DS expression
?XD?VAR_XDATA SEGMENT XDATA RSEG ?XD?VAR_XDATA VAR1: DS 0x10 VAR2: DS 0x10
?XD?VAR_XDATA SEGMENT XDATA RSEG ?XD?VAR_XDATA VARS: DS 0x20 VAR1 XDATA VARS+0x00 VAR2 XDATA VARS+0x10
May I be sure that these lines provide exactly indicated placement order? It "has always been so" with the succesion of assemblers I have used, and if Keil should decide to abandon this many (oncluding some of mine) programs would fall apart. As a matter of fact, some of my C projects have assembler xdata just to achieve this. Erik