From 11b5d5914db040c5964fd54fc935f9b16d947b57 Mon Sep 17 00:00:00 2001 From: Stefan Rebernig Date: Thu, 13 Jan 2011 18:50:06 +0100 Subject: [PATCH] 7seg added to dt_inc.s --- progs/dt_inc.s | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/progs/dt_inc.s b/progs/dt_inc.s index adedc50..ad347c1 100644 --- a/progs/dt_inc.s +++ b/progs/dt_inc.s @@ -22,6 +22,13 @@ int2hex: .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) @@ -110,3 +117,10 @@ u_init: ldih r10, UART_BASE@hi #endif ret + +sseg_displ: +#ifndef DTSIM + ldi r2, SSEG_BASE + stw r1, 0(r2) +#endif + ret -- 2.25.1