aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
blob: 0f005ae3921de55f97a0be8bd285e4020fa073d6 (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 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();
    scr.setpos(10, 10);
    loop {}
}