diff --git a/05_day/bootpack.c b/05_day/bootpack.c index b3de470..386a0dd 100644 --- a/05_day/bootpack.c +++ b/05_day/bootpack.c @@ -34,17 +34,10 @@ struct BOOTINFO { void HariMain(void) { - char *vram;/* 声明变量vram、用于BYTE [...]地址 */ - int xsize, ysize; - struct BOOTINFO *binfo; + struct BOOTINFO *binfo = (struct BOOTINFO *) 0x0ff0; init_palette(); - binfo = (struct BOOTINFO *) 0x0ff0; - xsize = (*binfo).scrnx; - ysize = (*binfo).scrny; - vram = (*binfo).vram; - - init_screen(vram, xsize, ysize); + init_screen(binfo->vram, binfo->scrnx, binfo->scrny); for (;;) { io_hlt();