implemented println! macro

This commit is contained in:
clizia 2025-08-27 01:05:47 +02:00
parent f94b8537cf
commit 16e1bc308f
2 changed files with 29 additions and 11 deletions

View file

@ -11,9 +11,7 @@ static HELLO: &[u8] = b"Hello toto :3";
// looks for a function named `_start` by default
#[unsafe(no_mangle)]
pub extern "C" fn _start() -> ! {
use core::fmt::Write;
vga_buffer::WRITER.lock().write_str("TOTOTO !!!! :3").unwrap();
write!(vga_buffer::WRITER.lock(), ", smoking cigarette in the shower when they get wet i just light another :{}", 3).unwrap();
println!("smoking cigarettes in the shower\nwhen they get wet i just light another\n:{}", 3);
loop {}
}