Move GDT from Assembly to C