摘要
在汇编语言中,对于数据谁大谁小的判断是经常会碰到的,数大小的判断包括判断两个无符号数之间的大小,也包括判断两个带符号数之间的大小,对于前者的判断可通过进位标志位CF来判断,但对于后者却要涉及到对符号标志位SF以及溢出标志位OF这两个状态标志位的综合分析,所以这两种数的处理方法是不一样的,如果混为一谈是很容易出错的,因此数大小的判断在汇编中必须值得注意。
Number in assembler language,who is the greater,are often encountered.The judgment for size of number include judgment between two unsigned number and judgment between two signed number.For the former,the judgment only depend on CF,Carry Flag,but for the latter,it will involve two state flag's comprehensive analysis including SF,Signal Flag,and OF,Overflow Flag.So the processing methods of the two kinds of number are not same,if they are confused,mistakes will be made.Therefore,judgment of the size of the number in assembly must be noted.
出处
《电脑知识与技术》
2010年第7X期6020-6021,6025,共3页
Computer Knowledge and Technology
关键词
汇编语言
无符号数
带符号数
数的比较
状态标志位
assembler language
unsigned number
signed number
comparison of number
state flag