Corrects critical mistake where core tried to bypass even if previous instruction did not write-back
This commit is contained in:
@@ -46,10 +46,12 @@ impl VGA
|
||||
{
|
||||
let c = if (c as u8 > b'~') || ((c as u8) < b' ')
|
||||
{
|
||||
unsafe { Self::write_pixel_unsafe(x, y, RED) };
|
||||
b'/' - b' '
|
||||
}
|
||||
else
|
||||
{
|
||||
unsafe { Self::write_pixel_unsafe(x, y, GREEN) };
|
||||
c as u8 - b' '
|
||||
};
|
||||
|
||||
@@ -64,12 +66,12 @@ impl VGA
|
||||
let xx = x + i;
|
||||
let yy = y + j;
|
||||
|
||||
if xx < (WIDTH as u16)
|
||||
&& yy < (HEIGHT as u16)
|
||||
&& unsafe { Self::font_plate_index(char_x as u16 + i, char_y as u16 + j) }
|
||||
//if unsafe { Self::font_plate_index(char_x as u16 + i, char_y as u16 + j) }
|
||||
// if xx < (WIDTH as u16)
|
||||
// && yy < (HEIGHT as u16)
|
||||
// && unsafe { Self::font_plate_index(char_x as u16 + i, char_y as u16 + j) }
|
||||
if unsafe { Self::font_plate_index(char_x as u16 + i, char_y as u16 + j) }
|
||||
{
|
||||
unsafe { Self::write_pixel_unsafe(xx, yy, color) }
|
||||
// //unsafe { Self::write_pixel_unsafe(xx, yy, color) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user