From 7c870e6eabd53f7a8cb0c9b5ecb477797b4de09a Mon Sep 17 00:00:00 2001 From: Elizabeth Alexander Hunt Date: Sun, 11 Oct 2026 14:22:26 -0700 Subject: Scroll some pixels on the fuckin screen --- src/utils.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/utils.c') diff --git a/src/utils.c b/src/utils.c index 63b0b56..bf1ff13 100644 --- a/src/utils.c +++ b/src/utils.c @@ -1,14 +1,15 @@ #include "utils.h" +#include "io.h" -void macaroni_panic(char* msg) { +void macaroni_panic(const char* msg) { // we'll do something with msg later. // while(true){ asm("nop\n\t"); } + serial_puts(msg); asm("int $0x13"); } -void macaroni_assert(bool condition, char* msg) { - if (condition) { - return; +void macaroni_assert(bool condition, const char* msg) { + if (!condition) { + macaroni_panic(msg); } - macaroni_panic("thisisatest"); -} \ No newline at end of file +} -- cgit v1.3