aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/irq.c
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-13 14:11:24 -0700
committerChristian Cunningham <cc@localhost>2022-02-13 14:11:24 -0700
commit22b2957d4610f201bd2d365d42de285478093c01 (patch)
treea3cb3e8ea2c82a7cd9128b307abc0a136b119f71 /src/cpu/irq.c
parent921398936d989aef06be8d869d9162e3d9b294b3 (diff)
Recreated status board
Diffstat (limited to 'src/cpu/irq.c')
-rw-r--r--src/cpu/irq.c13
1 files changed, 7 insertions, 6 deletions
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;