flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
1800askgeek 08 Apr 2004, 05:41
How???
I tried: mod cx, 10 with cx set to 18.... shouldn't that set cx to 8??? Yet it gives me an error: "Illeagal instruction" why? |
|||
![]() |
|
VitalOne 08 Apr 2004, 06:06
Code: xor dx,dx mov ax,18 mov cx,10 div cx ;Remainder in DX |
|||
![]() |
|
1800askgeek 08 Apr 2004, 06:24
... how does division work in assembly? Perhaps that's the question I should be asking.
Anyway, thanks for that code. It worked perfectly. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.