Test MGBA logging

This commit is contained in:
Madeline Busig 2024-02-29 16:59:32 -07:00
parent b33aadf3bb
commit cc454bba24

View File

@ -1,5 +1,7 @@
#include <cstdint>
#include <tonc.h>
#include <stdint.h>
#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;
}