Show Bid Request
Very simple MIPS program
Bid Request Id: 30429
|
|
|
Posted by: |
StudentAlex (13 ratings)
(Software buyer rating 10)
|
Posted: |
Oct 9, 2002 11:39:13 AM EDT
|
Bidding Closes: |
Oct 10, 2002 11:50:40 AM EDT
|
Viewed (by coders): |
139 times
|
Deadline: |
10/10/2002 11:00:00 AM
TIME EXPIRED
|
|
|
|
Description:
VERY SIMPLE! Problem is I need the code in 24 hours! Write a MIPS assembly language program which will prompt the user for 10 integers and then display the following information: Maximum, minimum and average number. The list of numbers sorted ascending. * Store the numbers in an array. * Use a separate function to load the array, sort the array and display the array. * Follow MIPS protocol for saving registers. * Document appropriately. * Use functions extensively. * Main should be primarily function calls.
Deliverables: 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Complete ownership and distribution copyrights to all work purchased.
Platform:
Must compile on PCSPIM
Must be 100% finished and received by buyer on:
Oct 10, 2002 11:00:00 AM EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation, you can report it to: abuse@rentacoder.com.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$30 (USD)
|
Oct 9, 2002 8:28:22 PM EDT
|
10
(Excellent)
|
|
|
Hello, I'm DEN!
Try this:
.text
main: jal readarr jal minimum la $a0,result1 move $a1,$v0 jal result jal maximum la $a0,result2 move $a1,$v0 jal result jal average la $a0,result3 move $a1,$v0 jal result li $v0,10 syscall
result: li $v0,4 syscall move $a0,$a1 li $v0,1 syscall la $a0,newline li $v0,4 syscall jr $ra
readarr: li $t0,0 la $t1,array lw $t2,len next: beq $t0,$t2,endfor la $a0,prompt1 li $v0,4 syscall move $a0,$t0 add $a0,$a0,1 li $v0,1 syscall la $a0,prompt2 li $v0,4 syscall li $v0,5 syscall sw $v0,($t1) add $t1,$t1,4 add $t0,1 j next endfor: jr $ra
minimum: li $t0,1 la $t1,array lw $t2,len lw $v0,($t1) add $t1,$t1,4 next1: beq $t0,$t2,endfor1 lw $t3,($t1) ble $v0,$t3,notmin move $v0,$t3 notmin: add $t1,$t1,4 add $t0,1 j next1 endfor1: jr $ra
maximum: li $t0,1 la $t1,array lw $t2,len lw $v0,($t1) add $t1,$t1,4 next2: beq $t0,$t2,endfor2 lw $t3,($t1) bge $v0,$t3,notmax move $v0,$t3 notmax: add $t1,$t1,4 add $t0,1 j next2 endfor2: jr $ra
average: li $t0,0 la $t1,array lw $t2,len li $v0,0 next3: beq $t0,$t2,endfor3 lw $t3,($t1) add $v0,$v0,$t3 add $t1,$t1,4 add $t0,1 j next3 endfor3:div $v0,$v0,$t2 jr $ra
.data
array: .word 0,0,0,0,0,0,0,0,0,0 len: .word 10 prompt1: .asciiz 'Enter the array item number ' prompt2: .asciiz ': ' result1: .asciiz 'The minimum was ' result2: .asciiz 'The maximum was ' result3: .asciiz 'The average was ' newline: .asciiz '\n'
-------
Sorting and comments once you accept my bid ;)
BYE,
DEN! |
|
|
|
|
|