From 22b2957d4610f201bd2d365d42de285478093c01 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Sun, 13 Feb 2022 14:11:24 -0700 Subject: Recreated status board --- src/cpu/irq.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/cpu') diff --git a/src/cpu/irq.c b/src/cpu/irq.c index 0488231..442c834 100644 --- a/src/cpu/irq.c +++ b/src/cpu/irq.c @@ -23,8 +23,8 @@ void c_irq_handler(void) unsigned int x = g_Drawer.x; unsigned int y = g_Drawer.y; g_Drawer.x = 0; - g_Drawer.y = 14; - write_hex32(&g_Drawer, data); + g_Drawer.y = 9; + write_chex32(&g_Drawer, data, 0xAA00FF); g_Drawer.x = x; g_Drawer.y = y; } @@ -36,16 +36,17 @@ void c_irq_handler(void) unsigned int x = g_Drawer.x; unsigned int y = g_Drawer.y; g_Drawer.x = 0; - g_Drawer.y = 5; - write_string(&g_Drawer, "TIMER: "); + g_Drawer.y = 3; if(timer_status == 0) { cntfrq = read_cntfrq(); write_cntv_tval(cntfrq/CPS); enablecntv(); - write_cstring(&g_Drawer, "Enabled ", 0x00FF00); + write_cstring(&g_Drawer, "TIMER", 0x00FF00); + write_string(&g_Drawer, ": "); } else { disablecntv(); - write_cstring(&g_Drawer, "Disabled", 0xFF0000); + write_cstring(&g_Drawer, "TIMER", 0xFF0000); + write_string(&g_Drawer, ": "); } g_Drawer.x = x; g_Drawer.y = y; -- cgit v1.2.1