main.c.svn-base
来自「SImple Microkernel Distributed Operating」· SVN-BASE 代码 · 共 30 行
SVN-BASE
30 行
#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 + =
减小字号Ctrl + -
显示快捷键?