mirror of
https://github.com/yourtion/30dayMakeOS.git
synced 2026-04-08 05:09:02 +08:00
添加镜像内容harinote.sys
This commit is contained in:
@@ -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
3
03_day/haribote.nas
Normal file
@@ -0,0 +1,3 @@
|
||||
fin:
|
||||
HLT
|
||||
JMP fin
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user