flat assembler
Message board for the users of flat assembler.
Index
> Main > [solved] DIV problem |
Author |
|
Feryno 16 Mar 2020, 20:54
but what is the input value in edx ?
if input edx 2 or more the result cannot fit into 32 bit register try this: Code: mov eax,4 xor edx,edx |
|||
16 Mar 2020, 20:54 |
|
rc 16 Mar 2020, 21:01
Oh.. i guess i missunderstood div... ?
Code: mov ecx, 2 div ecx So "div ecx" in my case divides whatever is in edx by 2? I thought div ecx divides whatever is in eax by ecx in this case. And the result gets stored back into eax. [EDIT] Oh now i understand. div always divides the 64 bits value accross EDX:EAX by a value. Didn't know that. Thank you! |
|||
16 Mar 2020, 21:01 |
|
Tomasz Grysztar 17 Mar 2020, 17:02
Well, it is definitely unfortunate that I have still not recorded part 10 of my video tutorial, which I planned to be about MUL/DIV. My fault, but I had to postpone continuation of this series for various unrelated reasons.
|
|||
17 Mar 2020, 17:02 |
|
rc 17 Mar 2020, 18:53
Tomasz Grysztar wrote: Well, it is definitely unfortunate that I have still not recorded part 10 of my video tutorial, which I planned to be about MUL/DIV. My fault, but I had to postpone continuation of this series for various unrelated reasons. @Tomasz Grysztar: Well, we all have stuff to do besides our hobbies . I'm following your tutorial series since the beginning and hope you will find the time to continue soon. And i hope this series is going to be a really long series . They are really helpful. Thanks for taking the time to teach the ones that are new to f/asm. |
|||
17 Mar 2020, 18:53 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.