1 /** Absolute addressing tests.
8 # define ADDRESS(x) (0x02 ## x)
10 # define ADDRESS(x) (0xCA ## x)
18 {mem} volatile at(ADDRESS(BC)) TestStruct TestVar = {0,0};
19 {mem} at(ADDRESS(B7)) char u;
20 {mem} at(ADDRESS(B7)) char x = 'x';
21 {mem} at(ADDRESS(B9)) char y = 'y';
22 {mem} at(ADDRESS(B0)) int k = 0x1234;
29 #if defined(SDCC_mcs51) || defined(SDCC_ds390) || defined(SDCC_hc08)
30 static {mem} at(ADDRESS(B6)) char s = 's';
31 char {mem} *pC = (char {mem} *)(ADDRESS(B0));
32 int {mem} *pI = (int {mem} *)(ADDRESS(B0));
38 ASSERT(pI[0] == 0x1234);
42 #if defined(SDCC_mcs51) || defined(SDCC_ds390)
43 volatile data at(0x20) unsigned char Byte0 = 0x00;
44 volatile data at(0x22) unsigned char Byte1 = 0x00;
45 volatile bit Bit0, Bit1, Bit2, Bit3, Bit4, Bit5, Bit6, Bit7, Bit8;
51 #if defined(SDCC_mcs51) || defined(SDCC_ds390)
53 ASSERT(Byte0 == 0x00);
56 ASSERT(Byte0 == 0xFF);