Test MGBA logging
This commit is contained in:
parent
83fafbab45
commit
9efe4e8bc3
10
src/main.cpp
10
src/main.cpp
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user