Os8088:一款为 IBM XT、286 和 386 设计的强大类 Mac 操作系统
Os8088: A powerful Mac-like OS for the IBM XT, 286, 386

原始链接: https://os8088.com/

os8088 从软盘的第一个扇区引导进入图形化桌面。其底层没有 DOS,也不包含任何命令行——512 字节的引导扇区会加载 40KB 的内核,内核识别机器的显示适配器并将其切换为图形模式,借用显卡自带的 8x8 字符集,并显示菜单栏。此后的所有界面都是你记忆中 1984 年 Macintosh 的样子:通过标题栏拖动窗口时会显示虚线框,菜单支持下拉和拖拽选择,包含关闭和最小化按钮,每个软驱都有对应的图标,底部停靠栏显示当前运行的程序。程序从第二张软盘加载,作为一等应用多任务运行。整个系统在 Intel 8086 或 8088(原版 IBM PC 和 PC/XT 的处理器)上只需 256K 内存。这是一个业余项目,其完成度已足以使用,源代码共 66,183 行 NASM 汇编,一个下午即可读完。

**Os8088** 是一款雄心勃勃的新型操作系统,旨在为经典的 IBM PC 硬件(8086、286 和 386)带来类似 macOS 的图形用户界面。 该项目完全使用手写实模式汇编语言编写,未使用 C 语言、链接器或运行时库,是一项已在原始硬件上完成验证的技术创举。它支持 FAT12/16 文件系统、Sound Blaster 音频以及已移植的应用程序和游戏,硬盘驱动支持目前正在开发中。 Hacker News 社区对此反响热烈,称赞该项目的源代码如同“书籍般优雅”,并认可其在历史“如果”层面的潜力。评论者指出,如果 20 世纪 80 年代能出现如此先进的操作系统,可能会从根本上改变像微软这样的公司的发展轨迹。尽管一些用户开玩笑称,该项目在外观上与苹果界面的相似性可能会引发法律审查,但普遍共识认为 Os8088 展示了令人赞叹的底层编程才华。
相关文章

原文

os8088 boots from the first sector of a floppy into a graphical desktop. There is no DOS underneath it and no command line anywhere in it -- the 512-byte boot sector loads a 40KB kernel, the kernel works out which display adapter the machine has and switches it into graphics, borrows the video card's own 8x8 character set, and puts up a menu bar.

Everything after that is the interface you remember from a 1984 Macintosh: windows you drag by the title bar with a rubber-band outline, menus you pull down and drag through, a close box and a minimize box, icons for each floppy drive, and a dock along the bottom with one tile per running program. Programs load from a second floppy and run as first-class applications, several at a time.

The whole thing fits in 256K of RAM on an Intel 8086 or 8088 -- the processor in the original IBM PC and PC/XT. It is a hobby project, it is finished enough to use, and the source is 66,183 lines of NASM you can read in an afternoon.

联系我们 contact @ memedata.com