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

Home Forums MIPS Insider MIPSfpga 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 1 year, 6 months ago.

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

    BALQEES
    Participant

    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

    #64476

    Yuri
    Moderator

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

Viewing 2 posts - 1 through 2 (of 2 total)

Forums are currently locked.