From e25a1c7158d263e3a3f298a52d0432ca99325601 Mon Sep 17 00:00:00 2001 From: Corwin Date: Wed, 22 May 2024 02:20:39 +0100 Subject: [PATCH] remove just build that is non standard --- agb/examples/just_build.rs | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 agb/examples/just_build.rs diff --git a/agb/examples/just_build.rs b/agb/examples/just_build.rs deleted file mode 100644 index b19262db..00000000 --- a/agb/examples/just_build.rs +++ /dev/null @@ -1,25 +0,0 @@ -#![no_std] -#![no_main] - -#[panic_handler] -fn panic_handler(_info: &core::panic::PanicInfo) -> ! { - loop {} -} - -#[no_mangle] -pub extern "C" fn __RUST_INTERRUPT_HANDLER(_: u16) {} - -// implementation of tonc's "My first GBA demo" -// https://coranac.com/tonc/text/first.htm - -#[no_mangle] -pub fn main() -> ! { - unsafe { - *(0x0400_0000 as *mut u32) = 0x0403; - let video = 0x0600_0000 as *mut u16; - *video.offset(120 + 80 * 240) = 0x001F; - *video.offset(136 + 80 * 240) = 0x03E0; - *video.offset(120 + 96 * 240) = 0x7C00; - } - loop {} -}