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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:04:53+00:00 2026-05-31T20:04:53+00:00

I am trying to run the following code in assembly: mov %si, %ax mov

  • 0

I am trying to run the following code in assembly:

  mov        %si, %ax
  mov        $15, %si
  div        %si
  mov        %eax, %esi

When I make my program, it compiles, but at runtime it gives me a floating point exception.
I tried to replace the last line’s parameters by %ah and %si.

Briefly, I am trying to divide %esi by 15. I only want an int, and have no need for a double.

Thank you

  • 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-31T20:04:55+00:00Added an answer on May 31, 2026 at 8:04 pm

    The div instruction divides the two-word parameter dx/ax by the operand. If the quotient is too large to fit into a word, it will throw that exception.

    Reference: http://siyobik.info.gf/main/reference/instruction/DIV

    What do you have in the dx register? Most likely dx/ax divided by 15 does not fit in a 16-bit word.

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

Sidebar

Related Questions

I'm trying to run the following code, but get an error in the gameLoop
Am trying to run the following code for a table with initWithStyle:UITableViewCellStyleSubtitle but the
I'm trying to run the following assembly code (assembled with Nasm) in Windows 7
when I trying to run following code. var result = from c in db.brand
I am trying to run the following code from within Eclipse: Process process =
I am trying to run the following code: List<Integer> list = Arrays.asList(1,2,3); ArrayList<Integer> val
I am trying to run the following simple code, public abstract class Shape{ abstract
I'm trying to run the following line: Directions.loadFromWaypoints((Waypoint[])waypoints.toArray(), opts); But I'm getting: 23:41:44.595 [ERROR]
I am trying to run the following code: public BigDecimal valuate(String searchTerms, String categoryPath)
I'm trying to run the following code with Ninject.Moq: [TestMethod] public void TestMethod1() {

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.