From cbdb86f96eef773b7fd28be74076976f79db2b3a Mon Sep 17 00:00:00 2001 From: Yourtion Date: Wed, 10 Sep 2014 15:02:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E6=9D=A1=E7=BA=B9?= 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 f4b703b..2e5f40d 100644 --- a/04_day/bootpack.c +++ b/04_day/bootpack.c @@ -6,7 +6,7 @@ void HariMain(void) int i; /* 声明变量,i是32位整数 */ for (i = 0xa0000; i <= 0xaffff; i++) { - write_mem8(i, 15); /* MOV BYTE [i],15 */ + write_mem8(i, i & 0x0f); } for (;;) {