Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1113739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:54:07+00:00 2026-05-17T02:54:07+00:00

I am using a run-time debugger. EAX: 0000 0023 EDX: 5555 5556 imul edx

  • 0

I am using a run-time debugger.

EAX: 0000 0023
EDX: 5555 5556

imul edx

EAX: aaaa aac2
EDX: 0000 000b

I am utterly confused, and can’t figure out how this multiply is working. What’s happening here? I notice in a similar question here that imul ebx ; result in EDX:EAX I don’t understand the EDX:EAX notation though :/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T02:54:08+00:00Added an answer on May 17, 2026 at 2:54 am

    When the one-operand form of imul is passed a 32 bit argument, it effectively means EAX * src where both EAX and the source operand are 32-bit registers or memory.

    The product of two 32 bit values doesn’t necessarily fit in 32 bits: the full multiply result can take up to 64 bits. The high 32 bits of the answer will be written to the EDX register and the low 32 bits to the EAX register; this is represented with the EDX:EAX notation.

    In your case with imul edx, you get EDX:EAX = EAX * EDX. It’s fine for the explicit source operand to be one of the implicit operands, even EAX to square into EDX:EAX.


    If you only want the low 32 bits of the result, use the 2-operand form of imul; it runs faster and doesn’t have any implicit operands (so you can use whatever registers are most convenient).

    imul ecx, esi does ecx *= esi like you’d expect, without touching EAX or EDX. It’s like C where unsigned x=...; x *= y; has the same width for the result as the inputs.

    imul also has an immediate form: imul ecx, ebx, 1234 does ecx = ebx * 1234. Many assemblers will accept imul ecx, 1234 as short-hand for imul ecx, ecx, 1234.


    These 32×32 => 32-bit forms of imul work correctly for signed or unsigned; the results of one-operand mul and imul only differ in the upper half (in EDX), not the low-half EAX output.

    See Intel’s instruction reference manual entry for imul.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm compiling some C# and VB code at run time using the CodeDomProvider, CompilerInfo,
I'm using firefox3 to run a Java Applet (on Linux). normally, when the JVM
I'm using selenium to run some functional tests on the UI for our current
I am trying to generate some code at runtime using the DynamicMethod class in
Is there a runtime performance penalty when using interfaces (abstract base classes) in C++?
I'm using an older version of ASP.NET AJAX due to runtime limitations, Placing a
Using C#, does anyone know how to get the MarshalAsAttribute's Sizeconst value in runtime
I'm using a logging module that can have reporting enabled/disabled at runtime. Calls generally
How can i generate bytecode (Byte[]) from a String at runtime, without using a
I'm using YUI's browser history manager, and my browsers no longer report runtime errors.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.