mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 08:41:34 +11:00
25 lines
497 B
Rust
25 lines
497 B
Rust
|
#![no_std]
|
||
|
#![feature(start)]
|
||
|
|
||
|
extern crate gba;
|
||
|
#[start]
|
||
|
fn main(_argc: isize, _argv: *const *const u8) -> isize {
|
||
|
let mut gba = gba::Gba::new();
|
||
|
let mut mgba = gba::mgba::Mgba::new().unwrap();
|
||
|
|
||
|
let vblank = gba.display.vblank.get();
|
||
|
|
||
|
let mut count = 0;
|
||
|
loop {
|
||
|
vblank.wait_for_VBlank();
|
||
|
|
||
|
mgba.print(
|
||
|
format_args!("Hello, world, frame = {}", count),
|
||
|
gba::mgba::DebugLevel::Info,
|
||
|
)
|
||
|
.unwrap();
|
||
|
|
||
|
count += 1;
|
||
|
}
|
||
|
}
|