WA6 - (main.asm;;.;;;fromyourtextbooksli

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
TITLE multiplies 32-bit memory operands (main.asm)  ; For this assignment you must build a program that should prompt  ; the user for the radius of a circle. It should calculate and  ; display the circles area.  ; To create this program use the ReadFloat and WriteFloat procedures  ; from your textbooks library. The FLDPI instruction is used to load  ; PI onto the register stack: area = PI * radius^2.  INCLUDE Irvine32.inc  INCLUDE macros.inc  .data             userInput REAL8 ?                                                                                                                                                                           .code  main PROC             mWrite "Input the radius: "             Call ReadFloat 
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.
  • Summer '09
  • JasonLitz
  • Irvine32.inc  INCLUDE macros.inc, ReadFloat                        fmul ST, exit  main ENDP, testing                        fmul ST, TITLE multiplies, memory operands

{[ snackBarMessage ]}

Page1 / 2

WA6 - (main.asm;;.;;;fromyourtextbooksli

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online