Giter Club home page Giter Club logo

os's Introduction

0.学习川合秀实的30天自制操作系统,实际上当然不止30天,周末阅读u盘启动总共花了半年时间。全部例程都经u盘在本人笔记本或者台式电脑正常运行.

1.启动区ipl10.nas的区别,最开头一段标准FAT12格式软盘专用的代码需要改成u盘的格式,可以通过下载winhex,打开winhex软件->工具->打开磁盘(选择u盘)。然后选择查看-> 模板管理器->boot sector fat32->应用,查看u盘fat32文件格式。

2.因为U盘的chs和软盘的chs不一样,所以在ipl10.nas中首先读取得扇区得更改成u盘得扇区数据起始区的位置(diskgenius软件可以查看),然后磁头,磁道的值也得根据自己的u盘来设定(U盘的扇区有63个,软盘只有18个)。

3.asmhead.nas中把从1M以内得内存数据拷贝到1M的代码也需要根据读取的磁道,磁头来更改

4.在第18天中的dir命令会显示软盘中的文件,此处使用u盘就和书中不一样,所以console.c bootpack.c file.c中的地方根据u盘来设定,file_loadfile2中的4096是每个族的大小。0x200是1M以外内存首地址0x00100000的第一个扇区存放启动区,第二个扇区读取的是u盘数据区开始的。

5.ipl10.nas生成的ipl10.bin需要用dd写入u盘首个扇区(cmd开启后,得关闭所有文件夹才能写入,不然会出现被占用错误),其他只要把haribote.sys放入u盘启动即可。

image

os's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.