From b2dc361194ed59ccf7adb88b74a2043fd449caba Mon Sep 17 00:00:00 2001 From: Yourtion Date: Fri, 13 May 2016 12:12:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E5=85=B3=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 25_day/Makefile | 22 +--------------------- 25_day/beepup.c | 22 ---------------------- 25_day/bug2.c | 3 --- 25_day/bug3.c | 9 --------- 4 files changed, 1 insertion(+), 55 deletions(-) delete mode 100644 25_day/beepup.c delete mode 100644 25_day/bug2.c delete mode 100644 25_day/bug3.c diff --git a/25_day/Makefile b/25_day/Makefile index a53ff0f..8714cad 100644 --- a/25_day/Makefile +++ b/25_day/Makefile @@ -80,18 +80,6 @@ hello5.bim : hello5.obj Makefile hello5.hrb : hello5.bim Makefile $(BIM2HRB) hello5.bim hello5.hrb 0 -bug2.bim : bug2.obj Makefile - $(OBJ2BIM) @$(RULEFILE) out:bug2.bim map:bug2.map bug2.obj - -bug2.hrb : bug2.bim Makefile - $(BIM2HRB) bug2.bim bug2.hrb 0 - -bug3.bim : bug3.obj Makefile - $(OBJ2BIM) @$(RULEFILE) out:bug3.bim map:bug3.map bug3.obj a_nask.obj - -bug3.hrb : bug3.bim Makefile - $(BIM2HRB) bug3.bim bug3.hrb 0 - winhelo.bim : winhelo.obj a_nask.obj Makefile $(OBJ2BIM) @$(RULEFILE) out:winhelo.bim stack:1k map:winhelo.map \ winhelo.obj a_nask.obj @@ -162,13 +150,6 @@ beepdown.bim : beepdown.obj a_nask.obj Makefile beepdown.hrb : beepdown.bim Makefile $(BIM2HRB) beepdown.bim beepdown.hrb 40k -beepup.bim : beepup.obj a_nask.obj Makefile - $(OBJ2BIM) @$(RULEFILE) out:beepup.bim stack:1k map:beepup.map \ - beepup.obj a_nask.obj - -beepup.hrb : beepup.bim Makefile - $(BIM2HRB) beepup.bim beepup.hrb 40k - color.bim : color.obj a_nask.obj Makefile $(OBJ2BIM) @$(RULEFILE) out:color.bim stack:1k map:color.map \ color.obj a_nask.obj @@ -186,7 +167,7 @@ color2.hrb : color2.bim Makefile haribote.img : ipl10.bin haribote.sys Makefile \ hello.hrb hello2.hrb a.hrb hello3.hrb hello4.hrb hello5.hrb \ winhelo.hrb winhelo2.hrb winhelo3.hrb star1.hrb stars.hrb stars2.hrb \ - lines.hrb walk.hrb noodle.hrb beepdown.hrb beepup.hrb color.hrb color2.hrb + lines.hrb walk.hrb noodle.hrb beepdown.hrb color.hrb color2.hrb $(EDIMG) imgin:../z_tools/fdimg0at.tek \ wbinimg src:ipl10.bin len:512 from:0 to:0 \ copy from:haribote.sys to:@: \ @@ -208,7 +189,6 @@ haribote.img : ipl10.bin haribote.sys Makefile \ copy from:walk.hrb to:@: \ copy from:noodle.hrb to:@: \ copy from:beepdown.hrb to:@: \ - copy from:beepup.hrb to:@: \ copy from:color.hrb to:@: \ copy from:color2.hrb to:@: \ imgout:haribote.img diff --git a/25_day/beepup.c b/25_day/beepup.c deleted file mode 100644 index d14ccb6..0000000 --- a/25_day/beepup.c +++ /dev/null @@ -1,22 +0,0 @@ -void api_end(void); -int api_getkey(int mode); -int api_alloctimer(void); -void api_inittimer(int timer, int data); -void api_settimer(int timer, int time); -void api_beep(int tone); - -void HariMain(void) -{ - int i, timer; - timer = api_alloctimer(); - api_inittimer(timer, 128); - for (i = 20000; i <= 20000000; i += i / 100) { - api_beep(i); - api_settimer(timer, 1); /* 0.01秒*/ - if (api_getkey(1) != 128) { - break; - } - } - api_beep(0); - api_end(); -} diff --git a/25_day/bug2.c b/25_day/bug2.c deleted file mode 100644 index c6f65e7..0000000 --- a/25_day/bug2.c +++ /dev/null @@ -1,3 +0,0 @@ -void HariMain(void){ - for (;;) { } -} \ No newline at end of file diff --git a/25_day/bug3.c b/25_day/bug3.c deleted file mode 100644 index 5982e10..0000000 --- a/25_day/bug3.c +++ /dev/null @@ -1,9 +0,0 @@ -void api_putchar(int c); -void api_end(void); - -void HariMain(void) -{ - for (;;) { - api_putchar('a'); - } -}