Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Project 2- Getting down with Loops

1 answer below »
Project 2- Getting down with Loops
Answered Same Day Nov 21, 2021

Solution

Gaurav answered on Nov 21 2021
138 Votes
.data
    
h:     .asciiz "h : "
n:     .asciiz "n : "
sum :    .asciiz "sum : "
x :     .asciiz "x : "
from:    .asciiz "from : "
to :     .asciiz "to : "
limit: .asciiz "limit : "
esult: .asciiz "Result : "
start: .asciiz "Enter the Starting Value : "
end:     .asciiz "Enter the End limit : "
int:    .asciiz "Enter the Interval : "
    .text
    .macro newline
    li $a0, '\n'
    li $v0, 11
    syscall    
    .end_macro
    
    .macro prntStr(%address)
    la $a0, %address
    li $v0, 4
    syscall
    .end_macro
    .macro getFloat(%returnReg)
    li $v0, 6
    syscall
    mov.s %returnReg, $f0
    .end_macro
        
    .macro printFloat (%str, %float)
    la $a0, %st
    li $v0, 4
    syscall
    mov.s $f12, %float
    li $v0, 2
    syscall
    li $a0, '\n'
    li $v0, 11
    syscall
    .end_macro...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here