#![no_std] // This is a minimal kernel.
#![no_main]
use core::panic::PanicInfo;
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! { loop {} }
#[no_mangle]
pub extern "C" fn _start() -> ! {
let message = "Hi, I am Cy6er7um!"; // โฌ
let buffer = 0xb8000 as *mut u8;
for (i, &b) in message.as_bytes().iter().enumerate() {
unsafe { // โ
*buffer.offset(i as isize * 2) = b;
*buffer.offset(i as isize * 2 + 1) = 0xb;
}
}
loop {}
}
Github: @Cy6er7um
Twitter: @Cy6er7um
Mail: Cy6er7um@gmail.com