Home > other >  The Wang Shuang assembly language testing point 11.1 at the end of the book a SF, sign the value 0 i
The Wang Shuang assembly language testing point 11.1 at the end of the book a SF, sign the value 0 i

Time:10-01

Questions and answers are as follows:
Sub al, al ZF=1=1 SF, PF=0
Mov al, ZF=1=1 SF, PF=0
Push ax ZF=1=1 SF, PF=0
Pop bx ZF=1=1 SF, PF=0
The add al, bl ZF=0 PF=0 SF=0
The add al, 10 ZF=0 PF=1 SF=0
The mul al ZF=0 PF=1 SF=0

The add al, al bl here has a value of 00000010 b
The add al, 10 al here has a value of 00001100 b
The mul al al value is here? 10010000? B
First is 1, the value of the negative, SF, should not be any 1
Why do I get the answer is zero?

CodePudding user response:

Not exactly the mul instruction to mark a sf, influence, the result see this post:
https://bbs.csdn.net/topics/391935587
  • Related