Re: newbie: MUL product
- From: "Wolfgang Kern" <nowhere@xxxxxxxx>
- Date: Fri, 30 Mar 2007 12:53:04 +0200
Ok Herbert,
[..]
ie: IMUL eax,ebx,-09
(unfortunately no unsigned MUL in this forms)
Maybe you should use an other assembler which allows
you to define the alias MUL for this IMUL instruction.
Or directly code it in HEX, if you use uppercase letters,
the CPU does an unsigned multiply (try it and you will
see it works):
00000000: 69 c3 fffffff7 muls.l #-9,r3,r0
00000006: 69 C3 FFFFFFF7 mulu.l #4294967287,r3,r0
That was a good one :)
But you missed to mention that overflow becomes truncated.
__
wolfgang
.
- References:
- newbie: MUL product
- From: Brian
- Re: newbie: MUL product
- From: Wolfgang Kern
- Re: newbie: MUL product
- From: Herbert Kleebauer
- newbie: MUL product
- Prev by Date: Re: newbie: MUL product
- Next by Date: Re: newbie: MUL product
- Previous by thread: Re: newbie: MUL product
- Index(es):
Relevant Pages
|