Question: for assembly language, How do you code for the user to input a number? trying to have a user input numbers to multiply and then

for assembly language, How do you code for the user to input a number? trying to have a user input numbers to multiply and then add at the end. i have this so far

.data

d1:

.ascii "Loves chicken : 25 points \0"

d2:

.ascii "Loves fish : 20 points \0"

d3:

.ascii "Hates onions : -15 points \0"

d4:

.ascii "Hates lobster : -10 points \0"

chicken:

.ascii "How many students love chicken? \0"

fish:

.ascii "How many students love fish? \0"

onions:

.ascii "How many students hate onions? \0"

lobster:

.ascii "How many students hate lobsters? \0"

.text

.global _start

_start:

mov $d1, %rax

call PrintCString

mov $d2, %rax

call PrintCString

mov $d3, %rax

call PrintCString

mov $d4, %rax

call PrintCString

mov $chicken, %rax

call PrintCString

call EndProgram

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!