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

📄 printk.h

📁 用于汇编领域的,运用于OS的MAIN函数.基于硬件基础的源代码
💻 H
字号:
#ifndef __LIB_PRINTK_H_#define __LIB_PRINTK_H_#define BLACK	0#define BLUE	1#define GREEN	2#define CYAN	3#define RED	4#define MAGENTA	5#define AMBER	6#define GRAY	7#define	BRIGHT	8#define ATTRIB(bg, fg)	((fg)|((bg)<<4))#define NUMCOLS	80#define NUMROWS	25#define TABWIDTH	8#define VIDEO_MEM	((unsigned char *) 0xB8000)#define CRT_ADDR_REG	0x3D4#define CRT_DATA_REG	0x3D5#define CRT_CURSOR_LOC_HIGH_REG	0x0E#define CRT_CURSOR_LOC_LOW_REG	0x0Fvoid init_screen(void);void clear_screen(void);void get_cursor(int *row, int *col);void put_cursor(int row, int col);unsigned char get_current_attr(void);void set_current_attr(unsigned char attrib);void put_char(int c);void put_string(const char *s);void printk(const char *fmt, ...);#endif	// PRINTK_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -