From 73b7421cf2d57b3018cf9f22193bbc6ae23eb965 Mon Sep 17 00:00:00 2001 From: Yourtion Date: Thu, 19 May 2016 14:08:59 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9E=E7=9F=A9=E5=BD=A2=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 29_day/Makefile | 4 ++++ 29_day/notrec/!cons_9x.bat | 1 + 29_day/notrec/!cons_nt.bat | 1 + 29_day/notrec/Makefile | 5 +++++ 29_day/notrec/make.bat | 1 + 29_day/notrec/notrec.c | 17 +++++++++++++++++ 6 files changed, 29 insertions(+) create mode 100644 29_day/notrec/!cons_9x.bat create mode 100644 29_day/notrec/!cons_nt.bat create mode 100644 29_day/notrec/Makefile create mode 100644 29_day/notrec/make.bat create mode 100644 29_day/notrec/notrec.c diff --git a/29_day/Makefile b/29_day/Makefile index af3fc84..e37ec29 100644 --- a/29_day/Makefile +++ b/29_day/Makefile @@ -49,6 +49,7 @@ haribote.img : haribote/ipl20.bin haribote/haribote.sys Makefile \ copy from:type/type.hrb to:@: \ copy from:iroha/iroha.hrb to:@: \ copy from:chklang/chklang.hrb to:@: \ + copy from:notrec/notrec.hrb to:@: \ copy from:euc.txt to:@: \ copy from:nihongo/nihongo.fnt to:@: \ imgout:haribote.img @@ -90,6 +91,7 @@ full : $(MAKE) -C type $(MAKE) -C iroha $(MAKE) -C chklang + $(MAKE) -C notrec $(MAKE) haribote.img run_full : @@ -138,6 +140,7 @@ clean_full : $(MAKE) -C type clean $(MAKE) -C iroha clean $(MAKE) -C chklang clean + $(MAKE) -C notrec clean src_only_full : $(MAKE) -C haribote src_only @@ -165,6 +168,7 @@ src_only_full : $(MAKE) -C type src_only $(MAKE) -C iroha src_only $(MAKE) -C chklang src_only + $(MAKE) -C notrec src_only -$(DEL) haribote.img refresh : diff --git a/29_day/notrec/!cons_9x.bat b/29_day/notrec/!cons_9x.bat new file mode 100644 index 0000000..e42252a --- /dev/null +++ b/29_day/notrec/!cons_9x.bat @@ -0,0 +1 @@ +command \ No newline at end of file diff --git a/29_day/notrec/!cons_nt.bat b/29_day/notrec/!cons_nt.bat new file mode 100644 index 0000000..6e07473 --- /dev/null +++ b/29_day/notrec/!cons_nt.bat @@ -0,0 +1 @@ +cmd.exe \ No newline at end of file diff --git a/29_day/notrec/Makefile b/29_day/notrec/Makefile new file mode 100644 index 0000000..7d7d3f0 --- /dev/null +++ b/29_day/notrec/Makefile @@ -0,0 +1,5 @@ +APP = notrec +STACK = 11k +MALLOC = 0k + +include ../app_make.txt diff --git a/29_day/notrec/make.bat b/29_day/notrec/make.bat new file mode 100644 index 0000000..6b0dbfc --- /dev/null +++ b/29_day/notrec/make.bat @@ -0,0 +1 @@ +..\..\z_tools\make.exe %1 %2 %3 %4 %5 %6 %7 %8 %9 \ No newline at end of file diff --git a/29_day/notrec/notrec.c b/29_day/notrec/notrec.c new file mode 100644 index 0000000..35ae0de --- /dev/null +++ b/29_day/notrec/notrec.c @@ -0,0 +1,17 @@ +#include "apilib.h" + +void HariMain(void) +{ + int win; + char buf[150 * 70]; + win = api_openwin(buf, 150, 70, 255, "notrec"); + api_boxfilwin(win, 0, 50, 34, 69, 255); + api_boxfilwin(win, 115, 50, 149, 69, 255); + api_boxfilwin(win, 50, 30, 99, 49, 255); + for (;;) { + if (api_getkey(1) == 0x0a) { + break; /*按下回车键则break; */ + } + } + api_end(); +}