Use whatever services you have for accepting string input, then find the separator character and parse the two numbers on each side.
Update: here is a sample implementation.
! parse time in hh:mm format
! in: %o0 pointer to zero-terminated buffer
! out: %o0 hours, %o1 minutes
gettime:
save %sp, -64, %sp
! look for the colon in the string
! for simplicity, assume it always exists
mov %i0, %o0 ! use %o0 for pointer
colon_loop:
ldub [%o0], %o1 ! load next byte
cmp %o1, ':'
bne colon_loop
add %o0, 1, %o0
! ok, now we have start of minutes in %o0
! replace the colon by a zero
! and convert the minutes part
call atoi
stb %g0, [%o0-1]
! we now have the minutes in %o0, save it
mov %o0, %i1
! convert the hours
call atoi
mov %i0, %o0
! we now have hours in %o0
! return with hours,minutes in %o0,%o1 respectively
ret
restore %o0, %g0, %o0
! simple atoi routine
! in: %o0 pointer to zero-terminated string of digits
! out: %o0 the converted value
atoi:
mov %g0, %o1 ! start with zero
atoi_loop:
ldub [%o0], %o2 ! load next character
cmp %o2, 0 ! end of string?
be atoi_done
sub %o2, '0', %o2 ! adjust for ascii
! now multiply partial result by 10, as 8x+2x
sll %o1, 3, %o3 ! 8x
sll %o1, 1, %o1 ! 2x
add %o1, %o3, %o1 ! 10x
! now add current digit and loop back
add %o2, %o1, %o1
b atoi_loop
add %o0, 1, %o0
atoi_done:
retl
mov %o1, %o0