#include "dt_inc.s" .text .org 0x0 start: br+ main br+ main ret main: call+ u_init call+ u_recv_byte call u_send_newline ldis r1, 0x42 call u_send_byte call t_init call t_start loop: call u_recv_byte cmpi r0, 0x42 breq reset_timer call t_valget addi r1, r0, 0 call u_send_uint call u_send_newline br loop reset_timer: ldis r1, 0 call t_valset br loop