摘要:
GET通经常使用于包括定义常量的源文件。 比如:GET 2440addr.inc 用AREA定义一个段。ENTRY用于指定程序的入口点,END用于告诉汇编器源文件已经结束。 比如: AREA init, CODE, READONLY ENTRY ...... END EQU用于定义常量,提醒:在每条 阅读全文
posted @ 2017-05-10 10:20
lytwajue
阅读(289)
评论(0)
推荐(0)
摘要:
//求两个数中不同的位的个数 #include <stdio.h> int count_different(int a, int b) { int count = 0; int c = a^b; //a,b中不同的位即为1 while (c) { count++; c = c&(c - 1); // 阅读全文
posted @ 2017-05-10 09:08
lytwajue
阅读(375)
评论(0)
推荐(0)