1. Read the assembly code below and explain what this procedure is trying to do

This topic contains 1 reply, has 2 voices, and was last updated by  Yuri 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #54692

    BALQEES
    Member

    new-proc:
    beq $a2, $zero, proc-fail
    lw $t0, ($a0)
    beq $t0, $a1, proc-succ
    addi $a0, $a0, 8
    subi $a2, $a2, 1
    j new-proc
    proc-succ:
    lw $v0, 4($a0)
    jr $ra
    proc-fail:
    add $v0, $zero, $zero
    jr $ra

    #54919

    Yuri
    Moderator

    BALQEES: Are you trying to find somebody who can do your homework on MIPS assembly programming on this forum

    1 user thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.