Re: newbie: MUL product



On Thu, 29 Mar 2007 19:16:31 +0200, Herbert Kleebauer <klee@xxxxxxxxx>
wrote:

Wolfgang Kern wrote:

or the immediate operand IMUL forms:

anyreg32=anyreg/mem32 * SXimm8/imm32

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

Thanks Herbert, but to switch to another assembler would seem
counter-productive for me at this point, as I'm a complete newbie, and
I mainly want to learn "one" assembler at this point.

I gather from a few of your posts that you feel all assembly
programmers should learn machine code?

Interesting what you say about the caps. While I didn't code this in
Hex, I did take a look at the dissassembly, and mine appears to use
different opcodes for mul and imul. Maybe that's a Motorola's 68k
assembly implementation that works for you?
--
thanks,
Brian
To the best of my knowledge, I have:
1) asked a question specifically related to this newsgroup
2) not used my email to request answers be sent there
3) not top-posted
4) not used bad grammar that would make me appear more stupider
.



Relevant Pages

  • Re: newbie: MUL product
    ... you to define the alias MUL for this IMUL instruction. ... Thanks Herbert, but to switch to another assembler would seem ...
    (alt.lang.asm)
  • Re: newbie: MUL product
    ... (unfortunately no unsigned MUL in this forms) ... you to define the alias MUL for this IMUL instruction. ... but to switch to another assembler would seem ...
    (alt.lang.asm)
  • Re: newbie: MUL product
    ... (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. ...
    (alt.lang.asm)
  • Re: newbie: MUL product
    ... Maybe you should use an other assembler which allows you to define the alias MUL for this IMUL instruction. ... Herbert doesn't like Intel syntax - feel's it's illogical, and his 68K-style syntax is more logical and more regular. ...
    (alt.lang.asm)
  • Re: RND contest
    ... conversion to assembler is trivial. ... Probably the reason why all you posted was a trivial ... "imul", outputing... ...
    (alt.lang.asm)