0

I just have a simple line of NASM/Intel syntax assembly that I need in GAS/AT&T syntax. The line is

JMP   0x08:reload_CS

I couldn't find anything online, but I have tried:

jmp $0x08, reload_CS
jmp reload_CS + $0x08

Is one of these correct? If not could anyone provide the correct conversion? I'm not really sure how 0x08 effects JMP 0x08:reload_CS so an explanation of what is happening here would also be helpful.

Peter Cordes
  • 328,167
  • 45
  • 605
  • 847
drewpel
  • 465
  • 1
  • 3
  • 16
  • You can always assemble with NASM, disassemble with `objdump`. I forget the operand syntax but the AT&T mnemonic is `ljmp`. This is a far jump to a new code segment; read Intel's manual for the `ptr16:16` version: https://www.felixcloutier.com/x86/jmp – Peter Cordes Apr 10 '20 at 22:37
  • Should be `ljmp $0x08, $reload_CS`. – fuz Apr 10 '20 at 23:27

0 Answers0