保护操作系统(1)

This commit is contained in:
Yourtion
2016-05-04 17:15:26 +08:00
parent e1d760124c
commit 17b146940c
2 changed files with 14 additions and 2 deletions

View File

@@ -67,8 +67,14 @@ hello3.hrb : hello3.bim Makefile
haribote.sys : asmhead.bin bootpack.hrb Makefile
copy /B asmhead.bin+bootpack.hrb haribote.sys
crack1.bim : crack1.obj Makefile
$(OBJ2BIM) @$(RULEFILE) out:crack1.bim map:crack1.map crack1.obj
crack1.hrb : crack1.bim Makefile
$(BIM2HRB) crack1.bim crack1.hrb 0
haribote.img : ipl10.bin haribote.sys Makefile \
hello.hrb hello2.hrb a.hrb hello3.hrb
hello.hrb hello2.hrb a.hrb hello3.hrb crack1.hrb
$(EDIMG) imgin:../z_tools/fdimg0at.tek \
wbinimg src:ipl10.bin len:512 from:0 to:0 \
copy from:haribote.sys to:@: \
@@ -78,8 +84,9 @@ haribote.img : ipl10.bin haribote.sys Makefile \
copy from:hello2.hrb to:@: \
copy from:a.hrb to:@: \
copy from:hello3.hrb to:@: \
copy from:crack1.hrb to:@: \
imgout:haribote.img
# 其他指令
%.gas : %.c bootpack.h Makefile

5
21_day/crack1.c Normal file
View File

@@ -0,0 +1,5 @@
void HariMain(void)
{
*((char *) 0x00102600) = 0;
return;
}