Dividing in Assembler x86

前端 未结 4 1758
余生分开走
余生分开走 2020-12-22 10:10

My college gave me a exercise:

1. Create a new document in Jasmin

2. Use the AL-Register to to add 9 to 8.

3. Subtract 2.

4条回答
  •  一个人的身影
    2020-12-22 10:37

    There's a DIV instruction which does division, but you'll need to put the dividend into AX (or one of its siblings) first.

提交回复
热议问题