添加镜像内容harinote.sys

This commit is contained in:
Yourtion
2014-09-05 16:52:05 +08:00
parent a35bf8014d
commit 9722e90791
3 changed files with 13 additions and 6 deletions

View File

@@ -16,15 +16,17 @@ default :
ipl.bin : ipl.nas Makefile
$(NASK) ipl.nas ipl.bin ipl.lst
haribote.img : ipl.bin Makefile
haribote.sys : haribote.nas Makefile
$(NASK) haribote.nas haribote.sys haribote.lst
haribote.img : ipl.bin haribote.sys Makefile
$(EDIMG) imgin:../z_tools/fdimg0at.tek \
wbinimg src:ipl.bin len:512 from:0 to:0 imgout:haribote.img
wbinimg src:ipl.bin len:512 from:0 to:0 \
copy from:haribote.sys to:@: \
imgout:haribote.img
# 其他指令
asm :
$(MAKE) ipl.bin
img :
$(MAKE) haribote.img
@@ -40,6 +42,8 @@ install :
clean :
-$(DEL) ipl.bin
-$(DEL) ipl.lst
-$(DEL) haribote.sys
-$(DEL) haribote.lst
src_only :
$(MAKE) clean

3
03_day/haribote.nas Normal file
View File

@@ -0,0 +1,3 @@
fin:
HLT
JMP fin

View File

@@ -53,7 +53,7 @@ retry:
MOV BX,0
MOV DL,0x00 ; A驱动器
INT 0x13 ; 调用磁盘BIOS
JNC fin ; 没出错则跳转到fin
JNC next ; 没出错则跳转到fin
ADD SI,1 ; 往SI加1
CMP SI,5 ; 比较SI与5
JAE error ; SI >= 5 跳转到error