mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Fix offset typo
This commit is contained in:
@@ -76,7 +76,7 @@ pub fn _start(boot_info: &'static mut BootInfo) -> ! {
|
|||||||
unsafe {
|
unsafe {
|
||||||
*vga_buffer.offset(0) = b'O';
|
*vga_buffer.offset(0) = b'O';
|
||||||
*vga_buffer.offset(1) = 0xa; // foreground color green
|
*vga_buffer.offset(1) = 0xa; // foreground color green
|
||||||
*vga_buffer.offset(0) = b'K';
|
*vga_buffer.offset(2) = b'K';
|
||||||
*vga_buffer.offset(3) = 0xa; // foreground color green
|
*vga_buffer.offset(3) = 0xa; // foreground color green
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ pub fn _start() -> ! {
|
|||||||
unsafe {
|
unsafe {
|
||||||
*vga_buffer.offset(0) = b'O';
|
*vga_buffer.offset(0) = b'O';
|
||||||
*vga_buffer.offset(1) = 0xa; // foreground color green
|
*vga_buffer.offset(1) = 0xa; // foreground color green
|
||||||
*vga_buffer.offset(0) = b'K';
|
*vga_buffer.offset(2) = b'K';
|
||||||
*vga_buffer.offset(3) = 0xa; // foreground color green
|
*vga_buffer.offset(3) = 0xa; // foreground color green
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user