;quad.asm Chuck Lillie ;use this as the template to do quad ;the final value must be stored in the variable sum include Irvine32.inc .data x1 word ? a1 word ? b1 word ? c1 word ? sum word ? ;place to store the results msgx byte "Enter the x value: ", 0 msgs byte "The result of ax^2+bX+c is ", 0 msga byte "Enter the a value: ", 0 msgb byte "Enter the b value: ", 0 msgc byte "Enter the c value: ", 0 .code main PROC ;prompt for the x value mov edx, offset msgx call writeString ;accept x value call readInt mov x1, ax call crlf ;prompt for the a value mov edx, offset msga call writeString ;accept a value call readInt mov a1, ax call crlf ;prompt for the b value mov edx, offset msgb call writeString ;accept b value call readInt mov b1, ax call crlf ;prompt for the c value mov edx, offset msgc call writeString ;accept c value call readInt mov c1, ax call crlf ;your code to calcualte ax^2 + bx + c goes here ;do not forget to put your final answer in the variable sum ;end of your code ;display the result mov edx, offset msgs call writeString mov ax, sum call writeInt ;exit to DOS gracefully exit main ENDP END main