没有Windows9?自己写一个!(开源)(自制操作系统系列十二)绝对不是ppt,VMware运行成功

开源地址:Windows9镜像文件和开源代码

先上图

 

此操作系统由workOS改gui:WorkOS开源地址

代码结构:

根目录{------------kernel主要代码{--command.c命令行相关

          |--其他:一些软件和字库     |-graphic.c图形处理

                                                    |-time.c时间

                                                    |-timer.c定时器

                                                    |-bootpack.c主代码

                                                    |-  ......其他

graphic.c的部分代码


void init_screen8(char *vram, int x, int y)
{
	int *fat;
	unsigned char c;
	struct MEMMAN *memman = (struct MEMMAN *) MEMMAN_ADDR;
	boxfill8(vram, x, 136,  0,     0,      x -  1, y - 29);
	fat = (int *) memman_alloc_4k(memman, 4 * 2880);
	file_readfat(fat, (unsigned char *) (ADR_DISKIMG + 0x000200));
	pic_read_picture(fat, vram, x, y);
	memman_free_4k(memman, (int) fat, 4 * 2880);
	//boxfill8(vram, x, 136,  0,     0,      x -  1, y - 29);
	boxfill8(vram, x, COL8_C6C6C6,  0,     y - 28, x -  1, y - 28);
	boxfill8(vram, x, COL8_FFFFFF,  0,     y - 27, x -  1, y - 1);
	//my computer

	boxfill8(vram, x, COL8_C6C6C6, 10, 45, 45, 65);
	boxfill8(vram, x, COL8_00FFFF, 12, 47, 43, 63);
	boxfill8(vram, x, COL8_C6C6C6, 22, 65, 32, 75);
	boxfill8(vram, x, COL8_C6C6C6, 12, 75, 43, 77);
	
	putfonts8_asc(
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值