mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
add example that is literally the tonc example
This commit is contained in:
parent
473f75f20d
commit
adfa3b9fde
|
@ -2,7 +2,7 @@
|
||||||
#![no_main]
|
#![no_main]
|
||||||
|
|
||||||
#[panic_handler]
|
#[panic_handler]
|
||||||
fn panic_handler(info: &core::panic::PanicInfo) -> ! {
|
fn panic_handler(_info: &core::panic::PanicInfo) -> ! {
|
||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,8 +15,8 @@ pub fn main() -> ! {
|
||||||
*(0x0400_0000 as *mut u32) = 0x0403;
|
*(0x0400_0000 as *mut u32) = 0x0403;
|
||||||
let video = 0x0600_0000 as *mut u16;
|
let video = 0x0600_0000 as *mut u16;
|
||||||
*video.offset(120 + 80 * 240) = 0x001F;
|
*video.offset(120 + 80 * 240) = 0x001F;
|
||||||
*video.offset(136 + 80 * 240) = 0x001F;
|
*video.offset(136 + 80 * 240) = 0x03E0;
|
||||||
*video.offset(120 + 96 * 240) = 0x001F;
|
*video.offset(120 + 96 * 240) = 0x7C00;
|
||||||
}
|
}
|
||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue