Skip to content
Snippets Groups Projects
Verified Commit b7a1f531 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Disable cursor

parent 2bb9a378
No related branches found
No related tags found
No related merge requests found
......@@ -155,11 +155,20 @@ pub unsafe extern "C" fn kstart(
thunk16: extern "C" fn(),
) -> ! {
{
// Make sure we are in mode 3 (80x25 text mode)
let mut data = ThunkData::new();
data.ax = 0x03;
data.with(thunk10);
}
{
// Disable cursor
let mut data = ThunkData::new();
data.ax = 0x0100;
data.cx = 0x3F00;
data.with(thunk10);
}
let mut vga = Vga::new(0xb8000 as *mut VgaTextBlock, 80, 25);
for i in 0..vga.blocks.len() {
......@@ -172,6 +181,7 @@ pub unsafe extern "C" fn kstart(
writeln!(vga, "Arrow keys and space select mode, enter to continue");
loop {
// Read keypress
let mut data = ThunkData::new();
data.with(thunk16);
writeln!(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment