fix syscall example

This commit is contained in:
Corwin Kuiper 2021-03-08 01:59:54 +00:00
parent 0dc5d620c7
commit 6b78a99211

View file

@ -6,8 +6,8 @@ use gba::{display, syscall};
#[start] #[start]
fn main(_argc: isize, _argv: *const *const u8) -> isize { fn main(_argc: isize, _argv: *const *const u8) -> isize {
let gba = gba::Gba::new(); let mut gba = gba::Gba::new();
let bitmap = gba.display.bitmap3(); let mut bitmap = gba.display.video.bitmap3();
for x in 0..display::WIDTH { for x in 0..display::WIDTH {
let y = syscall::sqrt(x << 6); let y = syscall::sqrt(x << 6);