Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

annas

hello guys can anyone help me with assembly language: i've to make a squaring and cubing function i.e x^2 , x^3 for the given number. what should i use IMUL or MUL function ?

  • one year ago
  • one year ago

  • This Question is Closed
  1. A.Avinash_Goutham
    Best Response
    You've already chosen the best response.
    Medals 1

    IMUL is integer multiplication.....

    • one year ago
  2. annas
    Best Response
    You've already chosen the best response.
    Medals 1

    IMUL is signed multiplication MUL is unsigned multiplication

    • one year ago
  3. A.Avinash_Goutham
    Best Response
    You've already chosen the best response.
    Medals 1

    yup

    • one year ago
  4. annas
    Best Response
    You've already chosen the best response.
    Medals 1

    so how would you make square function ?

    • one year ago
  5. A.Avinash_Goutham
    Best Response
    You've already chosen the best response.
    Medals 1

    here's the code.... DATA SEGMENT X DW 04H SQUARE DW ? CUBE DW ? DATA ENDS CODE SEGMENT ASSUME CS:CODE,DS:DATA START: MOV AX,DATA MOV DS,AX MOV AX,X MOV BX,X MUL BX MOV SQUARE,AX MUL BX MOV CUBE,AX MOV AH,4CH INT 21H CODE ENDS END START Input: x ----------- 4h Output: Square ---------10h Cube -----------40h ;Load the Data to AX. ;Move the Data AX to DS. ;Move the X number Data to AX. ;Move the X number Data to BX. ;Perform the multiplication by BX. ;Store value in SQUARE. ;Perform the multiplication by BX. ;Store value in CUBE. - 25

    • one year ago
  6. annas
    Best Response
    You've already chosen the best response.
    Medals 1

    ok ty

    • one year ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.