Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 4,323 of 4,675    |
|    wolfgang kern to Paul Edwards    |
|    Re: 8086 32-bit multiply    |
|    24 Apr 21 10:36:46    |
      From: nowhere@nospicedham.never.at              On 24.04.2021 05:17, Paul Edwards wrote:              >> [x8086 only]       >>> ; multiply cx:bx by dx:ax, result in dx:ax       >> the result of 32*32 bit doesn't fit into 32 bit.       >       > Good point. I didn't think of that. I can't multiply       > 17 bits by 17 bits, one of the registers needs to       > be 0. But I assume I need to at least overflow in       > a predictable manner.       >       >> either go with the given limits (16*16 bit) or       >> build a cascade with intermediate variables aka       >> MUL-ADD chains.       >       > See my most recent post. :-)              you create a stack frame but use not a single variable there.       and it may hang because your stack isn't balanced.       __       wolfgang              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca