Skip to content

Commit

Permalink
loop instruction works!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
saeem-shanto committed Sep 21, 2021
1 parent 9a2c855 commit 0d193ab
Show file tree
Hide file tree
Showing 5 changed files with 831 additions and 49 deletions.
17 changes: 8 additions & 9 deletions Input.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
lw $t0,5($shanto)
lw $tanzil,3($tahsin)
addi $tanzil,$tanzil,7
addi $tahsin,$tahsin,3
addi $sheam,$sheam,0
sub $tanzil,$tahsin,$tanzil
addi $inpr,$inpr,0
sub $t0,$tanzil,$t0
beq $sheam,$inpr,1
add $t0,$sheam,$sheam
beq $inpr,$tanzil,3
add $sheam,$inpr,$sheam
addi $inpr,$inpr,1
j 4
sw $tanzil,3($shanto)
lw $tanzil,3($shanto)

j 5
out $sheam
Loading

0 comments on commit 0d193ab

Please sign in to comment.