Linked by Thom Holwerda on Sun 26th May 2013 18:48 UTC
OSNews, Generic OSes "A tiny 32 bit kernel written in Rust. I was inspired to download Rust and try to do this after seeing - a stub that lets Rust programs run almost freestanding. It paints the screen bright red and then hangs. That's it."
Permalink for comment 562911
To read all comments associated with this story, please click here.
RE[2]: I clicked it, I liked it
by moondevil on Mon 27th May 2013 06:09 UTC in reply to "RE: I clicked it, I liked it"
Member since:

I'm not sure what they're doing in Rust; but the boot loader and the code to paint the screen red is all written in assembly.

Only the boot loader is written in Assembly, like in any OS.

Have you read the code at all?!

unsafe fn clear_screen(background: Color) {
range(0, 80*25, |i| {
*((0xb8000 + i * 2) as *mut u16) = (background as u16) << 12;

Reply Parent Score: 3