SparrowOSTS_121127.ISO

This commit is contained in:
Terry A. Davis authored and minexew committed 2018-09-08 21:45:28 +02:00
1 parent 0e9364ff4c
commit e57428affb
1218 files changed
+247142 -165507

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
interrupt U0 BeepOn()
{
IntEOI; //signal end of interrupt
Snd(100);
}
interrupt U0 BeepOff()
{
IntEOI;
Snd(0);
}
U0 IntTest()
{
//Modify interrupt descriptor table
//for CPU #1.
IntEntrySet(I_USER,&BeepOn,1,IDTET_TRAP);
IntEntrySet(I_USER+1,&BeepOff,1,IDTET_TRAP);
MPInt(I_USER,1);
Sleep(1000);
MPInt(I_USER+1,1);
}
IntTest;