NASM Assembly mathematical logic

前端 未结 1 1788
北海茫月
北海茫月 2020-12-22 08:13

I have a program in assembly for the Linux terminal that\'s supposed to work through a series of mathematical manipulations, compare the final value to 20, and then using if

相关标签:
1条回答
  • 2020-12-22 08:49

    I think the problem is here:

    div    ebx
    add    ecx, 1      ;(a+b*c)/(d-e*f) + 1
    

    The result of the div instruction is not in ecx.

    0 讨论(0)
提交回复
热议问题