开源地址: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(