Jump to content

Rewrite using 32 bit registers [Is this correct?]

Featured Replies

Num dw 001h, 3880h

mov dx, num

mov ax, num+2

mov bx,8

idiv bx

 

after converting to 32 bit... is this correct?

 

Large dw 001h, 3880h <----- i am not sure if this line is correct... any help?

mov edx, num

mov eax, num+2

mov ebx,8

idiv ebx

Large dw 001h, 3880h <----- i am not sure if this line is correct... any help?

 

I think that you want dd and not dw if you want to declare a 4byte word . . . ..

 

big **IF**

 

if you just want a 2byte word then it is fine . . . .

  • Author

Large dd 001h, 3880h

mov edx, num

mov eax, num+2

mov ebx,8

idiv ebx

 

so does it look good now?

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.