Starts adding fontplate for VGA

This commit is contained in:
2025-11-13 10:26:37 +01:00
parent 3044a54a09
commit 7bc23ce211
7 changed files with 170 additions and 5 deletions

View File

@@ -3,7 +3,11 @@
use core::arch::asm;
use fpga_lib::{panic_handler, register::X31};
use fpga_lib::{
panic_handler,
register::X31,
vga::{VGA, WHITE},
};
panic_handler! {}
@@ -17,9 +21,7 @@ pub extern "C" fn _start() -> ! {
"add x31, x0, {}", in(reg) test
);
const VGA: *mut u8 = 0x80000000 as *mut u8;
VGA.write_volatile(255);
// VGA.add(1).write_volatile(255);
VGA::write_pixel_unsafe(0, 0, WHITE);
}
loop {}