Page 1 of 1

far jump - simple question

Posted: Tue Apr 01, 2003 12:00 am
by huberot
Hi everybody,

I don't know the gas syntax and as I can't find a good doc in the net I hope to find the answers here:

How do i do a fucking far jump using inline assembly?

this dosen't work:    asm("ljmp *CS:mylabel\n"
                          "mylabel:        \n"
                          :
                          :
                          );

Can anybody help me please?

P.S.: A link to a good tutorial would be great!!!

RE:far jump - simple question

Posted: Tue Apr 01, 2003 12:00 am
by ChZ
Try:
asm("ljmp $segment,$label
     label:");

RE:far jump - simple question

Posted: Wed Apr 02, 2003 12:00 am
by VoidLogic
if you need to do a C/C++ jump, cheack out the ANSI "SetJmp.h", it saves the stack too