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

📄 main.c.svn-base

📁 SImple Microkernel Distributed Operating System
💻 SVN-BASE
字号:
#include <stdio.h>#include <string.h>#include <system.h>unsigned char inportb(unsigned short _port){	unsigned char rv;	__asm__ __volatile__ ("inb %1, %0" : "=a" (rv) : "dN" (_port));	return rv;}void outportb(unsigned short _port, unsigned char _data){	__asm__ __volatile__ ("outb %1, %0" : : "dN" (_port), "a" (_data));}int main(){	init_video();	__asm__ __volatile__ ("sti");		printf("Hello, world!");	puts("Booting Simdos-0.0-1 ...\n");	printf("Booting Simdos version 0.0-1");//	for(;;);	return 0;}

⌨️ 快捷键说明

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