From 17b146940ca5838924d02a3507bc81926b2240ed Mon Sep 17 00:00:00 2001 From: Yourtion Date: Wed, 4 May 2016 17:15:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E6=8A=A4=E6=93=8D=E4=BD=9C=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=EF=BC=881=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 21_day/Makefile | 11 +++++++++-- 21_day/crack1.c | 5 +++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 21_day/crack1.c diff --git a/21_day/Makefile b/21_day/Makefile index efd8cfe..aa474f4 100644 --- a/21_day/Makefile +++ b/21_day/Makefile @@ -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 diff --git a/21_day/crack1.c b/21_day/crack1.c new file mode 100644 index 0000000..1ac44f7 --- /dev/null +++ b/21_day/crack1.c @@ -0,0 +1,5 @@ +void HariMain(void) +{ + *((char *) 0x00102600) = 0; + return; +} \ No newline at end of file