Rust, System Programming.
let buffer = 0xb8000 as *mut u8; for (num, &byte) in PRINT_MESSAGE.iter().enumerate() { unsafe { *buffer.offset(num as isize * 2) = byte; *buffer.offset(num as isize * 2 + 1) = 0x9; } } loop {} } The above lines are used to print text to the screen. Let’s try to understand the code. Firstly, we’ve