Lecture 20, MIPS Programming: Assembler Directives
Lecture 20, MIPS Programming: Assembler Directives
Lecture 20, MIPS Programming: Assembler Directives
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
TODAY IS ABOUT CODE.data?Pi: .double 3.1415926536897924Rad: .double 12.345678901234567.textmain: l.d $f0, Pi # $f0 = Pil.d $f4, Rad # $f4 = Radmul.d $f12, $f4, $f4 # $f12 = Radius squaredmul.d $f12, $f12, $f0 # Multiply by Pili $v0, 3syscall# Print the areali $v0, 10syscall# Terminate the program