1 /** Absolute addressing tests.
12 {mem} volatile at(0xCABC) TestStruct TestVar = {0,0};
13 {mem} at(0xCAB7) char u;
14 {mem} at(0xCAB7) char x = 'x';
15 {mem} at(0xCAB9) char y = 'y';
16 {mem} at(0xCAB0) int k = 0x1234;
23 #if defined(SDCC_mcs51) || defined(SDCC_ds390) || defined(SDCC_hc08)
24 static {mem} at(0xCAB6) char s = 's';
25 char {mem} *pC = (char {mem} *)(0xCAB0);
26 int {mem} *pI = (int {mem} *)(0xCAB0);
32 ASSERT(pI[0] == 0x1234);
36 #if defined(SDCC_mcs51) || defined(SDCC_ds390)
37 volatile data at(0x20) unsigned char Byte0 = 0x00;
38 volatile data at(0x22) unsigned char Byte1 = 0x00;
39 volatile bit Bit0, Bit1, Bit2, Bit3, Bit4, Bit5, Bit6, Bit7, Bit8;
45 #if defined(SDCC_mcs51) || defined(SDCC_ds390)
47 ASSERT(Byte0 == 0x00);
50 ASSERT(Byte0 == 0xFF);