blob: 1057e2648b096d4e2f3056875dbba2b5b2293335 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#![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();
loop {}
}
|