From cc454bba2478f8c299c4a32775e4bd7b01d4e5a0 Mon Sep 17 00:00:00 2001 From: Madeline Busig Date: Thu, 29 Feb 2024 16:59:32 -0700 Subject: [PATCH] Test MGBA logging --- src/main.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index baf2de2..7d96633 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,5 +1,7 @@ +#include #include -#include + +#include "debug.hpp" extern "C" { #include "boxed_dot.h" @@ -16,6 +18,8 @@ const struct { } boxed_dot; int main(void) { + debug::open(); + // Mode 3-5 are bitmap modes. // 3: 240x160 @ 16bpp N page-flip // 4: 240x160 @ 8bpp Y page-flip @@ -24,6 +28,8 @@ int main(void) { // BG2 is the only available background in bitmap modes. REG_DISPCNT = DCNT_MODE3 | DCNT_BG2; + debug::puts("Hello World!"); + // Write gradient from black -> RGB in first three lines. // Each color is displayed on a separate line. // for (size_t i = 0; i < 32; ++i) { @@ -45,5 +51,7 @@ int main(void) { vid_vsync(); } + debug::close(); + return 0; }