摘要: 1 ;CM3 在一定程度上支持 64 位整数。 2 ;其中 LDRD/STRD 就是为 64 位整数的数据传送而设的,语法 格式为: 3 4 LDRD.W RL, RH, [Rn, #+/-offset] {!} 5 STRD.W RL, RH, [Rn, #+/-offset] {!} 6 LDRD.W RL, RH, [Rn],#+/-offset 7 STRD.W RL, RH, [Rn],#+/-offset 8 9 LDR R2, =0x1000 ;(0x1000)= 0x1234_5678_ABCD_EF00 : 00 EF C... 阅读全文
posted @ 2012-09-10 10:18 IAmAProgrammer 阅读(779) 评论(0) 推荐(0) 编辑
摘要: 1 // Double linked list structure. Can be used as either a list head, or as link words. 2 3 // @struct USBH_DLIST | 4 // The USBH_DLIST structure is the link element of the double linked list. It is used as either a list head, or as link entry. 5 // @field struct tDLIST * | Flink | 6 // Point... 阅读全文
posted @ 2012-09-10 09:17 IAmAProgrammer 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 1 #ifndef __LIST_H__ 2 #define __LIST_H__ 3 4 typedef struct LIST LIST; 5 struct LIST 6 { 7 LIST *next; 8 LIST *prev; 9 };10 11 typedef struct LIST_HEAD12 {13 int count;14 LIST first;15 } LIST_HEAD;16 17 #define DO_LIST_INIT(name) \18 { &(name), &(name)}19 20 #define LIST_INIT(head)... 阅读全文
posted @ 2012-09-10 08:48 IAmAProgrammer 阅读(456) 评论(0) 推荐(0) 编辑