flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Teehee
152 / 100 = 1.52
Code: mov eax, 152 mov ebx, 100 cdq div ebx ; eax = 1 To where .52 goes? _________________ Sorry if bad english. |
|||
![]() |
|
Fanael
You mean the remainder? Check EDX.
|
|||
![]() |
|
Borsuc
In decimal: Multiply numerator by 100, the numbers <100 can be considered fractional.
In binary: Multiply by a power of 2, the respective bits can be used as fractional bits. |
|||
![]() |
|
Teehee
Oh, nice. Thank you guys.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.