x01.os.12: 在 windows 中寫 OS

來源:互聯網
上載者:User

標籤:style   blog   http   color   os   檔案   sp   div   2014   

在 windows 中寫作業系統,需要一系列的協助工具輔助。在此,要感謝川穀秀實!所有工具,都在 z_tools 檔案夾中。有了大師的協助,不妨也來嘗試在 windows 中寫一把 OS。

原始碼及工具可到 x01.Lab.Download 中下載。進入 src 檔案夾,只有兩個檔案,一個是 run.bat, 一個是 boot.s。boot.s  都是大同小異的,skip!run.bat 內容如下:

..\z_tools\nask boot.s boot.bin boot.txt..\z_tools\edimg imgin:..\z_tools\fdimg0at.tek wbinimg src:boot.bin len:512 from:0 to:0 imgout:os.imgcopy os.img ..\z_tools\qemu\os.img..\z_tools\make -C ..\z_tools\qemu

值得一提的是,boot.txt 應該看看,它把機器碼與彙編一一對應。edimg 是製作映像檔案的關鍵,這也是川穀的作品。雙擊 run.bat 即可顯示如下畫面:

  

OK!看來,在 windows 中寫作業系統,也是一件簡單的事了。

x01.os.12: 在 windows 中寫 OS

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.