.define UART_TRANS_EMPTY, 0x1
.define UART_RECV_NEW, 0x2
+ .define SSEG_BASE, 0x2010
+
+ .define INT_BASE, 0x2020
+ .define INT_CONF, 0x04
+ .define INT_GLOBAL_BIT, 0x01
+ .define INT_UART_REC_BIT, 0x02
+
u_recv_byte:
#ifndef DTSIM
ldw r3, UART_STATUS(r10)
ldih r10, UART_BASE@hi
#endif
ret
+
+sseg_displ:
+#ifndef DTSIM
+ ldi r2, SSEG_BASE
+ stw r1, 0(r2)
+#endif
+ ret