PC9821でLINUXをはじ ..
[
2ch
|
▼Menu
]
■コピペモード
□
スレを通常表示
□
オプションモード
□このスレッドのURL
■項目テキスト
16:ペンギコ 01/10/13 11:58 Yt8VfpN. void ar_index(){ u8 d; outb(0x24,0x0da4); d = inb(0x0da5); if(d & 0x80){ /* !!! test al, 0x80 */ d = inb(0x0ca1); outb(d,0x0ca0); }} void hdr(){ u8 al; outb(0xff,0x0ca6); /* Pixel Mask Reg */ al = inb(0x0ca6); /* HDR Access Step1 */ al = inb(0x0ca6); /* HDR Access Step2 */ al = inb(0x0ca6); /* HDR Access Step3 */ al = inb(0x0ca6); /* HDR Access Step4 */ outb(0x20,0x0ca6); /* HDR write */ outb(0xff,0x0ca6); /* Pixel Mask Reg */ } void clgd_wait(u32 s){__volatile__ u32 i; i=1<<s; while(i--);} void rotw(u32 s, u16 *r){ while(*r != 0xffff){outw(*r++,s);} } void rotb(u32 s, u8 *r){ while(*r != 0xff){outw(*r++,s);} } 17:ペンギコ 01/10/13 12:04 Yt8VfpN. void switch_98_clgd(){ outb(0x0e,0x68); /* disable 98 mode */ outb(0x07,0x6a); /* unmask */ outb(0x8f,0x6a); /* swtich vram to gd54xx */ outb(0x06,0x6a); /* mask */ outb(0x02,0x0faa); /* index 02 */ outb(0x0f,0x0fab); /* Linear Address 0x0F000000 */ outb(0x03,0x0faa); /* index 03 */ outb(0x03,0x0fab); /* swtich 98 to gd54xx */ clgd_wait(20); outb(0xe7,0x0ca2); /* COLOR/MONO Mode Select */ outb(0x00,0x0daa); /* HV blanking no active */ outw(0x0011,0x0da4); /* CR0-7 enable */ hdr(); outw(0x1206,0x0ca4); /* Extention reg enable */ outw(0x0011,0x0da4); /* CR0-7 enable */ rotw(0x0ca4,(u16*)&sr); /* Sequencer Register */ rotw(0x0da4,(u16*)&cr); /* CRT Register */ rotw(0x0cae,(u16*)&gr); /* Graphic Register */ ar_index(); rotb(0x0ca0,(u8*)&ar); /* Attribute Register */ hdr(); }
次ページ
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
レスジャンプ
mixiチェック!
Twitterに投稿
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch
5127日前に更新/114 KB
担当:undef