Import backup from 2003-09-08
This commit is contained in:
parent
02d7fc9a69
commit
3f4c7ff32f
27
kernel.c
27
kernel.c
@ -2,6 +2,9 @@
|
|||||||
//08/13/03 Josh Holtrop
|
//08/13/03 Josh Holtrop
|
||||||
//Holtrop's Operating System
|
//Holtrop's Operating System
|
||||||
|
|
||||||
|
#define VXR video_mode.XResolution
|
||||||
|
#define VYR video_mode.YResolution
|
||||||
|
|
||||||
#include "k_defines.h"
|
#include "k_defines.h"
|
||||||
|
|
||||||
#include "lib/string.h"
|
#include "lib/string.h"
|
||||||
@ -80,6 +83,30 @@ void isr(dword num)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
switch(timer)
|
||||||
|
{
|
||||||
|
case 150:
|
||||||
|
video_rectf(VXR*3/11, 0, VXR*4/11, VYR-1, 0x00000088);
|
||||||
|
break;
|
||||||
|
case 200:
|
||||||
|
video_rectf(VXR*7/11, 0, VXR*8/11, VYR-1, 0x00000088);
|
||||||
|
break;
|
||||||
|
case 250:
|
||||||
|
video_rectf(VXR/11, 0, VXR*2/11, VYR*2/5, 0x00000088);
|
||||||
|
break;
|
||||||
|
case 300:
|
||||||
|
video_rectf(VXR/11, VYR*3/5, VXR*2/11, VYR-1, 0x00000088);
|
||||||
|
break;
|
||||||
|
case 350:
|
||||||
|
video_rectf(VXR*5/11, VYR/5, VXR*6/11, VYR*4/5, 0x00000088);
|
||||||
|
break;
|
||||||
|
case 400:
|
||||||
|
video_rectf(VXR*9/11, VYR/5, VXR-1, VYR*2/5, 0x00000088);
|
||||||
|
break;
|
||||||
|
case 450:
|
||||||
|
video_rectf(VXR*8/11, VYR*3/5, VXR*10/11, VYR*4/5, 0x00000088);
|
||||||
|
break;
|
||||||
|
}
|
||||||
eoi();
|
eoi();
|
||||||
}
|
}
|
||||||
//if (num == 0x21)
|
//if (num == 0x21)
|
||||||
|
2
video.c
2
video.c
@ -28,7 +28,7 @@ void video_init(ModeInfoBlock *mib)
|
|||||||
{
|
{
|
||||||
if (a < (tot / 4))
|
if (a < (tot / 4))
|
||||||
video_psetp(a, 0x00FF0000);
|
video_psetp(a, 0x00FF0000);
|
||||||
else if (a < (tot / 2))
|
else if (a < (tot / 2))
|
||||||
video_psetp(a, 0x0000FF00);
|
video_psetp(a, 0x0000FF00);
|
||||||
else if (a < ((tot * 3) / 4))
|
else if (a < ((tot * 3) / 4))
|
||||||
video_psetp(a, 0x000000FF);
|
video_psetp(a, 0x000000FF);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user