?? vga.c
字號:
#include <io.h>
#include "system.h"
#include "VGA.h"
//-------------------------------------------------------------------------
void Set_Cursor_XY(unsigned int X,unsigned int Y)
{
Vga_Cursor_X(VGA_0_BASE,X);
Vga_Cursor_Y(VGA_0_BASE,Y);
}
//-------------------------------------------------------------------------
void Set_Cursor_Color(unsigned int R,unsigned int G,unsigned int B)
{
Vga_Cursor_Color_R(VGA_0_BASE,R);
Vga_Cursor_Color_G(VGA_0_BASE,G);
Vga_Cursor_Color_B(VGA_0_BASE,B);
}
//-------------------------------------------------------------------------
void Set_Pixel_On_Color(unsigned int R,unsigned int G,unsigned int B)
{
Vga_Pixel_On_Color_R(VGA_0_BASE,R);
Vga_Pixel_On_Color_G(VGA_0_BASE,G);
Vga_Pixel_On_Color_B(VGA_0_BASE,B);
}
//-------------------------------------------------------------------------
void Set_Pixel_Off_Color(unsigned int R,unsigned int G,unsigned int B)
{
Vga_Pixel_Off_Color_R(VGA_0_BASE,R);
Vga_Pixel_Off_Color_G(VGA_0_BASE,G);
Vga_Pixel_Off_Color_B(VGA_0_BASE,B);
}
//-------------------------------------------------------------------------
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -