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 6685699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:05:14+00:00 2026-05-26T05:05:14+00:00

having a bit of trouble understanding assembly multiplication. Can anyone help break down the

  • 0

having a bit of trouble understanding assembly multiplication. Can anyone help break down the process of these steps:

mov  ax,[p1000]; p1000 = +1000    ax = 03e8
imul [n100];     n100 = -100
                 _____________
                      -100,000

dx:ax = fffe 7960   (dx = fffe, ax = 7960) cf = 1

I’m not sure how to deduce that the answer is -100,000 from dx:ax. I’ve tried calculating it like so:

dx = (15 * 16^3) + (15 * 16^2) + (15 * 16) + 14 = 65,534
ax = (7 * 16^3) + (9 * 16^2) + (6 * 16) = 31,072
dx + ax = 96,606

I may be approaching this the wrong way, so please correct me if I am wrong.

  • 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-26T05:05:14+00:00Added an answer on May 26, 2026 at 5:05 am
    imul [n100]; 
    

    will multiply and leave the result in dx:ax

    Now, dx:ax = fffe 7960. This is a 32 bit quantity with the upper 16bits in dx and the lower 16bits in ax. Since the the MSB of this overall 32bit signed quantity is 1, it’s a negative number and we need the two’s compliment to find magnitude.

    FFFE 7960 <-- our number
    0001 869F <-- 1's compliment in hex
    0001 86A0 <-- 2's compliment in hex
    ...0001 1000 0110 1010 0000 <-- 2's compliment in binary
    

    Convert that to decimal as usual (sum of all) (1*2^{bit_position}) … we get the magnitude as ..

    100,000.

    Now recall that it’s a negative signed number, (MSB = 1) so putting the sign and magnitude together we get … -100,000 🙂

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

Sidebar

Related Questions

Im having a bit of trouble understanding the more complex system calls in assembly.
I'm having a little bit of trouble understanding what the problem is here. I
I am having trouble understanding the difference between a 32 bit processor and 64
I'm having some trouble understanding a bit of code. I've got 2 classes Company
I am having a bit of trouble understanding this bug. Here is the code:
I am having a bit of trouble understanding how I will design a class.
I'm new to Java and I'm having a bit of trouble understanding the concept
I'm having a bit of trouble understanding includes and function scopes in PHP, and
So I've taken over a database and am having a bit of trouble understanding
I learned about multiprocessing from Python and I'm having a bit of trouble understanding

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.