Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help needed analyzing coes

1 view
Skip to first unread message

sr3...@gmail.com

unread,
May 28, 2008, 2:23:32 PM5/28/08
to
Hi guys, I am a newbie to MIPS, can someone help me to anaylze what is
the functionality of the following code:
This code is not complete, so you might have to make some assumptions.

newline: .asciiz "\n"
space: .asciiz " "


L1: move $t1, $0
L2: move $t2, $0

lw $a0, 0($t4)
li $v0, 1
syscall

la $a0, space
li $v0, 4
syscall

addi $t4, $t4, 4
addi $t2, $t2, 1
slt $t5, $t2, $t6
bne $t5, $0, L2:
la $a0, newline
li $v0, 4


addi $t1, $t1, 1
slt $t5, $t1, $t6
bne $t5, $0, L1

Thanks in advance!!!

Amber!

MyName

unread,
May 31, 2008, 4:02:55 AM5/31/08
to
Hi,

do you have a debugger?

Mario

0 new messages