NASM Assembly mathematical logic

前端 未结 1 1793
北海茫月
北海茫月 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)
提交回复
热议问题