2013年9月25日

摘要: boot.s简单的引导程序,head.s简单内核,makefile内容如下# Makefile for the simple example kernel.AS86 =as86 -0 -aLD86 =ld86 -0AS =asLD =ldLDFLAGS =-m elf_i386 -Ttext 0 -e startup_32 -s -x -M all: ImageImage: boot system dd bs=32 if=boot of=Image skip=1 objcopy -O binary system head cat head >> Imagedisk: Image d 阅读全文
posted @ 2013-09-25 21:05 莫扎特也是程序猿 阅读(554) 评论(0) 推荐(0)
摘要: 1 ;%define _BOOT_DEBUG_ ; 制作 Boot Sector 时一定将此行注释掉! 2 ; 去掉此行注释后可做成.COM文件易于调试: 3 ; nasm Boot.asm -o Boot.com 4 5 %ifdef _BOOT_DEBUG_ 6 org 0100h ; 调试状态, 做成 .COM 文件, 可调试 7 %else 8 org 07c00h ; BIOS 将把 Boot Sector 加载到 0:7C00 处 9 %endif10 11... 阅读全文
posted @ 2013-09-25 13:57 莫扎特也是程序猿 阅读(2015) 评论(0) 推荐(0)
摘要: 快速清空文件:$:> filename 阅读全文
posted @ 2013-09-25 10:55 莫扎特也是程序猿 阅读(134) 评论(0) 推荐(0)

导航