A friend gave me this code, and told me there was a fail somewhere in, but i can"t find it...
Anybody see where this code fail ?
(Asm language)
fact: blez $a0, fact_0
sub $sp, $sp, 8
sw $ra, 0($sp)
sw $a0, 4($sp)
sub $a0, $a0, 1
jal fact
lw $a0, 4($sp)
mul $v0, $v0, $a0
lw $ra, 0($sp)
add $sp, $sp, 8
j $ra
fact_0:
li $v0, 1
j $ra
haha nope I fail.
RépondreSupprimeri know nothin about it!
RépondreSupprimerwut?
RépondreSupprimerHappy Thanksgiving!
RépondreSupprimerI don't know any Assembly, why are you learning low level programming? Just out of curiosity.
RépondreSupprimerNope, I can't find it.
RépondreSupprimer