Added IDT code, also works in Bochs