Starts adding fontplate for VGA
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user