Doing a indirect far jump/call in protected mode
How do I perform an indirect far jump/call in protected mode? First I was thinking that doing this is allowable: jmp 0x10:eax; (Don't worry about the segment selector..the 2nd entry of my GDT is a valid code segment) But when nasm assembled it, it was a syntax error. Looking at the Book 2a of the Intel (instruction set reference) manual, it can only be done using jmp ptr16:32 , where the ptr16:32 is an immediate value, or using jmp m16:32 , where the m16:32 is a memory location containing the 48-bit jump address (the 16:32). Now I tried to encode it this way: mov dword[ds:jumpaddress_offset]