forked from backup/30dayMakeOS
保护操作系统(3)
This commit is contained in:
@@ -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:@: \
|
||||
@@ -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
|
||||
|
||||
# 其他指令
|
||||
|
||||
6
21_day/crack2.nas
Normal file
6
21_day/crack2.nas
Normal file
@@ -0,0 +1,6 @@
|
||||
[INSTRSET "i486p"]
|
||||
[BITS 32]
|
||||
MOV EAX,1*8 ; OS用的段号
|
||||
MOV DS,AX ; 将其存入DS
|
||||
MOV BYTE [0x102600],0
|
||||
RETF
|
||||
Reference in New Issue
Block a user