From 1b1d5d12b7cd1793267d3026b1af46a4fc59cd76 Mon Sep 17 00:00:00 2001 From: Yourtion Date: Wed, 10 Sep 2014 17:16:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E8=BF=87=E6=8C=87=E9=92=88=E5=8F=96?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 05_day/bootpack.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/05_day/bootpack.c b/05_day/bootpack.c index 3c9f8ce..eb62bcc 100644 --- a/05_day/bootpack.c +++ b/05_day/bootpack.c @@ -51,34 +51,34 @@ void HariMain(void) void init_palette(void) { static unsigned char table_rgb[16 * 3] = { - 0x00, 0x00, 0x00, /* 0:�� */ - 0xff, 0x00, 0x00, /* 1:���邢�� */ - 0x00, 0xff, 0x00, /* 2:���邢�� */ - 0xff, 0xff, 0x00, /* 3:���邢���F */ - 0x00, 0x00, 0xff, /* 4:���邢�� */ - 0xff, 0x00, 0xff, /* 5:���邢�� */ - 0x00, 0xff, 0xff, /* 6:���邢���F */ - 0xff, 0xff, 0xff, /* 7:�� */ - 0xc6, 0xc6, 0xc6, /* 8:���邢�D�F */ - 0x84, 0x00, 0x00, /* 9:�Â��� */ - 0x00, 0x84, 0x00, /* 10:�Â��� */ - 0x84, 0x84, 0x00, /* 11:�Â����F */ - 0x00, 0x00, 0x84, /* 12:�Â��� */ - 0x84, 0x00, 0x84, /* 13:�Â��� */ - 0x00, 0x84, 0x84, /* 14:�Â����F */ - 0x84, 0x84, 0x84 /* 15:�Â��D�F */ + 0x00, 0x00, 0x00, /* 0:�� */ + 0xff, 0x00, 0x00, /* 1:���邢�� */ + 0x00, 0xff, 0x00, /* 2:���邢�� */ + 0xff, 0xff, 0x00, /* 3:���邢���F */ + 0x00, 0x00, 0xff, /* 4:���邢�� */ + 0xff, 0x00, 0xff, /* 5:���邢�� */ + 0x00, 0xff, 0xff, /* 6:���邢���F */ + 0xff, 0xff, 0xff, /* 7:�� */ + 0xc6, 0xc6, 0xc6, /* 8:���邢�D�F */ + 0x84, 0x00, 0x00, /* 9:�Â��� */ + 0x00, 0x84, 0x00, /* 10:�Â��� */ + 0x84, 0x84, 0x00, /* 11:�Â����F */ + 0x00, 0x00, 0x84, /* 12:�Â��� */ + 0x84, 0x00, 0x84, /* 13:�Â��� */ + 0x00, 0x84, 0x84, /* 14:�Â����F */ + 0x84, 0x84, 0x84 /* 15:�Â��D�F */ }; set_palette(0, 15, table_rgb); return; - /* static char ���߂́A�f�[�^�ɂ����g���Ȃ�����DB���ߑ��� */ + /* static char ���߂́A�f�[�^�ɂ����g���Ȃ�����DB���ߑ��� */ } void set_palette(int start, int end, unsigned char *rgb) { int i, eflags; - eflags = io_load_eflags(); /* ���荞�݋��ƒt���O�̒l���L�^���� */ - io_cli(); /* ���ƒt���O��0�ɂ��Ċ��荞�݋֎~�ɂ��� */ + eflags = io_load_eflags(); /* ���荞�݋��ƒt���O�̒l���L�^���� */ + io_cli(); /* ���ƒt���O��0�ɂ��Ċ��荞�݋֎~�ɂ��� */ io_out8(0x03c8, start); for (i = start; i <= end; i++) { io_out8(0x03c9, rgb[0] / 4); @@ -86,7 +86,7 @@ void set_palette(int start, int end, unsigned char *rgb) io_out8(0x03c9, rgb[2] / 4); rgb += 3; } - io_store_eflags(eflags); /* ���荞�݋��ƒt���O�����ɖ߂� */ + io_store_eflags(eflags); /* ���荞�݋��ƒt���O�����ɖ߂� */ return; }