From 8e1b44b3fb8db8ae197f31632bbc22f55c4b68c4 Mon Sep 17 00:00:00 2001 From: Yourtion Date: Wed, 10 Sep 2014 15:56:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8E=A5=E8=BF=91C=E8=AF=AD=E8=A8=80?= =?UTF-8?q?=E7=9A=84=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 04_day/bootpack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/04_day/bootpack.c b/04_day/bootpack.c index 4098857..2f84453 100644 --- a/04_day/bootpack.c +++ b/04_day/bootpack.c @@ -8,7 +8,7 @@ void HariMain(void) p = (char *) 0xa0000; /* 地址变量赋值 */ for (i = 0; i <= 0xffff; i++) { - *(p + i) = i & 0x0f; + p[i] = i & 0x0f; } for (;;) {