ARMµÄ N¡¢Z¡¢C¡¢V ±ê־λµÄ½âÊÍ
N µ±ÓÃÁ½¸ö²¹Âë±íʾµÄ´ø·ûºÅÊý½øÐÐÔËËãʱ£¬N=1±íʾÔËËãµÄ½á¹ûΪ¸ºÊý£»N=0±íʾÔËËãµÄ½á¹ûΪÕýÊý»òÁã.
Z Z=1±íʾÔËËãµÄ½á¹ûΪÁ㣬Z=0±íʾÔËËãµÄ½á¹û·ÇÁã¡£
C ¿ÉÒÔÓÐ4ÖÖ·½·¨ÉèÖÃCµÄÖµ£º
¼Ó·¨ÔËË㣨°üÀ¨CMN£©£ºµ±ÔËËã½á¹û²úÉúÁ˽øλʱ£¨ÎÞ·ûºÅÊýÒç³ö£©£¬C=1£¬·ñÔòC=0¡£
¼õ·¨ÔËË㣨°üÀ¨CMP£©£ºµ±ÔËËãʱ²úÉúÁ˽èλʱ£¨ÎÞ·ûºÅÊýÒç³ö£©£¬C=0£¬·ñÔòC=1¡£
¶ÔÓÚ°üº¬ÒÆλ²Ù×÷µÄ·Ç¼Ó/¼õÔËËãÖ¸ÁCΪÒƳöÖµµÄ×îºóһλ¡£
¶ÔÓÚÆäËüµÄ·Ç¼Ó/¼õÔËËãÖ¸ÁCµÄֵͨ³£²»»á¸Ä±ä¡£
V ¿ÉÒÔÓÐ2ÖÖ·½·¨ÉèÖÃVµÄÖµ£º
¶ÔÓÚ¼Ó¼õ·¨ÔËËãÖ¸Áµ±²Ù×÷ÊýºÍÔËËã½á¹ûΪ¶þ½øÖƵIJ¹Âë±íʾµÄ´ø·ûºÅÊýʱ£¬V=1±íʾ·ûºÅλÒç³ö
¶ÔÓÚÆäËüµÄ·Ç¼Ó/¼õÔËËãÖ¸ÁVµÄֵͨ³£²»»á¸Ä±ä¡£
0000 = EQ - Z set (equal£¬ÏàµÈ)
0001 = NE - Z clear (not equal£¬²»ÏàµÈ)
0010 = CS - C set (unsigned higher or same£¬ÎÞ·ûºÅ´óÓÚ»òµÈÓÚ)
0011 = CC - C clear (unsigned lower£¬ÎÞ·ûºÅСÓÚ)
0100 = MI - N set (negative£¬¸ºÊý)
0101 = PL - N clear (positive or zero£¬ÕýÊý»òÁã)
0110 = VS - V set (overflow£¬Òç³ö)
0111 = VC - V clear (no overflow£¬Î´Òç³ö)
1000 = HI - C set and Z clear (unsigned higher£¬ÎÞ·ûºÅ´óÓÚ)
1001 = LS - C clear or Z set (unsigned lower or same£¬ÎÞ·ûºÅСÓÚ»òµÈÓÚ)
1010 = GE - N set and V set, or N clear and V clear (greater or equal£¬´ø·ûºÅ´óÓÚ»òµÈÓÚ)
1011 = LT - N set and V clear, or N clear and V set (less than£¬´ø·ûºÅСÓÚ)
1100 = GT - Z clear, and either N set and V set, or N clear and V clear (greater than£¬´ø·ûºÅ´óÓÚ)
1101 = LE - Z set, or N set and V clear, or N clear and V set (less than or equal£¬´ø·ûºÅСÓÚ»òµÈÓÚ)
1110 = AL - always
1111 = NV - never
¶ÔÓÚVµÄ½âÊÍ
ÕýÊýÏà¼Ó±ä³É¸ºÊý
1£©£¨+72£©+£¨+98£©=£¿
0 1 0 0 1 0 0 0 B +72
+ 0 1 1 0 0 0 1 0 B +98
1 0 1 0 1 0 1 0 B -42
¸ºÊýÏà¼Ó±ä³ÉÕýÊý
2£©£¨-83£©+£¨-80£©=£¿
1 0 1 0 1 1 0 1 B -83
+ 1 0 1 1 0 0 0 0 B -80
0 1 0 1 1 1 0 1 B +93
ÕâÁ½¸öÌâÄ¿£¬°´ÕÕÕý³£µÄ·¨ÔòÀ´ÔËË㣬µ«½á¹ûÏÔÈ»²»ÕýÈ·£¬ÕâÊÇÔõô»ØÊÂÄØ£¿ ´ð°¸£ºÕâÊÇÒòΪ·¢ÉúÁËÒç³ö¡£
Èç¹û¼ÆËã»úµÄ×Ö³¤Îªn룬nλ¶þ½øÖÆÊýµÄ×î¸ßλΪ·ûºÅ룬ÆäÓàn-1λΪÊýֵ룬²ÉÓò¹Âë±íʾ·¨Ê±£¬¿É±íʾµÄÊýXµÄ·¶Î§ÊÇ -2n-1≤X≤2n-1-1
µ±n=8ʱ£¬¿É±íʾµÄÓзûºÅÊýµÄ·¶Î§Îª-128¡«+127¡£
Ïà¹ØÎĵµ£º
ÔÚc++µ÷ÓÃc³ÌÐòʱ£¬»Øµ÷º¯ÊýÊDz»ÄÜÖ±½ÓʹÓõģ¬ÒÔc++µ÷ÓÃcµÄGtkº¯ÊýΪÀý£¬ ±ÈÈ磬ÔÚg_idle_add (init, NULL);
Õâ¾ä»°ÖУ¬Ò»µ©idle¾Í»áµ÷Óú¯Êýinit(), Õâ¸öinit()»¹»á¶ÔÀàµÄ³ÉÔ±±äÁ¿½øÐд¦Àí¡£
Õâʱ£¬¼ÙÈç°Ñinit()¼òµ¥µØ¶¨ÒåΪÀàµÄÆÕͨ³ÉÔ±º¯Êý¾Í»á³öÏÖÀàÐͲ»Æ¥ÅäµÄ´íÎó£¬ÒòΪg_idle_add ......
#ifndef __KERNEL__
#define __KERNEL__
#endif
#ifndef MODULE
#define MODULE
#endif
#include<linux/config.h>
#include<linux/module.h>
#include<linux/version.h>
#include<linux/init.h>
#include<linux/kernel.h>
#include<linux/errno.h>
#include<linux/sche ......
µ±½ñÓÐÐí¶àÃâ·ÑµÄ RDBMS£¨Relational Database Management
System£¬¹ØϵÊý¾Ý¿â¹ÜÀíϵͳ£©£¬ÆäÖÐһЩÊÇ¿ª·ÅÔ´ÂëÈí¼þ£¬ÁíһЩÊÇÉÌÒµ³§ÉÌÌṩµÄÃâ·Ñ²úÆ·¡£Èç¹ûÄúÕýÔÚʹÓà C/C++¡¢Java™¡¢.NET
»ò PHP
¿ª·¢Ó¦ÓóÌÐò£¬ÏëÑ°ÕÒÒ»ÖÖ¿É¿¿µÄÊý¾Ý·þÎñÆ÷£¬Ï£ÍûËüÖ§³ÖÏȽøµÄ¼¼Êõ¡¢¾ßÓ⻶ÏÀ©´óµÄ¿ª·¢ÈËÔ±ÉçÇø²¢ÒѾ²¿ÊðÔÚÐí¶à¹Ø¼ ......
תÌû£ºÒ»»ÔµÄÎÄÕÂ
ÔÚLinuxÏÂ×ö¿ª·¢ÄÑÃâÒª½Ó´¥makefile£¬Õû¸öÏîÄ¿µÄ¹¹½¨¶¼ÒÀÀµÓÚËü¡£100¸ödeveloperÓÐ100ÖÖmakefileµÄд·¨£¬ÔÚÒ»¸ö½Ï´óµÄÏîÄ¿ÖУ¬¸÷ÖÖ¸÷ÑùµÄmakefileÎÞÂÛÔÚ¿ª·¢¡¢ºóÆÚά»¤»¹ÊÇÕû¸öϵͳµÄ³ÖÐø¼¯³É¶¼ÊÇÒ»¸ö¸ºµ£¡£
ÓÐÐÒ²ÎÓëÖع¹Ò»¸öÒÅÁôϵͳµÄmakefile£¬ÒÔÏÂÊÇһЩÐĵúÍÒ»¸ömakefileÄ£°å¡£
Öع¹Ä¿µÄ£º
1.Çå ......
1.ÉèÓÐÒÔÏÂ˵Ã÷ºÍ¶¨Ò壺
typedef union {long i; int k[5]; char c;} DATE;
struct data { int cat; DATE cow; double dog;} too;
DATE max;
ÔòÓï¾ä printf("%d",sizeof(struct date)+sizeof(max));µÄÖ´Ðнá¹ûÊÇ£º £¿£¿£¿
´ð£ºDATEÊÇÒ»¸öunion, ±äÁ¿¹«Óÿռä. ÀïÃæ×î´óµÄ±äÁ¿ÀàÐÍÊÇint[5], Õ¼ÓÃ20¸ö×Ö½Ú. ËùÒÔËüµÄ´óС ......