⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vga.c

📁 VGA的IP核
💻 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 + -