Question: using mips , write a code m trying to make a program that output time like this: 00:00:00 all the way to 12:59:59 here is

using mips , write a code m trying to make a program that output time like this: 00:00:00 all the way to 12:59:59 here is my code it only loops around the second and nothing else is outputs it output from 0:0:0 to 0:0:59 what am I doing wrong and how can i get the output in format ##:##:##

.data str2: .asciiz ":" space: .asciiz " " .text main: li $t0,1 hour: bgt $t0,12,exit minutes: bgt $t1,59,hour seconds: bgt $t2,59,minutes li $v0, 1 move $a0, $t0 syscall li $v0,4 la $a0,str2 #load and print string syscall li $v0, 1 move $a0, $t1 syscall li $v0,4 la $a0,str2 #load and print string syscall li $v0, 1 move $a0, $t2 syscall addi $v0, $zero, 4 la $a0, space syscall addi $t2,$t2,1 j seconds addi $t1,$t1,1 j minutes addi $t0,$t0,1 j hour exit: 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!