Skip to content

WeepingDogel/test-os

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a toy Operating system.

I learn and try to create one to play.

Features

  • Boots and displays "Hello, World!"
  • 512-byte boot sector with correct signature
  • Can be run in QEMU

Building and Running

make        # Build the floppy image
make run    # Run in QEMU (requires qemu-system-i386)

Verification

./check_boot.sh  # Check boot sector size and signature

Fix by Princess Liliya

The boot sector has been improved with:

  • More efficient assembly instructions
  • Proper stack pointer setup
  • HLT instruction in infinite loop
  • Correct boot signature (0x55AA in little-endian)

这是个玩具操作系统

狗子一边学一边做着玩的。

功能

  • 启动并显示"Hello, World!"
  • 512字节引导扇区,签名正确
  • 可在QEMU中运行

构建和运行

make        # 构建软盘镜像
make run    # 在QEMU中运行(需要qemu-system-i386)

验证

./check_boot.sh  # 检查引导扇区大小和签名

银玫瑰公主的修复

引导扇区已改进:

  • 更高效的汇编指令
  • 正确的堆栈指针设置
  • 无限循环中的HLT指令
  • 正确的引导签名(小端格式的0x55AA)

About

A toy OS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •