RosettaCodeData/Task/Conditional-structures/MIPS-Assembly/conditional-structures-3.mips
2023-07-01 13:44:08 -04:00

2 lines
106 B
Text

BNEZ $t0,loop ;branch if $t0 is nonzero.
subiu $t0,1 ;this finishes at the same time the jumpback occurs.