Skip to content

Commit

Permalink
保护操作系统(3)
Browse files Browse the repository at this point in the history
  • Loading branch information
yourtion committed May 4, 2016
1 parent 154a2c5 commit 4241eb2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 21_day/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,11 @@ crack1.bim : crack1.obj Makefile
crack1.hrb : crack1.bim Makefile
$(BIM2HRB) crack1.bim crack1.hrb 0

crack2.hrb : crack2.nas Makefile
$(NASK) crack2.nas crack2.hrb crack2.lst

haribote.img : ipl10.bin haribote.sys Makefile \
hello.hrb hello2.hrb a.hrb hello3.hrb crack1.hrb
hello.hrb hello2.hrb a.hrb hello3.hrb crack1.hrb crack2.hrb
$(EDIMG) imgin:../z_tools/fdimg0at.tek \
wbinimg src:ipl10.bin len:512 from:0 to:0 \
copy from:haribote.sys to:@: \
Expand All @@ -85,6 +88,7 @@ haribote.img : ipl10.bin haribote.sys Makefile \
copy from:a.hrb to:@: \
copy from:hello3.hrb to:@: \
copy from:crack1.hrb to:@: \
copy from:crack2.hrb to:@: \
imgout:haribote.img

# 其他指令
Expand Down
6 changes: 6 additions & 0 deletions 21_day/crack2.nas
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[INSTRSET "i486p"]
[BITS 32]
MOV EAX,1*8 ; OS用的段号
MOV DS,AX ; 将其存入DS
MOV BYTE [0x102600],0
RETF

0 comments on commit 4241eb2

Please sign in to comment.