mv code to x86 and write protect mode code