aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
blob: 65447815c72a2d192f4cf39785b9fdb14856d3ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#![no_std]
#![no_main]
mod arch;
mod machine;
use core::panic::PanicInfo;
use core::{mem, ptr};
use machine::cgascr::CGAScreen;

#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
    loop {}
}

#[no_mangle]
pub extern "C" fn _entry() -> ! {
    let scr = CGAScreen::new(25,80);
    // scr.show(0,0,'X',0x0f);
    // scr.show(0,79,'X',0x0f);
    // scr.show(24,0,'X',0x0f);
    // scr.show(24,79,'X',0x0f);
    scr.test();
    loop {}
}