Test MGBA logging
This commit is contained in:
parent
b33aadf3bb
commit
cc454bba24
10
src/main.cpp
10
src/main.cpp
@ -1,5 +1,7 @@
|
|||||||
|
#include <cstdint>
|
||||||
#include <tonc.h>
|
#include <tonc.h>
|
||||||
#include <stdint.h>
|
|
||||||
|
#include "debug.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "boxed_dot.h"
|
#include "boxed_dot.h"
|
||||||
@ -16,6 +18,8 @@ const struct {
|
|||||||
} boxed_dot;
|
} boxed_dot;
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
|
debug::open();
|
||||||
|
|
||||||
// Mode 3-5 are bitmap modes.
|
// Mode 3-5 are bitmap modes.
|
||||||
// 3: 240x160 @ 16bpp N page-flip
|
// 3: 240x160 @ 16bpp N page-flip
|
||||||
// 4: 240x160 @ 8bpp Y page-flip
|
// 4: 240x160 @ 8bpp Y page-flip
|
||||||
@ -24,6 +28,8 @@ int main(void) {
|
|||||||
// BG2 is the only available background in bitmap modes.
|
// BG2 is the only available background in bitmap modes.
|
||||||
REG_DISPCNT = DCNT_MODE3 | DCNT_BG2;
|
REG_DISPCNT = DCNT_MODE3 | DCNT_BG2;
|
||||||
|
|
||||||
|
debug::puts("Hello World!");
|
||||||
|
|
||||||
// Write gradient from black -> RGB in first three lines.
|
// Write gradient from black -> RGB in first three lines.
|
||||||
// Each color is displayed on a separate line.
|
// Each color is displayed on a separate line.
|
||||||
// for (size_t i = 0; i < 32; ++i) {
|
// for (size_t i = 0; i < 32; ++i) {
|
||||||
@ -45,5 +51,7 @@ int main(void) {
|
|||||||
vid_vsync();
|
vid_vsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
debug::close();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user