简体   繁体   中英

Output to display with Rust bare metal

I'm following along with the Phil-Opp tutorials on creating an OS , and I'm trying to figure out how to control my display/screen, after having successfully gotten VGA output to work. How does one control the display? I'm assuming you have to write a driver... or do you write to specific memory locations like VGA? Would a crate like SDL2, Glium, or something else work on 'bare-metal'?

假设您处于8bpp VGA图形模式(例如模式0x13),则可以通过写入内存地址0xA00000xB8000将像素直接写入屏幕。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM