ARM-DCD&DCDU
DCD指令分配一个或多个文字内存,按照四字节边界内存对齐,定义初始化运行内存内容。 & 是DCD指令的代名词。 DCDU与DCD一样,只不过内存对齐方式是任意的。 语法: {label} DCD{U} expr{,expr} expr 数字表达式 PC相对表达式 用处: DCD在第一个定义的字之前最多插入三个填充字节,以实现四字节对齐。 example: data1 DCD 1,5,20 ; Defines 3 words containing ; decimal values 1, 5, and 20 data2 DCD mem06 + 4 ; Defines 1 word containing 4 + ; the address of the label mem06 AREA MyData, DATA, READWRITE DCB 255 ; Now misaligned … data3 DCDU 1,5,20 ; Defines 3 words containing ; 1, 5 and 20, not word aligned