1 #include "../../../common/typedef.h"
2 #include "../head/lowCall16.h"
3 #include "../head/segment_descriptor.h"
4 #include "../head/realmode.h"
11 /*******************************************************************************
13 *******************************************************************************/
29 // メモリの使用可能領域を2^32まで拡張
47 // // 1024x768 24bit/32bit
48 // io_RGBwrite16(1024, 768, 0, 0, color);
49 // io_RGBwrite16(1024, 1, 0, 768 - 27, color3);
50 // io_RGBwrite16(1024, 26, 0, 768 - 26, color2);
51 // io_RGBwrite16(64, 22, 2, 768 - 26 + 1, color3);
54 *(u1*)0x6500 = (u1)0xf4;
55 *(u2*)0x6501 = (u2)0xfdeb;
57 *(u1*)0x6000 = (u1)0xf4;
58 *(u2*)0x6001 = (u2)0xfdeb;
60 *(u8*)0x9008 = (u8)0x00cf9a006000FFFF;
61 *(u8*)0x9010 = (u8)0x00cf9a006500FFFF;
63 // GDTRとIDTRの設定をします。 -> 6byte
64 segment_descriptor sd;
65 sd.LGDT16(0x00FF, 0x00009000);
66 sd.LIDT16(0x00FF, 0x00008500);
69 /*--------------------------------------------------------------------------------
70 パイプラインフラッシュの後、スタックを設定し、main32()へjmpします
71 --------------------------------------------------------------------------------*/
75 #include "../head/32mode.hpp"