logo Use SA10RAM to get 10%* Discount.
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Minal JordenOthers
(5/5)

708 Answers

Hire Me
expert
Pam SalvasLaw
(5/5)

741 Answers

Hire Me
expert
Bernard HawkinsMarketing
(5/5)

966 Answers

Hire Me
expert
Garard BerwickBusiness
(5/5)

632 Answers

Hire Me
Assembly Programming

Develop an x86 assembly language program that properly executes an "x to the y power" function int power(int x, int y)

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Question 1

Develop an x86 assembly language program that properly executes an "is even" function:

  • bool isEven(int value)
  • If the value passed in is even, return 1
  • If the value passed in is odd,  return 0
  • Remember that the return value must be placed in the EAX register
  • Make sure that any registers (not EAX) used by this function are placed back to their initial states prior to exiting

Allow an end user to test this function in the following manner:

  • Prompt the user to enter an integer value ("Enter a value: ")
  • Allow the user to input their value
  • Pass the user input value to the isEven() function
  • Let the function do its work and return the correct value
  • Print out the result as the result of a conditional expression
    • The value is even!
    • The value is odd!

Question 2

  1. Develop an x86 assembly language program that properly executes an "x to the y power" function:
    • int power(int x, int y)
    • Compute the integer value that is x to the y power
    • Do not concern yourself with the possibility of overflow
    • You may only use only a loop structure to compute the value
    • Remember that the return value must be placed in the EAX register
    • Make sure that any registers (not EAX) used by this function are placed back to their initial states prior to exiting

Allow an end user to test this function in the following manner:

    • Prompt the user to enter an integer value ("Enter a value for x: ")
    • Allow the user to input their value
    • Prompt the user to enter an integer value ("Enter a value for y: ")
    • Allow the user to input their value
    • Pass the user input value to the power() function
    • Let the function do its work and return the correct value
    • Print out the result ("x to the y power is: ")

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme

Get Free Quote!

311 Experts Online