Quantcast
Channel: x86 Assembly - Programmers Heaven
Viewing all articles
Browse latest Browse all 152

Doubt in Prime.asm

$
0
0
Hello Everybody, I am having some doubts regarding the attatched code from the book "PC Assembly", based on Pentium III architecture.

I am Beginner to assembly,

I am unable to understand, the line 49 of the code:
[code]
49 je end_if ; if !(guess % factor != 0)
[/code]
Actually the code is working fine, but I am not understanding that, how [b]je[/b] is being treadted here.
According to me, if a jump from line 44 to line 49 will occur, then it is okay as in line 43 we are doing a comparison(cmp) of remainder with 0.
But if we jump from line 37 or 39, then how will je check the flags.

Another Question, I am bit confused with carry flag and Overflow flag.

Please try to solve my doubt. I want to complete this book as soon as possible.

Viewing all articles
Browse latest Browse all 152

Trending Articles