mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-25 01:01:34 +11:00
20 lines
312 B
Rust
20 lines
312 B
Rust
#![no_std]
|
|
#![no_main]
|
|
|
|
extern crate agb;
|
|
#[no_mangle]
|
|
pub fn main() -> ! {
|
|
let mut gba = agb::Gba::new();
|
|
|
|
let vblank = gba.display.vblank.get();
|
|
|
|
let mut count = 0;
|
|
loop {
|
|
vblank.wait_for_VBlank();
|
|
|
|
agb::println!("Hello, world, frame = {}", count);
|
|
|
|
count += 1;
|
|
}
|
|
}
|