Skip to content

Commit

Permalink
保护操作系统(1)
Browse files Browse the repository at this point in the history
  • Loading branch information
yourtion committed May 4, 2016
1 parent e1d7601 commit 17b1469
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 9 additions & 2 deletions 21_day/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:@: \
Expand All @@ -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
Expand Down
5 changes: 5 additions & 0 deletions 21_day/crack1.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
void HariMain(void)
{
*((char *) 0x00102600) = 0;
return;
}

0 comments on commit 17b1469

Please sign in to comment.