Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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
  +&nb


Ïà¹ØÎĵµ£º

PythonµÄC/C++À©Õ¹

  Python
µÄ
C/C++
À©Õ¹
                         
By phidoit@gmail.com
 
¿ÉÀ©Õ¹ÐÔÊÇ
Python
µÄÒ»´óÌØÉ«£¬Ò»·½Ã棬ÓÉÓÚ
Python
ÊǽâÊÍÖ´Ðеģ¬Õâµ¼ÖÂÔËÐÐËÙ ......

Cö¾ÙÀàÐ͵ÄʹÓ÷½·¨

1.  ö¾ÙµÄ¶¨Òåö¾ÙÀàÐͶ¨ÒåµÄÒ»°ãÐÎʽΪ£º
    enum ö¾ÙÃû{ ö¾ÙÖµ±í };
ÔÚö¾ÙÖµ±íÖÐÓ¦ÂÞÁгöËùÓпÉÓÃÖµ¡£ÕâЩֵҲ³ÆΪö¾ÙÔªËØ¡£
ÀýÈ磺
   
¸Ãö¾ÙÃûΪweekday£¬Ã¶¾ÙÖµ¹²ÓÐ7¸ö£¬¼´Ò»ÖÜÖеÄÆßÌì¡£·²±»ËµÃ÷ΪweekdayÀàÐͱäÁ¿µÄÈ¡ÖµÖ»ÄÜÊÇÆßÌìÖеÄijһÌì¡£
2.  ö¾Ù±äÁ¿µ ......

¼ÓÈëcrimson.jar°üºó²»ÄÜʹÓÃC±êÇ©

 CrimsonÀ´×ÔÓÚSun¾èÔù¸øApacheµÄProjectXÏîÄ¿£¬XercesÀ´×ÔIBM¾èÔù¸øApacheµÄXML4JÏîÄ¿£¬½á¹ûXercesʤ³ö£¬³ÉÁËApache XMLС×éÈ«Á¦¿ª·¢µÄXML API£¬¶øCrimonÒѾ­Ôç¾Í²»×öÁË£¬Èç½ñXercesÃûÂúÌìÏ£¬µ½´¦¶¼ÊÇÔÚÓÃXerces DOMºÍSAX½âÎöÆ÷£¬Ö»ÓÐSun²»·þÆø£¬·ÇÒªÔÚJDK1.4ÀïÃæʹÓùýʱµÄCrimson£¬ÈÃÈ˸оõÏñÊÇÔÚ¶ÄÆøÒ»Ñù£¬ÕæÊÇÈà ......

C/C++ ³ÌÐòԱӦƸ³£¼ûÃæÊÔÊÔÌâÉîÈëÆÊÎö


      1.ÒýÑÔ
 
¡¡¡¡±¾ÎĵÄд×÷Ä¿µÄ²¢²»ÔÚÓÚÌṩC/C++³ÌÐòÔ±ÇóÖ°ÃæÊÔÖ¸µ¼£¬¶øÖ¼ÔÚ´Ó¼¼ÊõÉÏ·ÖÎöÃæÊÔÌâµÄÄÚº­¡£ÎÄÖеĴó¶àÊýÃæÊÔÌâÀ´×Ô¸÷´óÂÛ̳£¬²¿·ÖÊÔÌâ½â´ðÒ²²Î¿¼ÁËÍøÓѵÄÒâ¼û¡£
 
¡¡¡¡Ðí¶àÃæÊÔÌâ¿´ËƼòµ¥£¬È´ÐèÒªÉîºñµÄ»ù±¾¹¦²ÅÄܸø³öÍêÃÀµÄ½â´ð¡£ÆóÒµÒªÇóÃæÊÔÕßдһ¸ö×î¼òµ¥µÄstrc ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ