Skip to content

Commit

Permalink
添加注释
Browse files Browse the repository at this point in the history
  • Loading branch information
yourtion committed Sep 10, 2014
1 parent 094c0cc commit b5f993a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 05_day/bootpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 36,12 @@ struct BOOTINFO {
void HariMain(void)
{
struct BOOTINFO *binfo = (struct BOOTINFO *) 0x0ff0;
extern char hankaku[4096];
extern char hankaku[4096];/* DB各种数据(共4096字节) */

init_palette();
init_screen(binfo->vram, binfo->scrnx, binfo->scrny);

/* A的字符编码是0x41,所以A的字体数据,放在自“hankaku 0x41*16”开始的16字节里 */
putfont8(binfo->vram, binfo->scrnx, 8, 8, COL8_FFFFFF, hankaku 'A' * 16);
putfont8(binfo->vram, binfo->scrnx, 16, 8, COL8_FFFFFF, hankaku 'B' * 16);
putfont8(binfo->vram, binfo->scrnx, 24, 8, COL8_FFFFFF, hankaku 'C' * 16);
Expand Down

0 comments on commit b5f993a

Please sign in to comment.