public static void Mode0(uint frequency) { IDT.Remap(); IRQ.ClearMask(0); IRQ.ClearMask(15); uint divisor = 1193180 / frequency; AXP.Outb(0x43, 0x30); AXP.Outb(0x40, (byte)(divisor & 0xFF)); AXP.Outb(0x40, (byte)((divisor >> 8) & 0xFF)); }