TempleOSCDV4.06.ISO

This commit is contained in:
Terry A. Davis authored and minexew committed 2018-09-08 21:47:19 +02:00
1 parent 6fe38d2d9d
commit b632ab9a4f
261 files changed
+6282 -5801

No files matched your search

+6 -11
View File
@@ -37,22 +37,17 @@ U0 MouseGetDevType()
Bool MouseRst()
{
U8 b,*_b;
U16 *_w;
F64 timeout;
Bool result=FALSE,present;
Bool res=FALSE;
mouse.has_wheel=FALSE;
mouse.has_ext_buttons=FALSE;
_w=0x40E;
present=MemPagePresentMark(_w,TRUE);
if (*_w==0x9FC0) {
if (*0x40E(U16 *)==0x9FC0) {
_b=0x9FC00+0x30;
*_b=1; //This enables my mouse. It might be for one machine.
//USB DMA packets, set-up by BIOS to make legacy PS/2?
}
if (!present)
MemPagePresentMark(_w,FALSE);
try {
KbdCmdFlush;
@@ -80,7 +75,7 @@ Bool MouseRst()
KbdMouseCmdAck(0xF3,10);
MouseGetDevType;
KbdMouseCmdAck(0xE8,0x03,0xE6,0xF3,100,0xF4);
result=TRUE;
res=TRUE;
//Enable IRQ 12
KbdCmdSend(KBD_CTRL,0x20);
@@ -93,7 +88,7 @@ Bool MouseRst()
//This is been added to override failure
//because the mouse sometimes still works.
result=TRUE;
res=TRUE;
try
KbdCmdSend(KBD_CTRL,0xAE); //Enable Keyboard
@@ -103,12 +98,12 @@ Bool MouseRst()
mouse.pkt_size=4;
else
mouse.pkt_size=3;
if (!result)
if (!res)
try
KbdCmdSend(KBD_CTRL,0xA7); //Disable Mouse
catch
Fs->catch_except=TRUE;
return result;
return res;
}
U0 MouseSpeedSet()