barclock: Draw a leading zero if the minute is less than 10

This commit is contained in:
Ry 2022-10-05 16:20:50 -07:00
parent 89ee1342fe
commit d62518b5eb

View File

@ -29,6 +29,8 @@ loop:
; minute ; minute
in r0, 0x80000704 in r0, 0x80000704
cmp r0, 10
iflt call minute_less_than_10
call draw_decimal_to_overlay call draw_decimal_to_overlay
loop_end: loop_end:
@ -40,6 +42,12 @@ afternoon:
add r1, 8 add r1, 8
ret ret
minute_less_than_10:
mov r0, 0
call draw_decimal_to_overlay
in r0, 0x80000704
ret
second_counter: data.8 0 second_counter: data.8 0
#include "../../fox32rom/fox32rom.def" #include "../../fox32rom/fox32rom.def"