Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Intelx86 assembly language program ou and your programming team are writing an RPG video game and you are responsible for writing the quation that will

Intelx86 assembly language program
image text in transcribed
ou and your programming team are writing an RPG video game and you are responsible for writing the quation that will calculate the damage output given a set of variables. For efficiency, you are required write this in Intelx86 Assembly Language: c. Your character has a weapon with a baseStat. d. Your character also has a powerlevel between 1 and 100. e. The amount of damage that you can deal is equal to your weapon's baseStat plus your powerLevel times 10 . f. For every 10 levels your character has, your damage is increased by 25. i. For example, if your character is level 30 , your damage is increased by 75 (325), but if your character is level 39 it would still be 75 . If it increased to 40 , damage is increased by 100(425). Take the following approach: - In the data section, declare two variables called baseStat and level, both initialized to 0 . - Create another variable called damageOutput, initialized to 0 . - Create a mathematical expression that will calculate the damage output given the requirements. - In the code section, use the general registers (eax, ebx, ecx, and edx) as well as any add and/or mul and/or div commands that would use the expression that you wrote and calculate the final total in square feet. - At the end of the program, use the mov command to move the final value to damageOutput. a. Copy-paste the code that you've written into this section: b. Test your program by setting bosestat and level to 1800 and 45 respectively. Add a breakpoint to debug (as we've done in video) and examine the registers to ensure that the correct value is being placed in damageOutput. Take a screenshot of the registers and place it here

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students also viewed these Databases questions

Question

=+ Who is the negotiation partner at company level?

Answered: 1 week ago

Question

=+Which associations exist?

Answered: 1 week ago